Skip to content

Commit

Permalink
Fix minor BuildABC typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nalinbhardwaj committed Jan 22, 2022
1 parent b214d28 commit b78994d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/groth16_prove.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b78994d

Please sign in to comment.