web3-0.9.1.0: Web3 API for Haskell.

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

Crypto.Ecdsa.Signature

Description

Recoverable ECC signature support.

Synopsis

Documentation

sign :: ByteArrayAccess bin => PrivateKey -> bin -> (Integer, Integer, Word8) Source #

Sign arbitrary data by given private key.

WARNING: Vulnerable to timing attacks.

pack :: ByteArray rsv => (Integer, Integer, Word8) -> rsv Source #

Pack recoverable signature as byte array (65 byte length).

unpack :: ByteArrayAccess rsv => rsv -> (Integer, Integer, Word8) Source #

Unpack recoverable signature from byte array.

Input array should have 65 byte length.