 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
7 #ifndef _SECP256K1_WHITELIST_
8 #define _SECP256K1_WHITELIST_
16 #define SECP256K1_WHITELIST_MAX_N_KEYS 256
63 const unsigned char *input,
88 unsigned char *output,
122 const
unsigned char *online_seckey,
123 const
unsigned char *summed_seckey,
126 const
void *noncedata
SECP256K1_API int secp256k1_whitelist_signature_parse(const secp256k1_context2 *ctx, secp256k1_whitelist_signature *sig, const unsigned char *input, size_t input_len) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3)
Parse a whitelist signature.
Opaque data structure that holds a parsed and valid public key.
SECP256K1_API int secp256k1_whitelist_sign(const secp256k1_context2 *ctx, secp256k1_whitelist_signature *sig, const secp256k1_pubkey2 *online_pubkeys, const secp256k1_pubkey2 *offline_pubkeys, const size_t n_keys, const secp256k1_pubkey2 *sub_pubkey, const unsigned char *online_seckey, const unsigned char *summed_seckey, const size_t index, secp256k1_nonce_function2 noncefp, const void *noncedata) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4) SECP256K1_ARG_NONNULL(6) SECP256K1_ARG_NONNULL(7) SECP256K1_ARG_NONNULL(8)
Compute a whitelist signature Returns 1: signature was successfully created 0: signature was not succ...
#define SECP256K1_WHITELIST_MAX_N_KEYS
int(* secp256k1_nonce_function2)(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.
SECP256K1_API int secp256k1_whitelist_verify(const secp256k1_context2 *ctx, const secp256k1_whitelist_signature *sig, const secp256k1_pubkey2 *online_pubkeys, const secp256k1_pubkey2 *offline_pubkeys, const size_t n_keys, const secp256k1_pubkey2 *sub_pubkey) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4) SECP256K1_ARG_NONNULL(6)
Verify a whitelist signature Returns 1: signature is valid 0: signature is not valid In: ctx: pointer...
Opaque data structure that holds a parsed whitelist proof.
SECP256K1_API size_t secp256k1_whitelist_signature_n_keys(const secp256k1_whitelist_signature *sig) SECP256K1_ARG_NONNULL(1)
Returns the number of keys a signature expects to have.
#define SECP256K1_ARG_NONNULL(_x)
SECP256K1_API int secp256k1_whitelist_signature_serialize(const secp256k1_context2 *ctx, unsigned char *output, size_t *output_len, const secp256k1_whitelist_signature *sig) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4)
Serialize a whitelist signature.