FFI for pubkey comparison ops
This commit is contained in:
parent
aab77b16c2
commit
999d165c68
|
@ -379,6 +379,12 @@ extern "C" {
|
||||||
tweak: *const c_uchar)
|
tweak: *const c_uchar)
|
||||||
-> c_int;
|
-> c_int;
|
||||||
|
|
||||||
|
#[cfg_attr(not(rust_secp_no_symbol_renaming), link_name = "rustsecp256k1_v0_5_0_ec_pubkey_cmp")]
|
||||||
|
pub fn secp256k1_ec_pubkey_cmp(cx: *const Context,
|
||||||
|
pubkey1: *const PublicKey,
|
||||||
|
pubkey2: *const PublicKey)
|
||||||
|
-> c_int;
|
||||||
|
|
||||||
#[cfg_attr(not(rust_secp_no_symbol_renaming), link_name = "rustsecp256k1_v0_5_0_keypair_sec")]
|
#[cfg_attr(not(rust_secp_no_symbol_renaming), link_name = "rustsecp256k1_v0_5_0_keypair_sec")]
|
||||||
pub fn secp256k1_keypair_sec(cx: *const Context,
|
pub fn secp256k1_keypair_sec(cx: *const Context,
|
||||||
output_seckey: *mut c_uchar,
|
output_seckey: *mut c_uchar,
|
||||||
|
@ -390,6 +396,12 @@ extern "C" {
|
||||||
output_pubkey: *mut PublicKey,
|
output_pubkey: *mut PublicKey,
|
||||||
keypair: *const KeyPair)
|
keypair: *const KeyPair)
|
||||||
-> c_int;
|
-> c_int;
|
||||||
|
|
||||||
|
#[cfg_attr(not(rust_secp_no_symbol_renaming), link_name = "rustsecp256k1_v0_5_0_xonly_pubkey_cmp")]
|
||||||
|
pub fn secp256k1_xonly_pubkey_cmp(cx: *const Context,
|
||||||
|
pubkey1: *const XOnlyPublicKey,
|
||||||
|
pubkey2: *const XOnlyPublicKey)
|
||||||
|
-> c_int;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(fuzzing))]
|
#[cfg(not(fuzzing))]
|
||||||
|
|
Loading…
Reference in New Issue