got merkle proof traversal working

This commit is contained in:
Kevin Jue
2022-11-08 17:54:01 -08:00
parent d6f73d101b
commit 460709f65d
6 changed files with 49 additions and 24 deletions

View File

@@ -1,6 +1,7 @@
package field
import (
"fmt"
"math/big"
"github.com/consensys/gnark-crypto/ecc"
@@ -36,3 +37,10 @@ var r EmulatedField
func EmulatedFieldModulus() *big.Int {
return r.Modulus()
}
func PrintHash(f frontend.API, h Hash) {
for i := 0; i < 4; i++ {
fmt.Println("Hash Limb", i)
f.Println(h[i])
}
}