HomePhabricator

[secp256k1] Add `secp256k1_ec_pubkey_cmp` and `secp256k1_xonly_pubkey_cmp`

Description

[secp256k1] Add secp256k1_ec_pubkey_cmp and secp256k1_xonly_pubkey_cmp

Summary:
Allows comparing secp256k1_pubkey and secp256k1_xonly_pubkey respectively, to establish an order between them.

This is a backport of secp256k1#850 and secp256k1#926.

We need this for porting rust-secp256k1 to the secp256k1 library of this repo.

Test Plan: ninja check-secp256k1

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D16957

Details

Provenance
tobias_ruckAuthored on Oct 22 2024, 17:25
tobias_ruckPushed on Oct 22 2024, 19:44
Reviewer
Restricted Project
Differential Revision
D16957: [secp256k1] Add `secp256k1_ec_pubkey_cmp` and `secp256k1_xonly_pubkey_cmp`
Parents
rABC73cf6898e964: [ecash-agora] Add integration test dev env instructions to README
Branches
Unknown
Tags
Unknown