diff options
author | fanquake <fanquake@gmail.com> | 2024-05-16 10:35:52 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2024-05-16 10:35:52 +0800 |
commit | f82a940bbfda2622d01e581187b7ba10b4a66a55 (patch) | |
tree | e80c60b6abbacd702e04d9c1b4366ab41d93d013 /src/secp256k1/include/secp256k1.h | |
parent | ae2658caacc1f3d8ab48d6b8ece481b1e9707fbb (diff) | |
parent | ca3d945dc66e177e8fa3e83c77236de89cc0072a (diff) | |
download | bitcoin-f82a940bbfda2622d01e581187b7ba10b4a66a55.tar.xz |
Update libsecp256k1 subtree to latest master
Diffstat (limited to 'src/secp256k1/include/secp256k1.h')
-rw-r--r-- | src/secp256k1/include/secp256k1.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/secp256k1/include/secp256k1.h b/src/secp256k1/include/secp256k1.h index f4053f2a93..cfbdd528c2 100644 --- a/src/secp256k1/include/secp256k1.h +++ b/src/secp256k1/include/secp256k1.h @@ -474,6 +474,20 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_cmp( const secp256k1_pubkey *pubkey2 ) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3); +/** Sort public keys using lexicographic (of compressed serialization) order + * + * Returns: 0 if the arguments are invalid. 1 otherwise. + * + * Args: ctx: pointer to a context object + * In: pubkeys: array of pointers to pubkeys to sort + * n_pubkeys: number of elements in the pubkeys array + */ +SECP256K1_API int secp256k1_ec_pubkey_sort( + const secp256k1_context *ctx, + const secp256k1_pubkey **pubkeys, + size_t n_pubkeys +) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2); + /** Parse an ECDSA signature in compact (64 bytes) format. * * Returns: 1 when the signature could be parsed, 0 otherwise. |