HORIZON HASKELLDocslts/ghc-9.14.x99ffbb82026-10-19Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 99ffbb8 · 2026-10-19

Moduleweb3-crypto-1.1.0.0Haskell2010

Crypto.Ethereum

Ethereum cryptography primitives.

Contents
  1. ECDSA crypto key ops
  2. Digital Signature Algorithm
  3. Hash function
Synopsis

ECDSA crypto key ops

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

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