Bump sys version to 0.4.1

This commit is contained in:
Dr Maxim Orlovsky 2021-06-18 23:33:37 +02:00
parent aa6bdaff3c
commit 455ee57ba4
No known key found for this signature in database
GPG Key ID: FFC0250947E5C6F7
3 changed files with 14 additions and 16 deletions

View File

@ -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 }

View File

@ -1,6 +1,6 @@
[package]
name = "secp256k1-sys"
version = "0.4.0"
version = "0.4.1"
authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>",
"Andrew Poelstra <apoelstra@wpsoftware.net>",
"Steven Roose <steven@stevenroose.org>" ]

View File

@ -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.