Bitcoin ABC 0.30.5
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
7extern "C" {
8# endif
9
26 const unsigned char *sig64,
27 const unsigned char *msghash32,
28 const secp256k1_pubkey *pubkey
30
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 * ctx
#define SECP256K1_ARG_NONNULL(_x)
Definition: secp256k1.h:158
#define SECP256K1_API
Definition: secp256k1.h:143
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:103
#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:153
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_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
Opaque data structure that holds a parsed and valid public key.
Definition: secp256k1.h:70