Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
altergui committed Nov 4, 2024
1 parent 41af43a commit 175a680
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tree/arbo/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ func CheckProofBatch(hashFunc HashFunction, oldProofs, newProofs []*CircomVerifi

for level, hash := range nodes {
newBranches[hex.EncodeToString(hash)] = level
fmt.Printf("newBranch(%d): %x\n", level, hash) // debug
}

for level := range newProofs[i].Siblings {
Expand All @@ -240,6 +241,8 @@ func CheckProofBatch(hashFunc HashFunction, oldProofs, newProofs []*CircomVerifi
}
}
}
fmt.Println("\n\ni derived all these hashes from the proofs\n", newBranches) // debug
fmt.Println("the proofs had these new siblings\n", newSiblings) // debug

for hash, level := range newSiblings {
if newBranches[hash] != newSiblings[hash] {
Expand Down

0 comments on commit 175a680

Please sign in to comment.