@@ -23,7 +23,7 @@ use lightning::chain::{BestBlock, Listen};
23
23
use lightning:: events:: bump_transaction:: { Utxo , WalletSource } ;
24
24
use lightning:: ln:: channelmanager:: PaymentId ;
25
25
use lightning:: ln:: inbound_payment:: ExpandedKey ;
26
- use lightning:: ln:: msgs:: { DecodeError , UnsignedGossipMessage } ;
26
+ use lightning:: ln:: msgs:: UnsignedGossipMessage ;
27
27
use lightning:: ln:: script:: ShutdownScript ;
28
28
use lightning:: sign:: {
29
29
ChangeDestinationSource , EntropySource , InMemorySigner , KeysManager , NodeSigner , OutputSpender ,
@@ -44,7 +44,7 @@ use bitcoin::key::XOnlyPublicKey;
44
44
use bitcoin:: psbt:: Psbt ;
45
45
use bitcoin:: secp256k1:: ecdh:: SharedSecret ;
46
46
use bitcoin:: secp256k1:: ecdsa:: { RecoverableSignature , Signature } ;
47
- use bitcoin:: secp256k1:: { PublicKey , Scalar , Secp256k1 , SecretKey , Signing } ;
47
+ use bitcoin:: secp256k1:: { All , PublicKey , Scalar , Secp256k1 , SecretKey } ;
48
48
use bitcoin:: {
49
49
Address , Amount , FeeRate , Network , ScriptBuf , Transaction , TxOut , Txid , WPubkeyHash ,
50
50
WitnessProgram , WitnessVersion ,
@@ -863,10 +863,10 @@ where
863
863
L :: Target : LdkLogger ,
864
864
{
865
865
/// See [`KeysManager::spend_spendable_outputs`] for documentation on this method.
866
- fn spend_spendable_outputs < C : Signing > (
866
+ fn spend_spendable_outputs (
867
867
& self , descriptors : & [ & SpendableOutputDescriptor ] , outputs : Vec < TxOut > ,
868
868
change_destination_script : ScriptBuf , feerate_sat_per_1000_weight : u32 ,
869
- locktime : Option < LockTime > , secp_ctx : & Secp256k1 < C > ,
869
+ locktime : Option < LockTime > , secp_ctx : & Secp256k1 < All > ,
870
870
) -> Result < Transaction , ( ) > {
871
871
self . inner . spend_spendable_outputs (
872
872
descriptors,
@@ -898,20 +898,12 @@ where
898
898
{
899
899
type EcdsaSigner = InMemorySigner ;
900
900
901
- fn generate_channel_keys_id (
902
- & self , inbound : bool , channel_value_satoshis : u64 , user_channel_id : u128 ,
903
- ) -> [ u8 ; 32 ] {
904
- self . inner . generate_channel_keys_id ( inbound, channel_value_satoshis, user_channel_id)
901
+ fn generate_channel_keys_id ( & self , inbound : bool , user_channel_id : u128 ) -> [ u8 ; 32 ] {
902
+ self . inner . generate_channel_keys_id ( inbound, user_channel_id)
905
903
}
906
904
907
- fn derive_channel_signer (
908
- & self , channel_value_satoshis : u64 , channel_keys_id : [ u8 ; 32 ] ,
909
- ) -> Self :: EcdsaSigner {
910
- self . inner . derive_channel_signer ( channel_value_satoshis, channel_keys_id)
911
- }
912
-
913
- fn read_chan_signer ( & self , reader : & [ u8 ] ) -> Result < Self :: EcdsaSigner , DecodeError > {
914
- self . inner . read_chan_signer ( reader)
905
+ fn derive_channel_signer ( & self , channel_keys_id : [ u8 ; 32 ] ) -> Self :: EcdsaSigner {
906
+ self . inner . derive_channel_signer ( channel_keys_id)
915
907
}
916
908
917
909
fn get_destination_script ( & self , _channel_keys_id : [ u8 ; 32 ] ) -> Result < ScriptBuf , ( ) > {
0 commit comments