@@ -22,7 +22,7 @@ use lightning::chain::{BestBlock, Listen};
22
22
use lightning:: events:: bump_transaction:: { Utxo , WalletSource } ;
23
23
use lightning:: ln:: channelmanager:: PaymentId ;
24
24
use lightning:: ln:: inbound_payment:: ExpandedKey ;
25
- use lightning:: ln:: msgs:: { DecodeError , UnsignedGossipMessage } ;
25
+ use lightning:: ln:: msgs:: UnsignedGossipMessage ;
26
26
use lightning:: ln:: script:: ShutdownScript ;
27
27
use lightning:: sign:: {
28
28
ChangeDestinationSource , EntropySource , InMemorySigner , KeysManager , NodeSigner , OutputSpender ,
@@ -43,7 +43,7 @@ use bitcoin::key::XOnlyPublicKey;
43
43
use bitcoin:: psbt:: Psbt ;
44
44
use bitcoin:: secp256k1:: ecdh:: SharedSecret ;
45
45
use bitcoin:: secp256k1:: ecdsa:: { RecoverableSignature , Signature } ;
46
- use bitcoin:: secp256k1:: { PublicKey , Scalar , Secp256k1 , SecretKey , Signing } ;
46
+ use bitcoin:: secp256k1:: { All , PublicKey , Scalar , Secp256k1 , SecretKey } ;
47
47
use bitcoin:: {
48
48
Address , Amount , FeeRate , Network , ScriptBuf , Transaction , TxOut , Txid , WPubkeyHash ,
49
49
WitnessProgram , WitnessVersion ,
@@ -843,10 +843,10 @@ where
843
843
L :: Target : LdkLogger ,
844
844
{
845
845
/// See [`KeysManager::spend_spendable_outputs`] for documentation on this method.
846
- fn spend_spendable_outputs < C : Signing > (
846
+ fn spend_spendable_outputs (
847
847
& self , descriptors : & [ & SpendableOutputDescriptor ] , outputs : Vec < TxOut > ,
848
848
change_destination_script : ScriptBuf , feerate_sat_per_1000_weight : u32 ,
849
- locktime : Option < LockTime > , secp_ctx : & Secp256k1 < C > ,
849
+ locktime : Option < LockTime > , secp_ctx : & Secp256k1 < All > ,
850
850
) -> Result < Transaction , ( ) > {
851
851
self . inner . spend_spendable_outputs (
852
852
descriptors,
@@ -878,20 +878,12 @@ where
878
878
{
879
879
type EcdsaSigner = InMemorySigner ;
880
880
881
- fn generate_channel_keys_id (
882
- & self , inbound : bool , channel_value_satoshis : u64 , user_channel_id : u128 ,
883
- ) -> [ u8 ; 32 ] {
884
- self . inner . generate_channel_keys_id ( inbound, channel_value_satoshis, user_channel_id)
881
+ fn generate_channel_keys_id ( & self , inbound : bool , user_channel_id : u128 ) -> [ u8 ; 32 ] {
882
+ self . inner . generate_channel_keys_id ( inbound, user_channel_id)
885
883
}
886
884
887
- fn derive_channel_signer (
888
- & self , channel_value_satoshis : u64 , channel_keys_id : [ u8 ; 32 ] ,
889
- ) -> Self :: EcdsaSigner {
890
- self . inner . derive_channel_signer ( channel_value_satoshis, channel_keys_id)
891
- }
892
-
893
- fn read_chan_signer ( & self , reader : & [ u8 ] ) -> Result < Self :: EcdsaSigner , DecodeError > {
894
- self . inner . read_chan_signer ( reader)
885
+ fn derive_channel_signer ( & self , channel_keys_id : [ u8 ; 32 ] ) -> Self :: EcdsaSigner {
886
+ self . inner . derive_channel_signer ( channel_keys_id)
895
887
}
896
888
897
889
fn get_destination_script ( & self , _channel_keys_id : [ u8 ; 32 ] ) -> Result < ScriptBuf , ( ) > {
0 commit comments