csecp256k1

Haskell FFI bindings to bitcoin-core/secp256k1 (docs.ppad.tech/csecp256k1).
git clone git://git.ppad.tech/csecp256k1.git
Log | Files | Refs | README | LICENSE

ecdsa.h (1416B)


      1 /***********************************************************************
      2  * Copyright (c) 2013, 2014 Pieter Wuille                              *
      3  * Distributed under the MIT software license, see the accompanying    *
      4  * file COPYING or https://www.opensource.org/licenses/mit-license.php.*
      5  ***********************************************************************/
      6 
      7 #ifndef SECP256K1_ECDSA_H
      8 #define SECP256K1_ECDSA_H
      9 
     10 #include <stddef.h>
     11 
     12 #include "scalar.h"
     13 #include "group.h"
     14 #include "ecmult.h"
     15 
     16 static int haskellsecp256k1_v0_1_0_ecdsa_sig_parse(haskellsecp256k1_v0_1_0_scalar *r, haskellsecp256k1_v0_1_0_scalar *s, const unsigned char *sig, size_t size);
     17 static int haskellsecp256k1_v0_1_0_ecdsa_sig_serialize(unsigned char *sig, size_t *size, const haskellsecp256k1_v0_1_0_scalar *r, const haskellsecp256k1_v0_1_0_scalar *s);
     18 static int haskellsecp256k1_v0_1_0_ecdsa_sig_verify(const haskellsecp256k1_v0_1_0_scalar* r, const haskellsecp256k1_v0_1_0_scalar* s, const haskellsecp256k1_v0_1_0_ge *pubkey, const haskellsecp256k1_v0_1_0_scalar *message);
     19 static int haskellsecp256k1_v0_1_0_ecdsa_sig_sign(const haskellsecp256k1_v0_1_0_ecmult_gen_context *ctx, haskellsecp256k1_v0_1_0_scalar* r, haskellsecp256k1_v0_1_0_scalar* s, const haskellsecp256k1_v0_1_0_scalar *seckey, const haskellsecp256k1_v0_1_0_scalar *message, const haskellsecp256k1_v0_1_0_scalar *nonce, int *recid);
     20 
     21 #endif /* SECP256K1_ECDSA_H */