Skip to content

Commit

Permalink
bls12381 Pubkey() now returns a pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
alesforz committed Jan 10, 2025
1 parent 95455d5 commit de99d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/bls12381/key_bls12381.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (privKey PrivKey) Bytes() []byte {
// PubKey returns the private key's public key. If the privkey is not valid
// it returns a nil value.
func (privKey PrivKey) PubKey() crypto.PubKey {
return PubKey{pk: new(blstPublicKey).From(privKey.sk)}
return &PubKey{pk: new(blstPublicKey).From(privKey.sk)}
}

// Type returns the type.
Expand Down

0 comments on commit de99d54

Please sign in to comment.