From b78994d970934c1640a6a1dae8cfd2122bba8a1e Mon Sep 17 00:00:00 2001 From: Nalin Bhardwaj Date: Sat, 22 Jan 2022 03:37:53 -0800 Subject: [PATCH] Fix minor BuildABC typo --- src/groth16_prove.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;