diff --git a/src/groth16_prove.js b/src/groth16_prove.js index f2fde83d..49f91833 100644 --- a/src/groth16_prove.js +++ b/src/groth16_prove.js @@ -59,7 +59,7 @@ export default async function groth16Prove(zkeyFileName, witnessFileName, logger const buffCoeffs = await binFileUtils.readSection(fdZKey, sectionsZKey, 4); if (logger) logger.debug("Building ABC"); - const [buffA_T, buffB_T, buffC_T] = await buldABC1(curve, zkey, buffWitness, buffCoeffs, logger); + const [buffA_T, buffB_T, buffC_T] = await buildABC1(curve, zkey, buffWitness, buffCoeffs, logger); const inc = power == Fr.s ? curve.Fr.shift : curve.Fr.w[power+1]; @@ -144,7 +144,7 @@ export default async function groth16Prove(zkeyFileName, witnessFileName, logger } -async function buldABC1(curve, zkey, witness, coeffs, logger) { +async function buildABC1(curve, zkey, witness, coeffs, logger) { const n8 = curve.Fr.n8; const sCoef = 4*3 + zkey.n8r; const nCoef = (coeffs.byteLength-4) / sCoef;