haskoin-core-1.1.0: Bitcoin & Bitcoin Cash library for Haskell
CopyrightNo rights reserved
LicenseMIT
Maintainerjprupp@protonmail.ch
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Haskoin.Crypto.Signature

Description

ECDSA signatures using secp256k1 curve. Uses functions from upstream secp256k1 library.

Synopsis

Signatures

signHash :: Ctx -> SecKey -> Hash256 -> Sig Source #

Sign a 256-bit hash using secp256k1 elliptic curve.

verifyHashSig :: Ctx -> Hash256 -> Sig -> PubKey -> Bool Source #

Verify an ECDSA signature for a 256-bit hash.

isCanonicalHalfOrder :: Ctx -> Sig -> Bool Source #

Is canonical half order.

decodeStrictSig :: Ctx -> ByteString -> Maybe Sig Source #

Decode signature strictly.

exportSig :: Ctx -> Sig -> ByteString #

Encode signature as strict DER.

Orphan instances

Marshal Ctx Sig Source # 
Instance details

Methods

marshalPut :: MonadPut m => Ctx -> Sig -> m () Source #

marshalGet :: MonadGet m => Ctx -> m Sig Source #

MarshalJSON Ctx Sig Source # 
Instance details