Merge pull request #230 from rust-bitcoin/2020-08-secp-0.18.0

increase version to 0.18.0
This commit is contained in:
Elichai Turkel 2020-08-27 11:48:25 +03:00 committed by GitHub
commit ac9295c38a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 5 deletions

View File

@ -1,4 +1,11 @@
# 0.18.0 - 2020-08-26
* Add feature-gated `bitcoin_hashes` dependency and [`ThirtyTwoByteHash` trait](https://github.com/rust-bitcoin/rust-secp256k1/pull/206/)
* Add feature-gated [global static context](https://github.com/rust-bitcoin/rust-secp256k1/pull/224)
* Allow [all-zero messages](https://github.com/rust-bitcoin/rust-secp256k1/pull/207) to be constructed
* Bump rust-secp-sys to 0.2.0
# 0.17.2 # 0.17.2
- Fix linking in the `fuzztarget` feature. - Fix linking in the `fuzztarget` feature.

View File

@ -1,7 +1,7 @@
[package] [package]
name = "secp256k1" name = "secp256k1"
version = "0.17.2" version = "0.18.0"
authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>", authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>",
"Andrew Poelstra <apoelstra@wpsoftware.net>" ] "Andrew Poelstra <apoelstra@wpsoftware.net>" ]
license = "CC0-1.0" license = "CC0-1.0"

View File

@ -167,7 +167,6 @@ mod tests {
use rand::thread_rng; use rand::thread_rng;
use super::SharedSecret; use super::SharedSecret;
use super::super::Secp256k1; use super::super::Secp256k1;
use Error;
#[test] #[test]
fn ecdh() { fn ecdh() {

View File

@ -154,7 +154,7 @@ impl SecretKey {
&mut self &mut self
) { ) {
unsafe { unsafe {
let res = ffi::secp256k1_ec_privkey_negate( let res = ffi::secp256k1_ec_seckey_negate(
ffi::secp256k1_context_no_precomp, ffi::secp256k1_context_no_precomp,
self.as_mut_c_ptr() self.as_mut_c_ptr()
); );
@ -174,7 +174,7 @@ impl SecretKey {
return Err(Error::InvalidTweak); return Err(Error::InvalidTweak);
} }
unsafe { unsafe {
if ffi::secp256k1_ec_privkey_tweak_add( if ffi::secp256k1_ec_seckey_tweak_add(
ffi::secp256k1_context_no_precomp, ffi::secp256k1_context_no_precomp,
self.as_mut_c_ptr(), self.as_mut_c_ptr(),
other.as_c_ptr(), other.as_c_ptr(),
@ -199,7 +199,7 @@ impl SecretKey {
return Err(Error::InvalidTweak); return Err(Error::InvalidTweak);
} }
unsafe { unsafe {
if ffi::secp256k1_ec_privkey_tweak_mul( if ffi::secp256k1_ec_seckey_tweak_mul(
ffi::secp256k1_context_no_precomp, ffi::secp256k1_context_no_precomp,
self.as_mut_c_ptr(), self.as_mut_c_ptr(),
other.as_c_ptr(), other.as_c_ptr(),