mirror of
https://github.com/arnaucube/go-iden3-crypto.git
synced 2026-02-07 19:46:41 +01:00
add frame size to poseidon hasher
This commit is contained in:
@@ -29,7 +29,8 @@ func TestBjjWrappedPrivateKeyInterfaceImpl(t *testing.T) {
|
||||
func TestBjjWrappedPrivateKey(t *testing.T) {
|
||||
pk := RandomBjjWrappedKey()
|
||||
|
||||
hasher := poseidon.New()
|
||||
hasher, err := poseidon.New(16)
|
||||
require.NoError(t, err)
|
||||
hasher.Write([]byte("test"))
|
||||
digest := hasher.Sum(nil)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user