Bitcoin
secp256k1_recovery.h
Go to the documentation of this file.
1 #ifndef SECP256K1_RECOVERY_H
2 #define SECP256K1_RECOVERY_H
3 
4 #include "secp256k1.h"
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
24 typedef struct {
25  unsigned char data[65];
27 
37  const secp256k1_context* ctx,
39  const unsigned char *input64,
40  int recid
42 
50  const secp256k1_context* ctx,
54 
64  const secp256k1_context* ctx,
65  unsigned char *output64,
66  int *recid,
69 
82  const secp256k1_context* ctx,
84  const unsigned char *msg32,
85  const unsigned char *seckey,
87  const void *ndata
89 
100  const secp256k1_context* ctx,
101  secp256k1_pubkey *pubkey,
103  const unsigned char *msg32
105 
106 #ifdef __cplusplus
107 }
108 #endif
109 
110 #endif /* SECP256K1_RECOVERY_H */
SECP256K1_API int secp256k1_ecdsa_recoverable_signature_parse_compact(const secp256k1_context *ctx, secp256k1_ecdsa_recoverable_signature *sig, const unsigned char *input64, int recid) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3)
Definition: main_impl.h:38
#define SECP256K1_WARN_UNUSED_RESULT
Definition: secp256k1.h:149
Definition: secp256k1_recovery.h:24
SECP256K1_API int secp256k1_ecdsa_recoverable_signature_convert(const secp256k1_context *ctx, secp256k1_ecdsa_signature *sig, const secp256k1_ecdsa_recoverable_signature *sigin) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3)
Definition: main_impl.h:74
Definition: secp256k1.c:52
static secp256k1_context * ctx
Definition: tests.c:46
SECP256K1_API int secp256k1_ecdsa_sign_recoverable(const secp256k1_context *ctx, secp256k1_ecdsa_recoverable_signature *sig, const unsigned char *msg32, const unsigned char *seckey, secp256k1_nonce_function noncefp, const void *ndata) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4)
Definition: main_impl.h:123
Definition: secp256k1.h:79
SECP256K1_API int secp256k1_ecdsa_recoverable_signature_serialize_compact(const secp256k1_context *ctx, unsigned char *output64, int *recid, const secp256k1_ecdsa_recoverable_signature *sig) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4)
Definition: main_impl.h:60
#define SECP256K1_ARG_NONNULL(_x)
Definition: secp256k1.h:154
std::vector< uint8_t > data
Definition: bech32.cpp:10
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ecdsa_recover(const secp256k1_context *ctx, secp256k1_pubkey *pubkey, const secp256k1_ecdsa_recoverable_signature *sig, const unsigned char *msg32) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4)
Definition: main_impl.h:170
int(* secp256k1_nonce_function)(unsigned char *nonce32, const unsigned char *msg32, const unsigned char *key32, const unsigned char *algo16, void *data, unsigned int attempt)
Definition: secp256k1.h:99
#define SECP256K1_API
Definition: secp256k1.h:139
Definition: secp256k1.h:66