@@ -43,7 +43,7 @@ use crate::chain;
4343use crate :: chain:: { BestBlock , WatchedOutput } ;
4444use crate :: chain:: chaininterface:: { BroadcasterInterface , FeeEstimator , LowerBoundedFeeEstimator } ;
4545use crate :: chain:: transaction:: { OutPoint , TransactionData } ;
46- use crate :: sign:: { ChannelDerivationParameters , HTLCDescriptor , SpendableOutputDescriptor , StaticPaymentOutputDescriptor , DelayedPaymentOutputDescriptor , ecdsa:: WriteableEcdsaChannelSigner , SignerProvider , EntropySource } ;
46+ use crate :: sign:: { ChannelDerivationParameters , HTLCDescriptor , SpendableOutputDescriptor , StaticPaymentOutputDescriptor , DelayedPaymentOutputDescriptor , ecdsa:: EcdsaChannelSigner , SignerProvider , EntropySource } ;
4747use crate :: chain:: onchaintx:: { ClaimEvent , FeerateStrategy , OnchainTxHandler } ;
4848use crate :: chain:: package:: { CounterpartyOfferedHTLCOutput , CounterpartyReceivedHTLCOutput , HolderFundingOutput , HolderHTLCOutput , PackageSolvingData , PackageTemplate , RevokedOutput , RevokedHTLCOutput } ;
4949use crate :: chain:: Filter ;
@@ -774,22 +774,22 @@ impl Readable for IrrevocablyResolvedHTLC {
774774/// the "reorg path" (ie disconnecting blocks until you find a common ancestor from both the
775775/// returned block hash and the the current chain and then reconnecting blocks to get to the
776776/// best chain) upon deserializing the object!
777- pub struct ChannelMonitor < Signer : WriteableEcdsaChannelSigner > {
777+ pub struct ChannelMonitor < Signer : EcdsaChannelSigner > {
778778 #[ cfg( test) ]
779779 pub ( crate ) inner : Mutex < ChannelMonitorImpl < Signer > > ,
780780 #[ cfg( not( test) ) ]
781781 pub ( super ) inner : Mutex < ChannelMonitorImpl < Signer > > ,
782782}
783783
784- impl < Signer : WriteableEcdsaChannelSigner > Clone for ChannelMonitor < Signer > where Signer : Clone {
784+ impl < Signer : EcdsaChannelSigner > Clone for ChannelMonitor < Signer > where Signer : Clone {
785785 fn clone ( & self ) -> Self {
786786 let inner = self . inner . lock ( ) . unwrap ( ) . clone ( ) ;
787787 ChannelMonitor :: from_impl ( inner)
788788 }
789789}
790790
791791#[ derive( Clone , PartialEq ) ]
792- pub ( crate ) struct ChannelMonitorImpl < Signer : WriteableEcdsaChannelSigner > {
792+ pub ( crate ) struct ChannelMonitorImpl < Signer : EcdsaChannelSigner > {
793793 latest_update_id : u64 ,
794794 commitment_transaction_number_obscure_factor : u64 ,
795795
@@ -943,7 +943,7 @@ pub(crate) struct ChannelMonitorImpl<Signer: WriteableEcdsaChannelSigner> {
943943/// Transaction outputs to watch for on-chain spends.
944944pub type TransactionOutputs = ( Txid , Vec < ( u32 , TxOut ) > ) ;
945945
946- impl < Signer : WriteableEcdsaChannelSigner > PartialEq for ChannelMonitor < Signer > where Signer : PartialEq {
946+ impl < Signer : EcdsaChannelSigner > PartialEq for ChannelMonitor < Signer > where Signer : PartialEq {
947947 fn eq ( & self , other : & Self ) -> bool {
948948 // We need some kind of total lockorder. Absent a better idea, we sort by position in
949949 // memory and take locks in that order (assuming that we can't move within memory while a
@@ -955,7 +955,7 @@ impl<Signer: WriteableEcdsaChannelSigner> PartialEq for ChannelMonitor<Signer> w
955955 }
956956}
957957
958- impl < Signer : WriteableEcdsaChannelSigner > Writeable for ChannelMonitor < Signer > {
958+ impl < Signer : EcdsaChannelSigner > Writeable for ChannelMonitor < Signer > {
959959 fn write < W : Writer > ( & self , writer : & mut W ) -> Result < ( ) , Error > {
960960 self . inner . lock ( ) . unwrap ( ) . write ( writer)
961961 }
@@ -965,7 +965,7 @@ impl<Signer: WriteableEcdsaChannelSigner> Writeable for ChannelMonitor<Signer> {
965965const SERIALIZATION_VERSION : u8 = 1 ;
966966const MIN_SERIALIZATION_VERSION : u8 = 1 ;
967967
968- impl < Signer : WriteableEcdsaChannelSigner > Writeable for ChannelMonitorImpl < Signer > {
968+ impl < Signer : EcdsaChannelSigner > Writeable for ChannelMonitorImpl < Signer > {
969969 fn write < W : Writer > ( & self , writer : & mut W ) -> Result < ( ) , Error > {
970970 write_ver_prefix ! ( writer, SERIALIZATION_VERSION , MIN_SERIALIZATION_VERSION ) ;
971971
@@ -1208,11 +1208,11 @@ impl<'a, L: Deref> Logger for WithChannelMonitor<'a, L> where L::Target: Logger
12081208}
12091209
12101210impl < ' a , L : Deref > WithChannelMonitor < ' a , L > where L :: Target : Logger {
1211- pub ( crate ) fn from < S : WriteableEcdsaChannelSigner > ( logger : & ' a L , monitor : & ChannelMonitor < S > , payment_hash : Option < PaymentHash > ) -> Self {
1211+ pub ( crate ) fn from < S : EcdsaChannelSigner > ( logger : & ' a L , monitor : & ChannelMonitor < S > , payment_hash : Option < PaymentHash > ) -> Self {
12121212 Self :: from_impl ( logger, & * monitor. inner . lock ( ) . unwrap ( ) , payment_hash)
12131213 }
12141214
1215- pub ( crate ) fn from_impl < S : WriteableEcdsaChannelSigner > ( logger : & ' a L , monitor_impl : & ChannelMonitorImpl < S > , payment_hash : Option < PaymentHash > ) -> Self {
1215+ pub ( crate ) fn from_impl < S : EcdsaChannelSigner > ( logger : & ' a L , monitor_impl : & ChannelMonitorImpl < S > , payment_hash : Option < PaymentHash > ) -> Self {
12161216 let peer_id = monitor_impl. counterparty_node_id ;
12171217 let channel_id = Some ( monitor_impl. channel_id ( ) ) ;
12181218 WithChannelMonitor {
@@ -1221,7 +1221,7 @@ impl<'a, L: Deref> WithChannelMonitor<'a, L> where L::Target: Logger {
12211221 }
12221222}
12231223
1224- impl < Signer : WriteableEcdsaChannelSigner > ChannelMonitor < Signer > {
1224+ impl < Signer : EcdsaChannelSigner > ChannelMonitor < Signer > {
12251225 /// For lockorder enforcement purposes, we need to have a single site which constructs the
12261226 /// `inner` mutex, otherwise cases where we lock two monitors at the same time (eg in our
12271227 /// PartialEq implementation) we may decide a lockorder violation has occurred.
@@ -1929,7 +1929,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitor<Signer> {
19291929 }
19301930}
19311931
1932- impl < Signer : WriteableEcdsaChannelSigner > ChannelMonitorImpl < Signer > {
1932+ impl < Signer : EcdsaChannelSigner > ChannelMonitorImpl < Signer > {
19331933 /// Helper for get_claimable_balances which does the work for an individual HTLC, generating up
19341934 /// to one `Balance` for the HTLC.
19351935 fn get_htlc_balance ( & self , htlc : & HTLCOutputInCommitment , holder_commitment : bool ,
@@ -2108,7 +2108,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
21082108 }
21092109}
21102110
2111- impl < Signer : WriteableEcdsaChannelSigner > ChannelMonitor < Signer > {
2111+ impl < Signer : EcdsaChannelSigner > ChannelMonitor < Signer > {
21122112 /// Gets the balances in this channel which are either claimable by us if we were to
21132113 /// force-close the channel now or which are claimable on-chain (possibly awaiting
21142114 /// confirmation).
@@ -2520,7 +2520,7 @@ pub fn deliberately_bogus_accepted_htlc_witness() -> Vec<Vec<u8>> {
25202520 vec ! [ Vec :: new( ) , Vec :: new( ) , Vec :: new( ) , Vec :: new( ) , deliberately_bogus_accepted_htlc_witness_program( ) . into( ) ] . into ( )
25212521}
25222522
2523- impl < Signer : WriteableEcdsaChannelSigner > ChannelMonitorImpl < Signer > {
2523+ impl < Signer : EcdsaChannelSigner > ChannelMonitorImpl < Signer > {
25242524 /// Inserts a revocation secret into this channel monitor. Prunes old preimages if neither
25252525 /// needed by holder commitment transactions HTCLs nor by counterparty ones. Unless we haven't already seen
25262526 /// counterparty commitment transaction's secret, they are de facto pruned (we can use revocation key).
@@ -4429,7 +4429,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
44294429 }
44304430}
44314431
4432- impl < Signer : WriteableEcdsaChannelSigner , T : Deref , F : Deref , L : Deref > chain:: Listen for ( ChannelMonitor < Signer > , T , F , L )
4432+ impl < Signer : EcdsaChannelSigner , T : Deref , F : Deref , L : Deref > chain:: Listen for ( ChannelMonitor < Signer > , T , F , L )
44334433where
44344434 T :: Target : BroadcasterInterface ,
44354435 F :: Target : FeeEstimator ,
@@ -4444,7 +4444,7 @@ where
44444444 }
44454445}
44464446
4447- impl < Signer : WriteableEcdsaChannelSigner , M , T : Deref , F : Deref , L : Deref > chain:: Confirm for ( M , T , F , L )
4447+ impl < Signer : EcdsaChannelSigner , M , T : Deref , F : Deref , L : Deref > chain:: Confirm for ( M , T , F , L )
44484448where
44494449 M : Deref < Target = ChannelMonitor < Signer > > ,
44504450 T :: Target : BroadcasterInterface ,
0 commit comments