Skip to content

Commit

Permalink
Fixing broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerTaule committed Jul 2, 2024
1 parent 8247dac commit 03995ec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/stark/stark_setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ const starkInfoGen = require("./stark_info.js")

const { interpolate } = require("../helpers/fft/fft_p");

module.exports = async function starkSetup(constPols, pil, starkInfo) {
module.exports = async function starkSetup(constPols, pil, starkStruct) {

const starkStruct = starkInfo.starkStruct;
const nBits = starkStruct.nBits;
const nBitsExt = starkStruct.nBitsExt;
const nExt= 1 << nBitsExt;
Expand All @@ -21,7 +20,7 @@ module.exports = async function starkSetup(constPols, pil, starkInfo) {
if (starkStruct.verificationHashType == "GL") {
MH = await buildMerklehashGL();
} else if (starkStruct.verificationHashType == "BN128") {
MH = await buildMerkleHashBN128(starkInfo.merkleTreeArity);
MH = await buildMerkleHashBN128(starkStruct.merkleTreeArity);
} else {
throw new Error("Invalid Hash Type: "+ starkStruct.verificationHashType);
}
Expand Down

0 comments on commit 03995ec

Please sign in to comment.