@@ -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
@@ -1208,11 +1208,11 @@ impl<'a, L: Deref> Logger for WithChannelMonitor<'a, L> where L::Target: Logger
1208
1208
}
1209
1209
1210
1210
impl < ' 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 {
1212
1212
Self :: from_impl ( logger, & * monitor. inner . lock ( ) . unwrap ( ) , payment_hash)
1213
1213
}
1214
1214
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 {
1216
1216
let peer_id = monitor_impl. counterparty_node_id ;
1217
1217
let channel_id = Some ( monitor_impl. channel_id ( ) ) ;
1218
1218
WithChannelMonitor {
@@ -1221,7 +1221,7 @@ impl<'a, L: Deref> WithChannelMonitor<'a, L> where L::Target: Logger {
1221
1221
}
1222
1222
}
1223
1223
1224
- impl < Signer : WriteableEcdsaChannelSigner > ChannelMonitor < Signer > {
1224
+ impl < Signer : EcdsaChannelSigner > ChannelMonitor < Signer > {
1225
1225
/// For lockorder enforcement purposes, we need to have a single site which constructs the
1226
1226
/// `inner` mutex, otherwise cases where we lock two monitors at the same time (eg in our
1227
1227
/// PartialEq implementation) we may decide a lockorder violation has occurred.
@@ -1929,7 +1929,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitor<Signer> {
1929
1929
}
1930
1930
}
1931
1931
1932
- impl < Signer : WriteableEcdsaChannelSigner > ChannelMonitorImpl < Signer > {
1932
+ impl < Signer : EcdsaChannelSigner > ChannelMonitorImpl < Signer > {
1933
1933
/// Helper for get_claimable_balances which does the work for an individual HTLC, generating up
1934
1934
/// to one `Balance` for the HTLC.
1935
1935
fn get_htlc_balance ( & self , htlc : & HTLCOutputInCommitment , holder_commitment : bool ,
@@ -2108,7 +2108,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
2108
2108
}
2109
2109
}
2110
2110
2111
- impl < Signer : WriteableEcdsaChannelSigner > ChannelMonitor < Signer > {
2111
+ impl < Signer : EcdsaChannelSigner > ChannelMonitor < Signer > {
2112
2112
/// Gets the balances in this channel which are either claimable by us if we were to
2113
2113
/// force-close the channel now or which are claimable on-chain (possibly awaiting
2114
2114
/// confirmation).
@@ -2520,7 +2520,7 @@ pub fn deliberately_bogus_accepted_htlc_witness() -> Vec<Vec<u8>> {
2520
2520
vec ! [ Vec :: new( ) , Vec :: new( ) , Vec :: new( ) , Vec :: new( ) , deliberately_bogus_accepted_htlc_witness_program( ) . into( ) ] . into ( )
2521
2521
}
2522
2522
2523
- impl < Signer : WriteableEcdsaChannelSigner > ChannelMonitorImpl < Signer > {
2523
+ impl < Signer : EcdsaChannelSigner > ChannelMonitorImpl < Signer > {
2524
2524
/// Inserts a revocation secret into this channel monitor. Prunes old preimages if neither
2525
2525
/// needed by holder commitment transactions HTCLs nor by counterparty ones. Unless we haven't already seen
2526
2526
/// counterparty commitment transaction's secret, they are de facto pruned (we can use revocation key).
@@ -4429,7 +4429,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
4429
4429
}
4430
4430
}
4431
4431
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 )
4433
4433
where
4434
4434
T :: Target : BroadcasterInterface ,
4435
4435
F :: Target : FeeEstimator ,
@@ -4444,7 +4444,7 @@ where
4444
4444
}
4445
4445
}
4446
4446
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 )
4448
4448
where
4449
4449
M : Deref < Target = ChannelMonitor < Signer > > ,
4450
4450
T :: Target : BroadcasterInterface ,
0 commit comments