From 603e75eb77555b0c8e07c38bffece813b9563ff8 Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Fri, 1 Apr 2022 11:45:32 +0200 Subject: [PATCH] Derive Eq for PSBT types --- src/util/psbt/map/input.rs | 2 +- src/util/psbt/map/output.rs | 2 +- src/util/psbt/mod.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/psbt/map/input.rs b/src/util/psbt/map/input.rs index dd660d67..fb4b06bf 100644 --- a/src/util/psbt/map/input.rs +++ b/src/util/psbt/map/input.rs @@ -79,7 +79,7 @@ const PSBT_IN_PROPRIETARY: u8 = 0xFC; /// A key-value map for an input of the corresponding index in the unsigned /// transaction. -#[derive(Clone, Default, Debug, PartialEq)] +#[derive(Clone, Default, Debug, PartialEq, Eq)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct Input { /// The non-witness transaction this input spends from. Should only be diff --git a/src/util/psbt/map/output.rs b/src/util/psbt/map/output.rs index a77a5729..53edd2d5 100644 --- a/src/util/psbt/map/output.rs +++ b/src/util/psbt/map/output.rs @@ -47,7 +47,7 @@ const PSBT_OUT_PROPRIETARY: u8 = 0xFC; /// A key-value map for an output of the corresponding index in the unsigned /// transaction. -#[derive(Clone, Default, Debug, PartialEq)] +#[derive(Clone, Default, Debug, PartialEq, Eq)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct Output { /// The redeem script for this output. diff --git a/src/util/psbt/mod.rs b/src/util/psbt/mod.rs index ef3acdc8..54c1b4ed 100644 --- a/src/util/psbt/mod.rs +++ b/src/util/psbt/mod.rs @@ -47,7 +47,7 @@ use self::map::Map; use util::bip32::{ExtendedPubKey, KeySource}; /// A Partially Signed Transaction. -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct PartiallySignedTransaction { /// The unsigned transaction, scriptSigs and witnesses for each input must be