extrakeys: improve doc of keypair_create (don't suggest retry)
This commit is contained in:
@@ -684,7 +684,7 @@ SECP256K1_API int secp256k1_ecdsa_sign(
|
|||||||
* A secret key is valid if it is not 0 and less than the secp256k1 curve order
|
* A secret key is valid if it is not 0 and less than the secp256k1 curve order
|
||||||
* when interpreted as an integer (most significant byte first). The
|
* when interpreted as an integer (most significant byte first). The
|
||||||
* probability of choosing a 32-byte string uniformly at random which is an
|
* probability of choosing a 32-byte string uniformly at random which is an
|
||||||
* invalid secret key is negligible. However, if it does happen it should
|
* invalid secret key is negligible. However, if it does happen it should
|
||||||
* be assumed that the randomness source is severely broken and there should
|
* be assumed that the randomness source is severely broken and there should
|
||||||
* be no retry.
|
* be no retry.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -155,10 +155,13 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_xonly_pubkey_tweak_add_
|
|||||||
const unsigned char *tweak32
|
const unsigned char *tweak32
|
||||||
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(4) SECP256K1_ARG_NONNULL(5);
|
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(4) SECP256K1_ARG_NONNULL(5);
|
||||||
|
|
||||||
/** Compute the keypair for a secret key.
|
/** Compute the keypair for a valid secret key.
|
||||||
*
|
*
|
||||||
* Returns: 1: secret was valid, keypair is ready to use
|
* See the documentation of `secp256k1_ec_seckey_verify` for more information
|
||||||
* 0: secret was invalid, try again with a different secret
|
* about the validity of secret keys.
|
||||||
|
*
|
||||||
|
* Returns: 1: secret key is valid
|
||||||
|
* 0: secret key is invalid
|
||||||
* Args: ctx: pointer to a context object (not secp256k1_context_static).
|
* Args: ctx: pointer to a context object (not secp256k1_context_static).
|
||||||
* Out: keypair: pointer to the created keypair.
|
* Out: keypair: pointer to the created keypair.
|
||||||
* In: seckey: pointer to a 32-byte secret key.
|
* In: seckey: pointer to a 32-byte secret key.
|
||||||
|
|||||||
Reference in New Issue
Block a user