Closed arnaucube closed 4 years ago
Tests in 32 bits are not being run in Travis due to a bug (#20) so I tested it locally:
$ GOARCH=386 go test ./...
go build github.com/ethereum/go-ethereum/crypto/secp256k1: build constraints exclude all Go files in /home/dev/go/pkg/mod/github.com/ethereum/go-et
hereum@v1.8.27/crypto/secp256k1
# github.com/iden3/go-iden3-crypto/ff [github.com/iden3/go-iden3-crypto/ff.test]
ff/element_test.go:306:3: undefined: MulAssignElement
FAIL github.com/iden3/go-iden3-crypto/babyjub [build failed]
? github.com/iden3/go-iden3-crypto/constants [no test files]
FAIL github.com/iden3/go-iden3-crypto/ff [build failed]
FAIL github.com/iden3/go-iden3-crypto/mimc7 [build failed]
panic: runtime error: index out of range [4] with length 4
goroutine 1 [running]:
github.com/iden3/go-iden3-crypto/ff.(*Element).SetBigInt(0x901a4c0, 0x908ce68, 0x20)
/home/dev/git/iden3/go-iden3-crypto/ff/element.go:614 +0x4a9
github.com/iden3/go-iden3-crypto/poseidon.getPseudoRandom(0x83032d6, 0x12, 0x41, 0xe15, 0x30, 0x54)
/home/dev/git/iden3/go-iden3-crypto/poseidon/poseidon.go:40 +0x178
github.com/iden3/go-iden3-crypto/poseidon.init.0()
/home/dev/git/iden3/go-iden3-crypto/poseidon/poseidon.go:31 +0x41
FAIL github.com/iden3/go-iden3-crypto/poseidon 0.004s
? github.com/iden3/go-iden3-crypto/utils [no test files]
FAIL
Update to goff v0.2.0 https://github.com/ConsenSys/goff/pull/13