diff --git a/tree/arbo/proof.go b/tree/arbo/proof.go index 5fc3d116c..577fb4034 100644 --- a/tree/arbo/proof.go +++ b/tree/arbo/proof.go @@ -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 { @@ -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] {