@@ -56,7 +56,6 @@ use crate::ln::msgs::{UnsignedChannelAnnouncement, UnsignedGossipMessage};
5656use crate :: ln:: script:: ShutdownScript ;
5757use crate :: ln:: types:: PaymentPreimage ;
5858use crate :: offers:: invoice:: UnsignedBolt12Invoice ;
59- use crate :: offers:: invoice_request:: UnsignedInvoiceRequest ;
6059use crate :: util:: ser:: { Readable , ReadableArgs , Writeable , Writer } ;
6160use crate :: util:: transaction_utils;
6261
@@ -870,21 +869,6 @@ pub trait NodeSigner {
870869 & self , hrp_bytes : & [ u8 ] , invoice_data : & [ u5 ] , recipient : Recipient ,
871870 ) -> Result < RecoverableSignature , ( ) > ;
872871
873- /// Signs the [`TaggedHash`] of a BOLT 12 invoice request.
874- ///
875- /// May be called by a function passed to [`UnsignedInvoiceRequest::sign`] where
876- /// `invoice_request` is the callee.
877- ///
878- /// Implementors may check that the `invoice_request` is expected rather than blindly signing
879- /// the tagged hash. An `Ok` result should sign `invoice_request.tagged_hash().as_digest()` with
880- /// the node's signing key or an ephemeral key to preserve privacy, whichever is associated with
881- /// [`UnsignedInvoiceRequest::payer_signing_pubkey`].
882- ///
883- /// [`TaggedHash`]: crate::offers::merkle::TaggedHash
884- fn sign_bolt12_invoice_request (
885- & self , invoice_request : & UnsignedInvoiceRequest ,
886- ) -> Result < schnorr:: Signature , ( ) > ;
887-
888872 /// Signs the [`TaggedHash`] of a BOLT 12 invoice.
889873 ///
890874 /// May be called by a function passed to [`UnsignedBolt12Invoice::sign`] where `invoice` is the
@@ -2187,15 +2171,6 @@ impl NodeSigner for KeysManager {
21872171 ) )
21882172 }
21892173
2190- fn sign_bolt12_invoice_request (
2191- & self , invoice_request : & UnsignedInvoiceRequest ,
2192- ) -> Result < schnorr:: Signature , ( ) > {
2193- let message = invoice_request. tagged_hash ( ) . as_digest ( ) ;
2194- let keys = Keypair :: from_secret_key ( & self . secp_ctx , & self . node_secret ) ;
2195- let aux_rand = self . get_secure_random_bytes ( ) ;
2196- Ok ( self . secp_ctx . sign_schnorr_with_aux_rand ( message, & keys, & aux_rand) )
2197- }
2198-
21992174 fn sign_bolt12_invoice (
22002175 & self , invoice : & UnsignedBolt12Invoice ,
22012176 ) -> Result < schnorr:: Signature , ( ) > {
@@ -2365,12 +2340,6 @@ impl NodeSigner for PhantomKeysManager {
23652340 ) )
23662341 }
23672342
2368- fn sign_bolt12_invoice_request (
2369- & self , invoice_request : & UnsignedInvoiceRequest ,
2370- ) -> Result < schnorr:: Signature , ( ) > {
2371- self . inner . sign_bolt12_invoice_request ( invoice_request)
2372- }
2373-
23742343 fn sign_bolt12_invoice (
23752344 & self , invoice : & UnsignedBolt12Invoice ,
23762345 ) -> Result < schnorr:: Signature , ( ) > {
0 commit comments