@@ -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 ,
@@ -852,10 +852,10 @@ where
852
852
L :: Target : LdkLogger ,
853
853
{
854
854
/// See [`KeysManager::spend_spendable_outputs`] for documentation on this method.
855
- fn spend_spendable_outputs < C : Signing > (
855
+ fn spend_spendable_outputs (
856
856
& self , descriptors : & [ & SpendableOutputDescriptor ] , outputs : Vec < TxOut > ,
857
857
change_destination_script : ScriptBuf , feerate_sat_per_1000_weight : u32 ,
858
- locktime : Option < LockTime > , secp_ctx : & Secp256k1 < C > ,
858
+ locktime : Option < LockTime > , secp_ctx : & Secp256k1 < All > ,
859
859
) -> Result < Transaction , ( ) > {
860
860
self . inner . spend_spendable_outputs (
861
861
descriptors,
@@ -887,20 +887,12 @@ where
887
887
{
888
888
type EcdsaSigner = InMemorySigner ;
889
889
890
- fn generate_channel_keys_id (
891
- & self , inbound : bool , channel_value_satoshis : u64 , user_channel_id : u128 ,
892
- ) -> [ u8 ; 32 ] {
893
- self . inner . generate_channel_keys_id ( inbound, channel_value_satoshis, user_channel_id)
890
+ fn generate_channel_keys_id ( & self , inbound : bool , user_channel_id : u128 ) -> [ u8 ; 32 ] {
891
+ self . inner . generate_channel_keys_id ( inbound, user_channel_id)
894
892
}
895
893
896
- fn derive_channel_signer (
897
- & self , channel_value_satoshis : u64 , channel_keys_id : [ u8 ; 32 ] ,
898
- ) -> Self :: EcdsaSigner {
899
- self . inner . derive_channel_signer ( channel_value_satoshis, channel_keys_id)
900
- }
901
-
902
- fn read_chan_signer ( & self , reader : & [ u8 ] ) -> Result < Self :: EcdsaSigner , DecodeError > {
903
- self . inner . read_chan_signer ( reader)
894
+ fn derive_channel_signer ( & self , channel_keys_id : [ u8 ; 32 ] ) -> Self :: EcdsaSigner {
895
+ self . inner . derive_channel_signer ( channel_keys_id)
904
896
}
905
897
906
898
fn get_destination_script ( & self , _channel_keys_id : [ u8 ; 32 ] ) -> Result < ScriptBuf , ( ) > {
0 commit comments