Skip to content

Commit

Permalink
clarify encoding used by ecdsaPublicKeyBytes
Browse files Browse the repository at this point in the history
  • Loading branch information
larskuhtz committed Nov 15, 2023
1 parent 3f1ad9c commit 5fd48f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src-secp256k1/Crypto/Secp256k1.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5fd48f3

Please sign in to comment.