@@ -43,7 +43,7 @@ use crate::chain;
43
43
use crate :: chain:: { BestBlock , WatchedOutput } ;
44
44
use crate :: chain:: chaininterface:: { BroadcasterInterface , FeeEstimator , LowerBoundedFeeEstimator } ;
45
45
use 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 } ;
47
47
use crate :: chain:: onchaintx:: { ClaimEvent , FeerateStrategy , OnchainTxHandler } ;
48
48
use crate :: chain:: package:: { CounterpartyOfferedHTLCOutput , CounterpartyReceivedHTLCOutput , HolderFundingOutput , HolderHTLCOutput , PackageSolvingData , PackageTemplate , RevokedOutput , RevokedHTLCOutput } ;
49
49
use crate :: chain:: Filter ;
@@ -774,22 +774,22 @@ impl Readable for IrrevocablyResolvedHTLC {
774
774
/// the "reorg path" (ie disconnecting blocks until you find a common ancestor from both the
775
775
/// returned block hash and the the current chain and then reconnecting blocks to get to the
776
776
/// best chain) upon deserializing the object!
777
- pub struct ChannelMonitor < Signer : WriteableEcdsaChannelSigner > {
777
+ pub struct ChannelMonitor < Signer : EcdsaChannelSigner > {
778
778
#[ cfg( test) ]
779
779
pub ( crate ) inner : Mutex < ChannelMonitorImpl < Signer > > ,
780
780
#[ cfg( not( test) ) ]
781
781
pub ( super ) inner : Mutex < ChannelMonitorImpl < Signer > > ,
782
782
}
783
783
784
- impl < Signer : WriteableEcdsaChannelSigner > Clone for ChannelMonitor < Signer > where Signer : Clone {
784
+ impl < Signer : EcdsaChannelSigner > Clone for ChannelMonitor < Signer > where Signer : Clone {
785
785
fn clone ( & self ) -> Self {
786
786
let inner = self . inner . lock ( ) . unwrap ( ) . clone ( ) ;
787
787
ChannelMonitor :: from_impl ( inner)
788
788
}
789
789
}
790
790
791
791
#[ derive( Clone , PartialEq ) ]
792
- pub ( crate ) struct ChannelMonitorImpl < Signer : WriteableEcdsaChannelSigner > {
792
+ pub ( crate ) struct ChannelMonitorImpl < Signer : EcdsaChannelSigner > {
793
793
latest_update_id : u64 ,
794
794
commitment_transaction_number_obscure_factor : u64 ,
795
795
@@ -943,7 +943,7 @@ pub(crate) struct ChannelMonitorImpl<Signer: WriteableEcdsaChannelSigner> {
943
943
/// Transaction outputs to watch for on-chain spends.
944
944
pub type TransactionOutputs = ( Txid , Vec < ( u32 , TxOut ) > ) ;
945
945
946
- impl < Signer : WriteableEcdsaChannelSigner > PartialEq for ChannelMonitor < Signer > where Signer : PartialEq {
946
+ impl < Signer : EcdsaChannelSigner > PartialEq for ChannelMonitor < Signer > where Signer : PartialEq {
947
947
fn eq ( & self , other : & Self ) -> bool {
948
948
// We need some kind of total lockorder. Absent a better idea, we sort by position in
949
949
// 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
955
955
}
956
956
}
957
957
958
- impl < Signer : WriteableEcdsaChannelSigner > Writeable for ChannelMonitor < Signer > {
958
+ impl < Signer : EcdsaChannelSigner > Writeable for ChannelMonitor < Signer > {
959
959
fn write < W : Writer > ( & self , writer : & mut W ) -> Result < ( ) , Error > {
960
960
self . inner . lock ( ) . unwrap ( ) . write ( writer)
961
961
}
@@ -965,7 +965,7 @@ impl<Signer: WriteableEcdsaChannelSigner> Writeable for ChannelMonitor<Signer> {
965
965
const SERIALIZATION_VERSION : u8 = 1 ;
966
966
const MIN_SERIALIZATION_VERSION : u8 = 1 ;
967
967
968
- impl < Signer : WriteableEcdsaChannelSigner > Writeable for ChannelMonitorImpl < Signer > {
968
+ impl < Signer : EcdsaChannelSigner > Writeable for ChannelMonitorImpl < Signer > {
969
969
fn write < W : Writer > ( & self , writer : & mut W ) -> Result < ( ) , Error > {
970
970
write_ver_prefix ! ( writer, SERIALIZATION_VERSION , MIN_SERIALIZATION_VERSION ) ;
971
971
@@ -1206,11 +1206,11 @@ impl<'a, L: Deref> Logger for WithChannelMonitor<'a, L> where L::Target: Logger
1206
1206
}
1207
1207
1208
1208
impl < ' a , L : Deref > WithChannelMonitor < ' a , L > where L :: Target : Logger {
1209
- pub ( crate ) fn from < S : WriteableEcdsaChannelSigner > ( logger : & ' a L , monitor : & ChannelMonitor < S > ) -> Self {
1209
+ pub ( crate ) fn from < S : EcdsaChannelSigner > ( logger : & ' a L , monitor : & ChannelMonitor < S > ) -> Self {
1210
1210
Self :: from_impl ( logger, & * monitor. inner . lock ( ) . unwrap ( ) )
1211
1211
}
1212
1212
1213
- pub ( crate ) fn from_impl < S : WriteableEcdsaChannelSigner > ( logger : & ' a L , monitor_impl : & ChannelMonitorImpl < S > ) -> Self {
1213
+ pub ( crate ) fn from_impl < S : EcdsaChannelSigner > ( logger : & ' a L , monitor_impl : & ChannelMonitorImpl < S > ) -> Self {
1214
1214
let peer_id = monitor_impl. counterparty_node_id ;
1215
1215
let channel_id = Some ( monitor_impl. channel_id ( ) ) ;
1216
1216
WithChannelMonitor {
@@ -1219,7 +1219,7 @@ impl<'a, L: Deref> WithChannelMonitor<'a, L> where L::Target: Logger {
1219
1219
}
1220
1220
}
1221
1221
1222
- impl < Signer : WriteableEcdsaChannelSigner > ChannelMonitor < Signer > {
1222
+ impl < Signer : EcdsaChannelSigner > ChannelMonitor < Signer > {
1223
1223
/// For lockorder enforcement purposes, we need to have a single site which constructs the
1224
1224
/// `inner` mutex, otherwise cases where we lock two monitors at the same time (eg in our
1225
1225
/// PartialEq implementation) we may decide a lockorder violation has occurred.
@@ -1927,7 +1927,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitor<Signer> {
1927
1927
}
1928
1928
}
1929
1929
1930
- impl < Signer : WriteableEcdsaChannelSigner > ChannelMonitorImpl < Signer > {
1930
+ impl < Signer : EcdsaChannelSigner > ChannelMonitorImpl < Signer > {
1931
1931
/// Helper for get_claimable_balances which does the work for an individual HTLC, generating up
1932
1932
/// to one `Balance` for the HTLC.
1933
1933
fn get_htlc_balance ( & self , htlc : & HTLCOutputInCommitment , holder_commitment : bool ,
@@ -2106,7 +2106,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
2106
2106
}
2107
2107
}
2108
2108
2109
- impl < Signer : WriteableEcdsaChannelSigner > ChannelMonitor < Signer > {
2109
+ impl < Signer : EcdsaChannelSigner > ChannelMonitor < Signer > {
2110
2110
/// Gets the balances in this channel which are either claimable by us if we were to
2111
2111
/// force-close the channel now or which are claimable on-chain (possibly awaiting
2112
2112
/// confirmation).
@@ -2518,7 +2518,7 @@ pub fn deliberately_bogus_accepted_htlc_witness() -> Vec<Vec<u8>> {
2518
2518
vec ! [ Vec :: new( ) , Vec :: new( ) , Vec :: new( ) , Vec :: new( ) , deliberately_bogus_accepted_htlc_witness_program( ) . into( ) ] . into ( )
2519
2519
}
2520
2520
2521
- impl < Signer : WriteableEcdsaChannelSigner > ChannelMonitorImpl < Signer > {
2521
+ impl < Signer : EcdsaChannelSigner > ChannelMonitorImpl < Signer > {
2522
2522
/// Inserts a revocation secret into this channel monitor. Prunes old preimages if neither
2523
2523
/// needed by holder commitment transactions HTCLs nor by counterparty ones. Unless we haven't already seen
2524
2524
/// counterparty commitment transaction's secret, they are de facto pruned (we can use revocation key).
@@ -4427,7 +4427,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
4427
4427
}
4428
4428
}
4429
4429
4430
- impl < Signer : WriteableEcdsaChannelSigner , T : Deref , F : Deref , L : Deref > chain:: Listen for ( ChannelMonitor < Signer > , T , F , L )
4430
+ impl < Signer : EcdsaChannelSigner , T : Deref , F : Deref , L : Deref > chain:: Listen for ( ChannelMonitor < Signer > , T , F , L )
4431
4431
where
4432
4432
T :: Target : BroadcasterInterface ,
4433
4433
F :: Target : FeeEstimator ,
@@ -4442,7 +4442,7 @@ where
4442
4442
}
4443
4443
}
4444
4444
4445
- impl < Signer : WriteableEcdsaChannelSigner , M , T : Deref , F : Deref , L : Deref > chain:: Confirm for ( M , T , F , L )
4445
+ impl < Signer : EcdsaChannelSigner , M , T : Deref , F : Deref , L : Deref > chain:: Confirm for ( M , T , F , L )
4446
4446
where
4447
4447
M : Deref < Target = ChannelMonitor < Signer > > ,
4448
4448
T :: Target : BroadcasterInterface ,
0 commit comments