Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/include/secp256k1.h
Show First 20 Lines • Show All 492 Lines • ▼ Show 20 Lines | SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_create( | ||||
secp256k1_pubkey *pubkey, | secp256k1_pubkey *pubkey, | ||||
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); | ||||
/** Negates a private key in place. | /** Negates a private key in place. | ||||
* | * | ||||
* Returns: 1 always | * Returns: 1 always | ||||
* Args: ctx: pointer to a context object | * Args: ctx: pointer to a context object | ||||
* In/Out: pubkey: pointer to the public key to be negated (cannot be NULL) | * In/Out: seckey: pointer to the 32-byte private key to be negated (cannot be NULL) | ||||
*/ | */ | ||||
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_negate( | SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_negate( | ||||
const secp256k1_context* ctx, | const secp256k1_context* ctx, | ||||
unsigned char *seckey | unsigned char *seckey | ||||
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2); | ) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2); | ||||
/** Negates a public key in place. | /** Negates a public key in place. | ||||
* | * | ||||
▲ Show 20 Lines • Show All 112 Lines • Show Last 20 Lines |