Dash Core  0.12.2.1
P2P Digital Currency
secp256k1_schnorr.h
Go to the documentation of this file.
1 #ifndef _SECP256K1_SCHNORR_
2 # define _SECP256K1_SCHNORR_
3 
4 # include "secp256k1.h"
5 
6 # ifdef __cplusplus
7 extern "C" {
8 # endif
9 
28  const secp256k1_context* ctx,
29  unsigned char *sig64,
30  const unsigned char *msg32,
31  const unsigned char *seckey,
33  const void *ndata
35 
45  const secp256k1_context* ctx,
46  const unsigned char *sig64,
47  const unsigned char *msg32,
48  const secp256k1_pubkey *pubkey
50 
65  const secp256k1_context* ctx,
66  secp256k1_pubkey *pubkey,
67  const unsigned char *sig64,
68  const unsigned char *msg32
70 
90  const secp256k1_context* ctx,
91  secp256k1_pubkey *pubnonce,
92  unsigned char *privnonce32,
93  const unsigned char *msg32,
94  const unsigned char *sec32,
96  const void* noncedata
98 
142  const secp256k1_context* ctx,
143  unsigned char *sig64,
144  const unsigned char *msg32,
145  const unsigned char *sec32,
146  const secp256k1_pubkey *pubnonce_others,
147  const unsigned char *secnonce32
149 
163  const secp256k1_context* ctx,
164  unsigned char *sig64,
165  const unsigned char * const * sig64sin,
166  size_t n
168 
169 # ifdef __cplusplus
170 }
171 # endif
172 
173 #endif
#define SECP256K1_WARN_UNUSED_RESULT
Definition: secp256k1.h:142
SECP256K1_API int secp256k1_schnorr_sign(const secp256k1_context *ctx, unsigned char *sig64, 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:23
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_schnorr_partial_combine(const secp256k1_context *ctx, unsigned char *sig64, const unsigned char *const *sig64sin, size_t n) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3)
Definition: main_impl.h:157
SECP256K1_API int secp256k1_schnorr_recover(const secp256k1_context *ctx, secp256k1_pubkey *pubkey, const unsigned char *sig64, const unsigned char *msg32) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4)
Definition: main_impl.h:73
static secp256k1_context * ctx
Definition: tests.c:42
SECP256K1_API int secp256k1_schnorr_generate_nonce_pair(const secp256k1_context *ctx, secp256k1_pubkey *pubnonce, unsigned char *privnonce32, const unsigned char *msg32, const unsigned char *sec32, secp256k1_nonce_function noncefp, const void *noncedata) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3)
Definition: main_impl.h:91
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_schnorr_verify(const secp256k1_context *ctx, const unsigned char *sig64, const unsigned char *msg32, const secp256k1_pubkey *pubkey) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4)
Definition: main_impl.h:61
#define SECP256K1_ARG_NONNULL(_x)
Definition: secp256k1.h:147
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:92
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_schnorr_partial_sign(const secp256k1_context *ctx, unsigned char *sig64, const unsigned char *msg32, const unsigned char *sec32, const secp256k1_pubkey *pubnonce_others, const unsigned char *secnonce32) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4) SECP256K1_ARG_NONNULL(5) SECP256K1_ARG_NONNULL(6)
Definition: main_impl.h:133
#define SECP256K1_API
Definition: secp256k1.h:132