From 455ee57ba4051bb2cfea5f5f675378170fb42c7f Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Fri, 18 Jun 2021 23:33:37 +0200 Subject: [PATCH] Bump sys version to 0.4.1 --- Cargo.toml | 2 +- secp256k1-sys/Cargo.toml | 2 +- secp256k1-sys/src/lib.rs | 26 ++++++++++++-------------- 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f1b580f..986c6d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -29,7 +29,7 @@ global-context = ["std", "rand-std", "global-context-less-secure"] global-context-less-secure = [] [dependencies] -secp256k1-sys = { version = "0.4.0", default-features = false, path = "./secp256k1-sys" } +secp256k1-sys = { version = "0.4.1", default-features = false, path = "./secp256k1-sys" } bitcoin_hashes = { version = "0.9", optional = true } rand = { version = "0.6", default-features = false, optional = true } serde = { version = "1.0", default-features = false, optional = true } diff --git a/secp256k1-sys/Cargo.toml b/secp256k1-sys/Cargo.toml index 94b4348..9d5f4fb 100644 --- a/secp256k1-sys/Cargo.toml +++ b/secp256k1-sys/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "secp256k1-sys" -version = "0.4.0" +version = "0.4.1" authors = [ "Dawid Ciężarkiewicz ", "Andrew Poelstra ", "Steven Roose " ] diff --git a/secp256k1-sys/src/lib.rs b/secp256k1-sys/src/lib.rs index 974a60f..7577eca 100644 --- a/secp256k1-sys/src/lib.rs +++ b/secp256k1-sys/src/lib.rs @@ -348,6 +348,18 @@ extern "C" { sk: *mut c_uchar, tweak: *const c_uchar) -> c_int; + + #[cfg_attr(not(rust_secp_no_symbol_renaming), link_name = "rustsecp256k1_v0_4_1_keypair_sec")] + pub fn secp256k1_keypair_sec(cx: *const Context, + output_seckey: *mut c_uchar, + keypair: *const KeyPair) + -> c_int; + + #[cfg_attr(not(rust_secp_no_symbol_renaming), link_name = "rustsecp256k1_v0_4_1_keypair_pub")] + pub fn secp256k1_keypair_pub(cx: *const Context, + output_pubkey: *mut PublicKey, + keypair: *const KeyPair) + -> c_int; } #[cfg(not(fuzzing))] @@ -518,20 +530,6 @@ extern "C" { internal_pubkey: *const XOnlyPublicKey, tweak32: *const c_uchar, ) -> c_int; - - #[cfg_attr(not(rust_secp_no_symbol_renaming), link_name = "rustsecp256k1_v0_4_1_keypair_sec")] - pub fn secp256k1_keypair_sec( - cx: *const Context, - output_seckey: *mut c_uchar, - keypair: *const KeyPair - ) -> c_int; - - #[cfg_attr(not(rust_secp_no_symbol_renaming), link_name = "rustsecp256k1_v0_4_1_keypair_pub")] - pub fn secp256k1_keypair_pub( - cx: *const Context, - output_pubkey: *mut PublicKey, - keypair: *const KeyPair - ) -> c_int; } /// A reimplementation of the C function `secp256k1_context_create` in rust.