mirror of
https://github.com/arnaucube/gnark-plonky2-verifier.git
synced 2026-01-12 09:01:32 +01:00
got merkle proof traversal working
This commit is contained in:
@@ -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])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user