Skip to content

Commit 999d165

Browse files
dr-orlovskytcharding
authored andcommitted
FFI for pubkey comparison ops
1 parent aab77b1 commit 999d165

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

secp256k1-sys/src/lib.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,12 @@ extern "C" {
379379
tweak: *const c_uchar)
380380
-> c_int;
381381

382+
#[cfg_attr(not(rust_secp_no_symbol_renaming), link_name = "rustsecp256k1_v0_5_0_ec_pubkey_cmp")]
383+
pub fn secp256k1_ec_pubkey_cmp(cx: *const Context,
384+
pubkey1: *const PublicKey,
385+
pubkey2: *const PublicKey)
386+
-> c_int;
387+
382388
#[cfg_attr(not(rust_secp_no_symbol_renaming), link_name = "rustsecp256k1_v0_5_0_keypair_sec")]
383389
pub fn secp256k1_keypair_sec(cx: *const Context,
384390
output_seckey: *mut c_uchar,
@@ -390,6 +396,12 @@ extern "C" {
390396
output_pubkey: *mut PublicKey,
391397
keypair: *const KeyPair)
392398
-> c_int;
399+
400+
#[cfg_attr(not(rust_secp_no_symbol_renaming), link_name = "rustsecp256k1_v0_5_0_xonly_pubkey_cmp")]
401+
pub fn secp256k1_xonly_pubkey_cmp(cx: *const Context,
402+
pubkey1: *const XOnlyPublicKey,
403+
pubkey2: *const XOnlyPublicKey)
404+
-> c_int;
393405
}
394406

395407
#[cfg(not(fuzzing))]

0 commit comments

Comments
 (0)