@@ -86,7 +86,7 @@ const HIGH_FREQUENCY_BUMP_INTERVAL: u32 = 1;
86
86
///
87
87
/// CSV and pubkeys are used as part of a witnessScript redeeming a balance output, amount is used
88
88
/// as part of the signature hash and revocation secret to generate a satisfying witness.
89
- #[ derive( Clone , PartialEq ) ]
89
+ #[ derive( Clone , PartialEq , Eq ) ]
90
90
pub ( crate ) struct RevokedOutput {
91
91
per_commitment_point : PublicKey ,
92
92
counterparty_delayed_payment_base_key : PublicKey ,
@@ -129,7 +129,7 @@ impl_writeable_tlv_based!(RevokedOutput, {
129
129
///
130
130
/// CSV is used as part of a witnessScript redeeming a balance output, amount is used as part
131
131
/// of the signature hash and revocation secret to generate a satisfying witness.
132
- #[ derive( Clone , PartialEq ) ]
132
+ #[ derive( Clone , PartialEq , Eq ) ]
133
133
pub ( crate ) struct RevokedHTLCOutput {
134
134
per_commitment_point : PublicKey ,
135
135
counterparty_delayed_payment_base_key : PublicKey ,
@@ -171,7 +171,7 @@ impl_writeable_tlv_based!(RevokedHTLCOutput, {
171
171
/// witnessScript.
172
172
///
173
173
/// The preimage is used as part of the witness.
174
- #[ derive( Clone , PartialEq ) ]
174
+ #[ derive( Clone , PartialEq , Eq ) ]
175
175
pub ( crate ) struct CounterpartyOfferedHTLCOutput {
176
176
per_commitment_point : PublicKey ,
177
177
counterparty_delayed_payment_base_key : PublicKey ,
@@ -204,7 +204,7 @@ impl_writeable_tlv_based!(CounterpartyOfferedHTLCOutput, {
204
204
///
205
205
/// HTLCOutputInCommitment (hash, timelock, directon) and pubkeys are used to generate a suitable
206
206
/// witnessScript.
207
- #[ derive( Clone , PartialEq ) ]
207
+ #[ derive( Clone , PartialEq , Eq ) ]
208
208
pub ( crate ) struct CounterpartyReceivedHTLCOutput {
209
209
per_commitment_point : PublicKey ,
210
210
counterparty_delayed_payment_base_key : PublicKey ,
@@ -234,7 +234,7 @@ impl_writeable_tlv_based!(CounterpartyReceivedHTLCOutput, {
234
234
///
235
235
/// Either offered or received, the amount is always used as part of the bip143 sighash.
236
236
/// Preimage is only included as part of the witness in former case.
237
- #[ derive( Clone , PartialEq ) ]
237
+ #[ derive( Clone , PartialEq , Eq ) ]
238
238
pub ( crate ) struct HolderHTLCOutput {
239
239
preimage : Option < PaymentPreimage > ,
240
240
amount : u64 ,
@@ -269,7 +269,7 @@ impl_writeable_tlv_based!(HolderHTLCOutput, {
269
269
/// A struct to describe the channel output on the funding transaction.
270
270
///
271
271
/// witnessScript is used as part of the witness redeeming the funding utxo.
272
- #[ derive( Clone , PartialEq ) ]
272
+ #[ derive( Clone , PartialEq , Eq ) ]
273
273
pub ( crate ) struct HolderFundingOutput {
274
274
funding_redeemscript : Script ,
275
275
}
@@ -290,7 +290,7 @@ impl_writeable_tlv_based!(HolderFundingOutput, {
290
290
///
291
291
/// The generic API offers access to an outputs common attributes or allow transformation such as
292
292
/// finalizing an input claiming the output.
293
- #[ derive( Clone , PartialEq ) ]
293
+ #[ derive( Clone , PartialEq , Eq ) ]
294
294
pub ( crate ) enum PackageSolvingData {
295
295
RevokedOutput ( RevokedOutput ) ,
296
296
RevokedHTLCOutput ( RevokedHTLCOutput ) ,
@@ -444,7 +444,7 @@ impl_writeable_tlv_based_enum!(PackageSolvingData, ;
444
444
/// A malleable package might be aggregated with other packages to save on fees.
445
445
/// A untractable package has been counter-signed and aggregable will break cached counterparty
446
446
/// signatures.
447
- #[ derive( Clone , PartialEq ) ]
447
+ #[ derive( Clone , PartialEq , Eq ) ]
448
448
pub ( crate ) enum PackageMalleability {
449
449
Malleable ,
450
450
Untractable ,
@@ -459,7 +459,7 @@ pub(crate) enum PackageMalleability {
459
459
///
460
460
/// As packages are time-sensitive, we fee-bump and rebroadcast them at scheduled intervals.
461
461
/// Failing to confirm a package translate as a loss of funds for the user.
462
- #[ derive( Clone , PartialEq ) ]
462
+ #[ derive( Clone , PartialEq , Eq ) ]
463
463
pub struct PackageTemplate {
464
464
// List of onchain outputs and solving data to generate satisfying witnesses.
465
465
inputs : Vec < ( BitcoinOutPoint , PackageSolvingData ) > ,
0 commit comments