diff --git a/src-secp256k1/Crypto/Secp256k1.hs b/src-secp256k1/Crypto/Secp256k1.hs index 08e3bc4..fbfc24b 100644 --- a/src-secp256k1/Crypto/Secp256k1.hs +++ b/src-secp256k1/Crypto/Secp256k1.hs @@ -155,6 +155,8 @@ ecdsaPublicKey = fmap EcdsaPublicKey . publicKeyPointFromBytes -- | Returns 65 bytes that represent a public key encoded as uncompressed -- secp256k1 curve point. -- +-- The encoding is @0x04 <> x <> y@. +-- ecdsaPublicKeyBytes :: EcdsaPublicKey -> BS.ShortByteString ecdsaPublicKeyBytes (EcdsaPublicKey p) = pointToBytes p