mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-24 12:27:18 +00:00
ee5d75732d
* Add pkg crypto * Update go.yml Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
17 lines
439 B
Go
17 lines
439 B
Go
package herumi
|
|
|
|
import "github.com/herumi/bls-eth-go-binary/bls"
|
|
|
|
// HerumiInit allows the required curve orders and appropriate sub-groups to be initialized.
|
|
func HerumiInit() {
|
|
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)
|
|
}
|