Skip to content

Commit

Permalink
crypto: adjust NewPublicKeyFromString's comment
Browse files Browse the repository at this point in the history
Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
  • Loading branch information
AliceInHunterland committed Apr 10, 2024
1 parent c4d64ee commit 76d3daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/crypto/keys/publickey.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (p *PublicKey) Cmp(key *PublicKey) int {
}

// NewPublicKeyFromString returns a public key created from the
// given hex string.
// given hex string public key representation in compressed form.
func NewPublicKeyFromString(s string) (*PublicKey, error) {
b, err := hex.DecodeString(s)
if err != nil {
Expand Down

0 comments on commit 76d3daf

Please sign in to comment.