add frame size to poseidon hasher

This commit is contained in:
Ilya
2023-05-18 13:37:31 +03:00
parent b015806983
commit 6ff38d47db
3 changed files with 19 additions and 11 deletions

View File

@@ -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)