Skip to content

Commit

Permalink
Merge branch 'main' into bls-sig
Browse files Browse the repository at this point in the history
  • Loading branch information
feltroidprime authored Sep 30, 2024
2 parents d373ab7 + 41e1cc0 commit 4203c18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tools/npm/garaga_ts/src/node/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ export type MsmCalldataBuilderOptons = Partial<{

export function msmCalldataBuilder(points: G1Point[], scalars: bigint[], curveId: CurveId, options: MsmCalldataBuilderOptons = {}): bigint[] {
const values = points.reduce<bigint[]>((values, point) => values.concat(point), []);
const includeDigitsDecomposition = options.includeDigitsDecomposition || true;
const includePointsAndScalars = options.includePointsAndScalars || true;
const serializeAsPureFelt252Array = options.serializeAsPureFelt252Array || false;
const risc0Mode = options.risc0Mode || false;
const includeDigitsDecomposition = options.includeDigitsDecomposition ?? true;
const includePointsAndScalars = options.includePointsAndScalars ?? true;
const serializeAsPureFelt252Array = options.serializeAsPureFelt252Array ?? false;
const risc0Mode = options.risc0Mode ?? false;
return msm_calldata_builder(values, scalars, curveId, includeDigitsDecomposition, includePointsAndScalars, serializeAsPureFelt252Array, risc0Mode);
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"garaga": "file:../../garaga.tgz",
"next": "14.2.8",
"next": "14.2.10",
"react": "^18",
"react-dom": "^18"
},
Expand Down

0 comments on commit 4203c18

Please sign in to comment.