prysm-pulse/shared/bls/herumi/init.go
Nishant Das 168cffb0dd
Check Sub Group for Herumi and Fix Edge Cases (#7823)
* check for herumi

* clean up

* fix tests

* fix
2020-11-17 04:12:23 +00:00

16 lines
340 B
Go

package herumi
import "github.com/herumi/bls-eth-go-binary/bls"
func init() {
if err := bls.Init(bls.BLS12_381); err != nil {
panic(err)
}
if err := bls.SetETHmode(bls.EthModeDraft07); err != nil {
panic(err)
}
// Check subgroup order for pubkeys and signatures.
bls.VerifyPublicKeyOrder(true)
bls.VerifySignatureOrder(true)
}