Skip to content

Commit ac9295c

Browse files
authored
Merge pull request #230 from rust-bitcoin/2020-08-secp-0.18.0
increase version to 0.18.0
2 parents 51ca155 + 0606487 commit ac9295c

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

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

src/ecdh.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ mod tests {
167167
use rand::thread_rng;
168168
use super::SharedSecret;
169169
use super::super::Secp256k1;
170-
use Error;
171170

172171
#[test]
173172
fn ecdh() {

src/key.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl SecretKey {
154154
&mut self
155155
) {
156156
unsafe {
157-
let res = ffi::secp256k1_ec_privkey_negate(
157+
let res = ffi::secp256k1_ec_seckey_negate(
158158
ffi::secp256k1_context_no_precomp,
159159
self.as_mut_c_ptr()
160160
);
@@ -174,7 +174,7 @@ impl SecretKey {
174174
return Err(Error::InvalidTweak);
175175
}
176176
unsafe {
177-
if ffi::secp256k1_ec_privkey_tweak_add(
177+
if ffi::secp256k1_ec_seckey_tweak_add(
178178
ffi::secp256k1_context_no_precomp,
179179
self.as_mut_c_ptr(),
180180
other.as_c_ptr(),
@@ -199,7 +199,7 @@ impl SecretKey {
199199
return Err(Error::InvalidTweak);
200200
}
201201
unsafe {
202-
if ffi::secp256k1_ec_privkey_tweak_mul(
202+
if ffi::secp256k1_ec_seckey_tweak_mul(
203203
ffi::secp256k1_context_no_precomp,
204204
self.as_mut_c_ptr(),
205205
other.as_c_ptr(),

0 commit comments

Comments
 (0)