Skip to content

Commit

Permalink
proof: add more tests to tree reconstruction from proof
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign committed Jan 17, 2024
1 parent 22541f1 commit 3e84a42
Show file tree
Hide file tree
Showing 2 changed files with 109 additions and 484 deletions.
3 changes: 3 additions & 0 deletions proof_ipa.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,9 @@ func PreStateTreeFromProof(proof *Proof, rootC *Point) (VerkleNode, error) { //

root := NewStatelessInternal(0, rootC).(*InternalNode)
comms := proof.Cs
for i, a := range comms {
fmt.Printf("OK %d %x\n", i, a.Bytes())
}
for _, p := range paths {
// NOTE: the reconstructed tree won't tell the
// difference between leaves missing from view
Expand Down
Loading

0 comments on commit 3e84a42

Please sign in to comment.