kilic / bls12-381

High-speed BLS12-381 implementation in Go
Apache License 2.0
124 stars 47 forks source link

Support 32-bit architecture #31

Closed youngjoon-lee closed 3 years ago

youngjoon-lee commented 3 years ago

@kilic

In 32-bit architecture, the fromBig() in the fr.go panics. It works only in the 64-bit architecture, because it assumes that the word size is always 64 bits.

I found this issue when I use the aries-framework-go which uses this library: https://github.com/hyperledger/aries-framework-go/issues/2758 You can find the detail error message from the link above.

I tested on my Ubuntu 32bit docker container by go test ./....