init commit for the golden poseidon

This commit is contained in:
Cool Developer
2022-03-11 07:26:42 -05:00
parent f4972de131
commit 885e7c382e
13 changed files with 3218 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
package poseidon
import (
"math/big"
"testing"
"github.com/stretchr/testify/assert"
)
func TestPoseidonHash(t *testing.T) {
b0 := big.NewInt(0)
h, err := Hash([]*big.Int{b0, b0, b0, b0, b0, b0, b0, b0}, []*big.Int{b0, b0, b0, b0})
assert.Nil(t, err)
assert.Equal(t,
"18586133768512220936620570745912940619677854269274689475585506675881198879027",
h.String())
}