Skip to content

Commit 9282b10

Browse files
committed
Merge #67: add more missing derives; release 0.9.1
fca3ed0 add more missing derives; release 0.9.1 (Andrew Poelstra) Pull request description: . ACKs for top commit: sanket1729: ACK fca3ed0 Tree-SHA512: bfdbaeb251c5c3ddc61629f6c87a51692490c2def7dbc77fd4cd2b9045adf56c33c283654463f754b7df39b88dfe7455104ab2733961e8768f7a510b2ade4fdc
2 parents b1ff7fb + fca3ed0 commit 9282b10

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Unreleased
22

3+
# 0.9.1 - 2023-06-09
4+
5+
- Add `Hash` derive to `Tweak`
6+
37
# 0.9.0 - 2023-06-08
48

59
- Rename `use-serde` to `serde` and `use-rand` to `rand`

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "secp256k1-zkp"
3-
version = "0.9.0"
3+
version = "0.9.1"
44
authors = [ "Dawid Ciężarkiewicz <dpc@ucore.info>",
55
"Andrew Poelstra <apoelstra@wpsoftware.net>",
66
"Lucas Soriano <lucas@comit.network>",

src/zkp/generator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use rand::Rng;
99
/// Contrary to a [`crate::SecretKey`], the value 0 is also a valid tweak.
1010
/// Values outside secp curve order are invalid tweaks.
1111
#[derive(Default, Copy, Clone)]
12-
#[cfg_attr(not(fuzzing), derive(Eq, PartialEq, PartialOrd, Ord))]
12+
#[cfg_attr(not(fuzzing), derive(Eq, PartialEq, PartialOrd, Ord, Hash))]
1313
pub struct Tweak([u8; constants::SECRET_KEY_SIZE]);
1414
secp256k1_zkp_sys::impl_array_newtype!(Tweak, u8, constants::SECRET_KEY_SIZE);
1515

0 commit comments

Comments
 (0)