extrakeys: Remove redundant secp256k1_pubkey_cmp

It was a verbatim copy of secp256k1_ec_pubkey_cmp.
This commit is contained in:
Tim Ruffing
2024-01-18 11:38:26 +01:00
parent c29f28e638
commit 4f65698865
4 changed files with 4 additions and 84 deletions

View File

@@ -240,22 +240,6 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_keypair_xonly_tweak_add
const unsigned char *tweak32
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3);
/** Compare two public keys using lexicographic order of their compressed
* serialization.
*
* Returns: <0 if the first public key is less than the second
* >0 if the first public key is greater than the second
* 0 if the two public keys are equal
* Args: ctx: a secp256k1 context object.
* In: pubkey1: first public key to compare
* pubkey2: second public key to compare
*/
SECP256K1_API int secp256k1_pubkey_cmp(
const secp256k1_context *ctx,
const secp256k1_pubkey *pk1,
const secp256k1_pubkey *pk2
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3);
/** Sort public keys using lexicographic order of their compressed
* serialization.
*

View File

@@ -58,7 +58,7 @@ SECP256K1_API int secp256k1_generator_serialize(
* 1 otherwise.
* Args: ctx: pointer to a context object
* Out: gen: pointer to a the new generator object
* In: seed32: a 32-byte seed
* In: seed32: 32-byte seed
*
* If successful a valid generator will be placed in gen. The produced
* generators are distributed uniformly over the curve, and will not have a
@@ -77,8 +77,8 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_generator_generate(
* blind is out of range. 1 otherwise.
* Args: ctx: pointer to a context object (not secp256k1_context_static)
* Out: gen: pointer to a generator object
* In: seed32: a 32-byte seed
* blind32: a 32-byte secret value to blind the generator with.
* In: seed32: 32-byte seed
* blind32: 32-byte secret value to blind the generator with.
*
* The result is equivalent to first calling secp256k1_generator_generate,
* converting the result to a public key, calling secp256k1_ec_pubkey_tweak_add,