Merge rust-bitcoin/rust-bitcoin#932: Derive Eq for PSBT types
603e75eb77
Derive Eq for PSBT types (Dr Maxim Orlovsky) Pull request description: Closes #931 ACKs for top commit: apoelstra: ACK603e75eb77
sanket1729: utACK603e75eb77
. Tree-SHA512: 8099e80aa2000b3d1284543b6bfab3edd45f8649519bd09b4d73d250bdb6cce5edf67a1e0e0cec61db23c358daca286061641da5ff5c2a8b4b030d1199707c94
This commit is contained in:
commit
cb4d34fd40
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue