secp256k1-haskell-0.6.0: Bindings for secp256k1
LicenseUNLICENSE
MaintainerJean-Pierre Rupp <jprupp@protonmail.ch>
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.

Documentation

type Ret = CInt Source #

type NonceFun a = Ptr CUChar -> Ptr CUChar -> Ptr CUChar -> Ptr CUChar -> Ptr a -> CInt -> IO CInt Source #

useByteString :: ByteString -> ((Ptr a, CSize) -> IO b) -> IO b Source #

setIllegalCallback Source #

Arguments

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

message, data

-> Ptr a

data

-> IO () 

setErrorCallback Source #

Arguments

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

message, data

-> Ptr a

data

-> IO () 

ecPubKeyParse Source #

Arguments

:: Ctx 
-> Ptr PubKey64 
-> Ptr CUChar

encoded public key array

-> CSize

size of encoded public key array

-> IO Ret 

ecPubKeySerialize Source #

Arguments

:: 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

:: Ctx 
-> Ptr Sig64 
-> Ptr CUChar

encoded DER signature

-> CSize

size of encoded signature

-> IO Ret 

ecdsaSignatureSerializeDer Source #

Arguments

:: 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

:: Ctx 
-> Ptr Sig64

output

-> Ptr Sig64

input

-> IO Ret 

ecdsaSign Source #

Arguments

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

nonce data

-> IO Ret 

ecPubKeyCombine Source #

Arguments

:: Ctx 
-> Ptr PubKey64

pointer to public key storage

-> Ptr (Ptr PubKey64)

pointer to array of public keys

-> CInt

number of public keys

-> IO Ret