HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Moduleweb3-crypto-1.1.0.0Haskell2010

Crypto.Ethereum

Ethereum cryptography primitives.

  • 2 types
  • 4 values

ECDSA crypto key ops

4 declarations
datadata PrivateKey
#

ECDSA Private Key.

Instances4Eq, Data, Read, Show
datadata PublicKey
#

ECDSA Public Key.

Instances4Eq, Data, Read, Show
  • Eq PublicKeyDefined in crypton-1.0.6 · Crypto.PubKey.ECC.ECDSA
  • Data PublicKeyDefined in crypton-1.0.6 · Crypto.PubKey.ECC.ECDSA
  • Read PublicKeyDefined in crypton-1.0.6 · Crypto.PubKey.ECC.ECDSA
  • Show PublicKeyDefined in crypton-1.0.6 · Crypto.PubKey.ECC.ECDSA

Digital Signature Algorithm

1 declaration
valuesignMessage
  1. :: (ByteArrayAccess message, ByteArray rsv)
  2. => PrivateKey
  3. -> message
  4. -> rsv
#

Make Ethereum standard signature.

The message is before enveloped as follows: "x19Ethereum Signed Message:n" + message.length + message

WARNING: Vulnerable to timing attacks.

Hash function

1 declaration