Skip to content

Commit

Permalink
Refactor bls keypair script
Browse files Browse the repository at this point in the history
  • Loading branch information
MoeMahhouk committed Apr 30, 2024
1 parent 1f8308e commit e82757f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions scripts/create-bls-keypair/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,11 @@ import (
)

func main() {
sk, _, err := bls.GenerateNewKeypair()
if err != nil {
log.Fatal(err.Error())
}

blsPubkey, err := bls.PublicKeyFromSecretKey(sk)
sk, pk, err := bls.GenerateNewKeypair()
if err != nil {
log.Fatal(err.Error())
}

fmt.Printf("secret key: 0x%x\n", bls.SecretKeyToBytes(sk))
fmt.Printf("public key: 0x%x\n", bls.PublicKeyToBytes(blsPubkey))
fmt.Printf("public key: 0x%x\n", bls.PublicKeyToBytes(pk))
}

0 comments on commit e82757f

Please sign in to comment.