Skip to content

Commit

Permalink
bet
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear committed Jun 24, 2024
1 parent 963669e commit c59a685
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crypto/keys/bls12_381/key_cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ func NewPrivateKeyFromBytes(bz []byte) (PrivKey, error) {
// GenPrivKey generates a new key.
func GenPrivKey() (PrivKey, error) {
secretKey, err := bls12381.RandKey()
return PrivKey(secretKey.Marshal()), err
return PrivKey{
Key: secretKey.Marshal(),
}, err
}

// Bytes returns the byte representation of the Key.
Expand Down

0 comments on commit c59a685

Please sign in to comment.