mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 08:37:37 +00:00
9387a36b66
* Fix exported names that start with a package name * A few more renames * Fix exported names that start with a package name * A few more renames * Radek's feedback * Fix conflict * fix keymanager test * Fix comments --------- Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
17 lines
427 B
Go
17 lines
427 B
Go
package herumi
|
|
|
|
import "github.com/herumi/bls-eth-go-binary/bls"
|
|
|
|
// Init allows the required curve orders and appropriate sub-groups to be initialized.
|
|
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)
|
|
}
|