github.com/prysmaticlabs/prysm@v1.4.4/shared/bls/herumi/init.go (about) 1 package herumi 2 3 import "github.com/herumi/bls-eth-go-binary/bls" 4 5 // HerumiInit allows the required curve orders and appropriate sub-groups to be initialized. 6 func HerumiInit() { 7 if err := bls.Init(bls.BLS12_381); err != nil { 8 panic(err) 9 } 10 if err := bls.SetETHmode(bls.EthModeDraft07); err != nil { 11 panic(err) 12 } 13 // Check subgroup order for pubkeys and signatures. 14 bls.VerifyPublicKeyOrder(true) 15 bls.VerifySignatureOrder(true) 16 }