secp256k1-0.4.4: Bindings for secp256k1 library from Bitcoin Core

LicenseMIT
MaintainerJean-Pierre Rupp <root@haskoin.com>
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Crypto.Secp256k1.Internal

Description

The API for this module may change at any time. This is an internal module only exposed for hacking and experimentation.

Synopsis

Documentation

data Ctx Source

Constructors

Ctx 

newtype Ret Source

Constructors

Ret 

Fields

getRet :: CInt
 

type NonceFunction a Source

Arguments

 = Ptr Nonce32 
-> Ptr Msg32 
-> Ptr SecKey32 
-> Ptr Algo16 
-> Ptr a

extra data

-> CUInt

attempt

-> Ret 

Nonce32-generating function

setIllegalCallback Source

Arguments

:: Ptr Ctx 
-> FunPtr (CString -> Ptr a -> IO ())

message, data

-> Ptr a

data

-> IO () 

setErrorCallback Source

Arguments

:: Ptr Ctx 
-> FunPtr (CString -> Ptr a -> IO ())

message, data

-> Ptr a

data

-> IO () 

ecPubKeyParse Source

Arguments

:: Ptr Ctx 
-> Ptr PubKey64 
-> Ptr CUChar

encoded public key array

-> CSize

size of encoded public key array

-> IO Ret 

ecPubKeySerialize Source

Arguments

:: Ptr Ctx 
-> Ptr CUChar

array for encoded public key, must be large enough

-> Ptr CSize

size of encoded public key, will be updated

-> Ptr PubKey64 
-> SerFlags 
-> IO Ret 

ecdsaSignatureParseDer Source

Arguments

:: Ptr Ctx 
-> Ptr Sig64 
-> Ptr CUChar

encoded DER signature

-> CSize

size of encoded signature

-> IO Ret 

ecdsaSignatureSerializeDer Source

Arguments

:: Ptr Ctx 
-> Ptr CUChar

array for encoded signature, must be large enough

-> Ptr CSize

size of encoded signature, will be updated

-> Ptr Sig64 
-> IO Ret 

ecdsaSignatureNormalize Source

Arguments

:: Ptr Ctx 
-> Ptr Sig64

output

-> Ptr Sig64

input

-> IO Ret 

ecdsaSign Source

Arguments

:: Ptr Ctx 
-> Ptr Sig64 
-> Ptr Msg32 
-> Ptr SecKey32 
-> FunPtr (NonceFunction a) 
-> Ptr a

nonce data

-> IO Ret 

ecPubKeyCombine Source

Arguments

:: Ptr Ctx 
-> Ptr PubKey64

pointer to public key storage

-> Ptr (Ptr PubKey64)

pointer to array of public keys

-> CInt

number of public keys

-> IO Ret