Skip to content

Commit

Permalink
chore(circuits): update binary merkle root parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
cedoor committed Nov 29, 2023
1 parent 11103b9 commit b90767e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/circuits/circom/circuits.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"binary-merkle-root": {
"file": "binary-merkle-root",
"template": "BinaryMerkleRoot",
"params": [20]
"params": [4]
}
}
2 changes: 1 addition & 1 deletion packages/circuits/tests/binary-merkle-root.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe("binary-merkle-root", () => {
// The circuit tree depth is 20, so the number of siblings must be 20, even if
// the tree depth is actually 3. The missing siblings can be set to 0, as they
// won't be used to calculate the root in the circuit.
const indices = []
const indices: number[] = []

for (let i = 0; i < MAX_DEPTH; i += 1) {
indices.push((index >> i) & 1)
Expand Down

0 comments on commit b90767e

Please sign in to comment.