Skip to content

Commit

Permalink
fixup! [crypto] Add EncodeCompressed, DecodepublicKeyCompressed to th…
Browse files Browse the repository at this point in the history
…e signer API
  • Loading branch information
huitseeker committed Aug 17, 2021
1 parent 1dd2bf7 commit 71349c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/ecdsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func (a *ecdsaAlgo) decodePublicKeyCompressed(pkBytes []byte) (PublicKey, error)
}
goPubKey = (*goecdsa.PublicKey)(pk)
} else {
return nil, newInvalidInputsError("Key type %v is not convertible to a 128-bits security ECDSA key", a.algo.String())
return nil, newInvalidInputsError("the input curve is not supported")
}
if !checkPublicKeyValid(goPubKey) {
return nil, newInvalidInputsError("input %x is not a valid %s key", pkBytes, a.algo)
Expand Down

0 comments on commit 71349c7

Please sign in to comment.