web3-0.8.2.0: Ethereum API for Haskell

CopyrightAlexander Krupenkin 2018
LicenseBSD3
Maintainermail@akru.me
Stabilityexperimental
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

Crypto.Ethereum

Contents

Description

Ethereum ECDSA based on secp256k1 bindings.

Synopsis

Ethereum ECDSA sign/recover

hashMessage :: ByteArrayAccess ba => ba -> Msg Source #

SHA3 hash of argument

ecsign Source #

Arguments

:: ByteArrayAccess message 
=> SecKey

Private key

-> message

Message content

-> CompactRecSig

Signature

Sign message with Ethereum private key

ecrecover Source #

Arguments

:: ByteArrayAccess message 
=> CompactRecSig

Signature

-> message

Message content

-> Maybe Address

Message signer address

Recover message signer Ethereum address

Re-export useful Secp256k1 functions

data SecKey #

Instances
Eq SecKey 
Instance details

Defined in Crypto.Secp256k1

Methods

(==) :: SecKey -> SecKey -> Bool #

(/=) :: SecKey -> SecKey -> Bool #

Read SecKey 
Instance details

Defined in Crypto.Secp256k1

Show SecKey 
Instance details

Defined in Crypto.Secp256k1

IsString SecKey 
Instance details

Defined in Crypto.Secp256k1

Methods

fromString :: String -> SecKey #

Arbitrary SecKey 
Instance details

Defined in Crypto.Secp256k1

Hashable SecKey 
Instance details

Defined in Crypto.Secp256k1

Methods

hashWithSalt :: Int -> SecKey -> Int #

hash :: SecKey -> Int #