@@ -11,10 +11,10 @@ use crate::ln::chan_utils::{
1111 ChannelPublicKeys , ChannelTransactionParameters , ClosingTransaction , CommitmentTransaction ,
1212 HTLCOutputInCommitment , HolderCommitmentTransaction ,
1313} ;
14- use crate :: ln :: features:: ChannelTypeFeatures ;
14+ use lightning_types :: features:: ChannelTypeFeatures ;
1515use crate :: ln:: msgs:: { DecodeError , UnsignedChannelAnnouncement , UnsignedGossipMessage } ;
1616use crate :: ln:: script:: ShutdownScript ;
17- use crate :: ln :: PaymentPreimage ;
17+ use lightning_types :: payment :: PaymentPreimage ;
1818use crate :: sign:: ecdsa:: EcdsaChannelSigner ;
1919#[ cfg( taproot) ]
2020use crate :: sign:: taproot:: TaprootChannelSigner ;
@@ -34,6 +34,7 @@ use lightning_invoice::RawBolt11Invoice;
3434use musig2:: types:: { PartialSignature , PublicNonce } ;
3535use secp256k1:: ecdsa:: RecoverableSignature ;
3636use secp256k1:: { ecdh:: SharedSecret , ecdsa:: Signature , PublicKey , Scalar , Secp256k1 , SecretKey } ;
37+ use crate :: offers:: invoice:: UnsignedBolt12Invoice ;
3738
3839#[ cfg( not( taproot) ) ]
3940/// A super-trait for all the traits that a dyn signer backing implements
@@ -247,6 +248,10 @@ impl EcdsaChannelSigner for DynSigner {
247248 secp_ctx,
248249 )
249250 }
251+
252+ fn sign_splicing_funding_input ( & self , tx : & Transaction , input_index : usize , input_value : u64 , secp_ctx : & Secp256k1 < All > ) -> Result < Signature , ( ) > {
253+ self . inner . sign_splicing_funding_input ( tx, input_index, input_value, secp_ctx)
254+ }
250255}
251256
252257impl ChannelSignerExt for DynSigner {
@@ -322,15 +327,8 @@ impl NodeSigner for DynKeysInterface {
322327
323328 fn sign_invoice( & self , invoice: & RawBolt11Invoice , recipient: Recipient ) -> Result <RecoverableSignature , ( ) >;
324329
325- fn sign_bolt12_invoice(
326- & self , invoice: & crate :: offers:: invoice:: UnsignedBolt12Invoice
327- ) -> Result <bitcoin:: secp256k1:: schnorr:: Signature , ( ) >;
328-
329- fn sign_bolt12_invoice_request(
330- & self , invoice_request: & crate :: offers:: invoice_request:: UnsignedInvoiceRequest
331- ) -> Result <bitcoin:: secp256k1:: schnorr:: Signature , ( ) >;
332-
333330 fn get_inbound_payment_key_material( & self ) -> KeyMaterial ;
331+ fn sign_bolt12_invoice( & self , invoice: & UnsignedBolt12Invoice ) -> Result <secp256k1:: schnorr:: Signature , ( ) >;
334332 }
335333 }
336334}
@@ -423,10 +421,6 @@ impl NodeSigner for DynPhantomKeysInterface {
423421 & self , invoice: & crate :: offers:: invoice:: UnsignedBolt12Invoice
424422 ) -> Result <bitcoin:: secp256k1:: schnorr:: Signature , ( ) >;
425423
426- fn sign_bolt12_invoice_request(
427- & self , invoice_request: & crate :: offers:: invoice_request:: UnsignedInvoiceRequest
428- ) -> Result <bitcoin:: secp256k1:: schnorr:: Signature , ( ) >;
429-
430424 fn get_inbound_payment_key_material( & self ) -> KeyMaterial ;
431425 }
432426 }
0 commit comments