Skip to content

Commit

Permalink
Tweak for proof
Browse files Browse the repository at this point in the history
  • Loading branch information
upamanyus committed Dec 2, 2024
1 parent a4e3d70 commit af6b2a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion merkle/merkle.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ func (t *Tree) Put(label []byte, mapVal []byte) ([]byte, []byte, bool) {
t.root = newInteriorNode()
}
interiors = append(interiors, t.root)
for depth := uint64(0); depth < cryptoffi.HashLen-1; depth++ {
n := cryptoffi.HashLen - 1
for depth := uint64(0); depth < n; depth++ {
currNode := interiors[depth]
pos := label[depth]
if currNode.children[pos] == nil {
Expand Down

0 comments on commit af6b2a8

Please sign in to comment.