@@ -689,6 +689,7 @@ pub trait SignerProvider {
689
689
///
690
690
/// This implementation performs no policy checks and is insufficient by itself as
691
691
/// a secure external signer.
692
+ #[ derive( Debug ) ]
692
693
pub struct InMemorySigner {
693
694
/// Holder secret key in the 2-of-2 multisig script of a channel. This key also backs the
694
695
/// holder's anchor output in a commitment transaction, if one is present.
@@ -718,6 +719,21 @@ pub struct InMemorySigner {
718
719
rand_bytes_index : AtomicCounter ,
719
720
}
720
721
722
+ impl PartialEq for InMemorySigner {
723
+ fn eq ( & self , other : & Self ) -> bool {
724
+ self . funding_key == other. funding_key &&
725
+ self . revocation_base_key == other. revocation_base_key &&
726
+ self . payment_key == other. payment_key &&
727
+ self . delayed_payment_base_key == other. delayed_payment_base_key &&
728
+ self . htlc_base_key == other. htlc_base_key &&
729
+ self . commitment_seed == other. commitment_seed &&
730
+ self . holder_channel_pubkeys == other. holder_channel_pubkeys &&
731
+ self . channel_parameters == other. channel_parameters &&
732
+ self . channel_value_satoshis == other. channel_value_satoshis &&
733
+ self . channel_keys_id == other. channel_keys_id
734
+ }
735
+ }
736
+
721
737
impl Clone for InMemorySigner {
722
738
fn clone ( & self ) -> Self {
723
739
Self {
0 commit comments