Bitcoin ABC  0.22.13
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 
20  const secp256k1_context* ctx,
21  const unsigned char *sig64,
22  const unsigned char *msg32,
23  const secp256k1_pubkey *pubkey
25 
45  const secp256k1_context *ctx,
46  unsigned char *sig64,
47  const unsigned char *msg32,
48  const unsigned char *seckey,
50  const void *ndata
51 ) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4);
52 
53 # ifdef __cplusplus
54 }
55 # endif
56 
57 #endif
#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
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)
Create a signature using a custom EC-Schnorr-SHA256 construction.
Definition: main_impl.h:33
secp256k1_context * ctx
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)
Verify a signature created by secp256k1_schnorr_sign.
Definition: main_impl.h:13
#define SECP256K1_ARG_NONNULL(_x)
Definition: secp256k1.h:155
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
#define SECP256K1_API
Definition: secp256k1.h:140
Opaque data structure that holds a parsed and valid public key.
Definition: secp256k1.h:67