Bitcoin ABC  0.24.7
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 
25  const secp256k1_context* ctx,
26  const unsigned char *sig64,
27  const unsigned char *msghash32,
28  const secp256k1_pubkey *pubkey
30 
50  const secp256k1_context *ctx,
51  unsigned char *sig64,
52  const unsigned char *msghash32,
53  const unsigned char *seckey,
55  const void *ndata
57 
58 # ifdef __cplusplus
59 }
60 # endif
61 
62 #endif
secp256k1_context_struct
Definition: secp256k1.c:69
SECP256K1_API
#define SECP256K1_API
Definition: secp256k1.h:140
secp256k1.h
SECP256K1_WARN_UNUSED_RESULT
#define SECP256K1_WARN_UNUSED_RESULT
Warning attributes NONNULL is not used if SECP256K1_BUILD is set to avoid the compiler optimizing out...
Definition: secp256k1.h:150
ctx
secp256k1_context * ctx
Definition: bench_multiset.c:12
secp256k1_schnorr_sign
SECP256K1_API int secp256k1_schnorr_sign(const secp256k1_context *ctx, unsigned char *sig64, const unsigned char *msghash32, 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)
Create a signature using a custom EC-Schnorr-SHA256 construction.
Definition: main_impl.h:33
SECP256K1_ARG_NONNULL
#define SECP256K1_ARG_NONNULL(_x)
Definition: secp256k1.h:155
secp256k1_pubkey
Opaque data structure that holds a parsed and valid public key.
Definition: secp256k1.h:67
secp256k1_nonce_function
int(* secp256k1_nonce_function)(unsigned char *nonce32, const unsigned char *msg32, const unsigned char *key32, const unsigned char *algo16, void *data, unsigned int attempt)
A pointer to a function to deterministically generate a nonce.
Definition: secp256k1.h:100
secp256k1_schnorr_verify
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_schnorr_verify(const secp256k1_context *ctx, const unsigned char *sig64, const unsigned char *msghash32, const secp256k1_pubkey *pubkey) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4)
Verify a signature created by secp256k1_schnorr_sign.
Definition: main_impl.h:13