Files
go-iden3-crypto/goldenposeidon/poseidon_test.go
2022-03-11 07:26:42 -05:00

19 lines
376 B
Go

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())
}