From 175a680553bb7afe4a3c796471a90bd93b33a242 Mon Sep 17 00:00:00 2001 From: Gui Iribarren Date: Mon, 4 Nov 2024 12:12:01 +0100 Subject: [PATCH] debug --- tree/arbo/proof.go | 3 +++ 1 file changed, 3 insertions(+) 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] {