Skip to content

Commit

Permalink
Derive Eq for PSBT types
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Apr 1, 2022
1 parent 58a958e commit 603e75e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/util/psbt/map/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/util/psbt/map/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/util/psbt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 603e75e

Please sign in to comment.