diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b164e00..c9637be5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,9 @@ and this project adheres to Rust's notion of - `impl memuse::DynamicUsage for OrchardDomain` - `orchard::builder::SpendInfo::new` - `orchard::circuit::Circuit::from_action_context` +- impls of `Eq` for: + - `orchard::zip32::ChildIndex` + - `orchard::value::ValueSum` ### Changed - Migrated to `zcash_note_encryption 0.2`. diff --git a/src/value.rs b/src/value.rs index 71727577..8b53fe16 100644 --- a/src/value.rs +++ b/src/value.rs @@ -144,7 +144,7 @@ pub(crate) enum Sign { } /// A sum of Orchard note values. -#[derive(Clone, Copy, Debug, Default, PartialEq)] +#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)] pub struct ValueSum(i128); impl ValueSum { diff --git a/src/zip32.rs b/src/zip32.rs index ab0d30b3..3ba8bd57 100644 --- a/src/zip32.rs +++ b/src/zip32.rs @@ -65,7 +65,7 @@ impl FvkTag { } /// A hardened child index for a derived key. -#[derive(Copy, Clone, Debug, PartialEq)] +#[derive(Copy, Clone, Debug, PartialEq, Eq)] pub struct ChildIndex(u32); impl TryFrom for ChildIndex {