Skip to content

Commit

Permalink
secp: add missing comment
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
  • Loading branch information
jsign committed Sep 7, 2021
1 parent 0eaa57c commit 3ce58b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions secp256k1/secp256k1.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func Verify(pubkey, msg, sig []byte) bool {
return true
}

// GetPubKey returns the public key from the private key.
func GetPubKey(pk []byte) (address.Address, error) {
priv := secp256k1.PrivKeyFromBytes(pk)
pubkey := priv.PubKey()
Expand Down

0 comments on commit 3ce58b7

Please sign in to comment.