We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f8308e commit e82757fCopy full SHA for e82757f
scripts/create-bls-keypair/main.go
@@ -8,16 +8,11 @@ import (
8
)
9
10
func main() {
11
- sk, _, err := bls.GenerateNewKeypair()
12
- if err != nil {
13
- log.Fatal(err.Error())
14
- }
15
-
16
- blsPubkey, err := bls.PublicKeyFromSecretKey(sk)
+ sk, pk, err := bls.GenerateNewKeypair()
17
if err != nil {
18
log.Fatal(err.Error())
19
}
20
21
fmt.Printf("secret key: 0x%x\n", bls.SecretKeyToBytes(sk))
22
- fmt.Printf("public key: 0x%x\n", bls.PublicKeyToBytes(blsPubkey))
+ fmt.Printf("public key: 0x%x\n", bls.PublicKeyToBytes(pk))
23
0 commit comments