crypto: adjust NewPublicKeyFromString's comment

Signed-off-by: Ekaterina Pavlova <ekt@morphbits.io>
This commit is contained in:
Ekaterina Pavlova 2024-04-10 18:34:13 +03:00
parent ae3515e819
commit fc79d38ad2

View file

@ -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 {