mirror of
https://github.com/arnaucube/go-iden3-crypto.git
synced 2026-02-07 03:26:39 +01:00
19 lines
376 B
Go
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())
|
|
}
|