Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/include/secp256k1_extrakeys.h
Show First 20 Lines • Show All 159 Lines • ▼ Show 20 Lines | |||||
* In: seckey: pointer to a 32-byte secret key (cannot be NULL) | * In: seckey: pointer to a 32-byte secret key (cannot be NULL) | ||||
*/ | */ | ||||
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_keypair_create( | SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_keypair_create( | ||||
const secp256k1_context* ctx, | const secp256k1_context* ctx, | ||||
secp256k1_keypair *keypair, | secp256k1_keypair *keypair, | ||||
const unsigned char *seckey | const unsigned char *seckey | ||||
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3); | ) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3); | ||||
/** Get the secret key from a keypair. | |||||
* | |||||
* Returns: 0 if the arguments are invalid. 1 otherwise. | |||||
* Args: ctx: pointer to a context object (cannot be NULL) | |||||
* Out: seckey: pointer to a 32-byte buffer for the secret key (cannot be NULL) | |||||
* In: keypair: pointer to a keypair (cannot be NULL) | |||||
*/ | |||||
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_keypair_sec( | |||||
const secp256k1_context* ctx, | |||||
unsigned char *seckey, | |||||
const secp256k1_keypair *keypair | |||||
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3); | |||||
/** Get the public key from a keypair. | /** Get the public key from a keypair. | ||||
* | * | ||||
* Returns: 0 if the arguments are invalid. 1 otherwise. | * Returns: 0 if the arguments are invalid. 1 otherwise. | ||||
* Args: ctx: pointer to a context object (cannot be NULL) | * Args: ctx: pointer to a context object (cannot be NULL) | ||||
* Out: pubkey: pointer to a pubkey object. If 1 is returned, it is set to | * Out: pubkey: pointer to a pubkey object. If 1 is returned, it is set to | ||||
* the keypair public key. If not, it's set to an invalid value. | * the keypair public key. If not, it's set to an invalid value. | ||||
* (cannot be NULL) | * (cannot be NULL) | ||||
* In: keypair: pointer to a keypair (cannot be NULL) | * In: keypair: pointer to a keypair (cannot be NULL) | ||||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |