Module
Network.Ethereum.Core.Signatures
- Package
- purescript-eth-core
- Repository
- f-o-a-m/purescript-eth-core
#unPublicKey Source
unPublicKey :: PublicKey -> HexString
Get the underlying HexString
representation of a PublicKey.
#mkPublicKey Source
mkPublicKey :: HexString -> Maybe PublicKey
Attempt to construct a PublicKey from a HexString
#unPrivateKey Source
unPrivateKey :: PrivateKey -> HexString
Get the underlying HexString
representation of a PrivateKey
#mkPrivateKey Source
mkPrivateKey :: HexString -> Maybe PrivateKey
#Address Source
#privateToPublic Source
privateToPublic :: PrivateKey -> PublicKey
Produce the PublicKey
for the corresponding PrivateKey
.
#privateToAddress Source
privateToAddress :: PrivateKey -> Address
Produce the Address
corresponding to the PrivateKey
.
#publicToAddress Source
publicToAddress :: PublicKey -> Address
Produce the Address
corresponding to the PublicKey
#signMessage Source
signMessage :: PrivateKey -> ByteString -> Signature
Sign the message with a PrivateKey
#recoverSender Source
recoverSender :: ByteString -> Signature -> PublicKey
Recover the sender of the message from the Signature
.