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.Signature

Recoverable Ethereum signature support.

  • 3 values
valuehashMessage :: ByteArrayAccess message => message -> Digest Keccak_256
#

Ethereum standard hashed message.

The data will be UTF-8 HEX decoded and enveloped as follows: "x19Ethereum Signed Message:n" + message.length + message and hashed using keccak256.

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.