@@ -57,7 +57,6 @@ use crate::ln::msgs::{UnsignedChannelAnnouncement, UnsignedGossipMessage};
5757use crate :: ln:: script:: ShutdownScript ;
5858use crate :: ln:: types:: PaymentPreimage ;
5959use crate :: offers:: invoice:: UnsignedBolt12Invoice ;
60- use crate :: offers:: invoice_request:: UnsignedInvoiceRequest ;
6160use crate :: util:: ser:: { Readable , ReadableArgs , Writeable , Writer } ;
6261use crate :: util:: transaction_utils;
6362
@@ -870,21 +869,6 @@ pub trait NodeSigner {
870869 & self , invoice : & RawBolt11Invoice , 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
@@ -2183,15 +2167,6 @@ impl NodeSigner for KeysManager {
21832167 Ok ( self . secp_ctx . sign_ecdsa_recoverable ( & hash_to_message ! ( & hash) , secret) )
21842168 }
21852169
2186- fn sign_bolt12_invoice_request (
2187- & self , invoice_request : & UnsignedInvoiceRequest ,
2188- ) -> Result < schnorr:: Signature , ( ) > {
2189- let message = invoice_request. tagged_hash ( ) . as_digest ( ) ;
2190- let keys = Keypair :: from_secret_key ( & self . secp_ctx , & self . node_secret ) ;
2191- let aux_rand = self . get_secure_random_bytes ( ) ;
2192- Ok ( self . secp_ctx . sign_schnorr_with_aux_rand ( message, & keys, & aux_rand) )
2193- }
2194-
21952170 fn sign_bolt12_invoice (
21962171 & self , invoice : & UnsignedBolt12Invoice ,
21972172 ) -> Result < schnorr:: Signature , ( ) > {
@@ -2358,12 +2333,6 @@ impl NodeSigner for PhantomKeysManager {
23582333 Ok ( self . inner . secp_ctx . sign_ecdsa_recoverable ( & hash_to_message ! ( & hash) , secret) )
23592334 }
23602335
2361- fn sign_bolt12_invoice_request (
2362- & self , invoice_request : & UnsignedInvoiceRequest ,
2363- ) -> Result < schnorr:: Signature , ( ) > {
2364- self . inner . sign_bolt12_invoice_request ( invoice_request)
2365- }
2366-
23672336 fn sign_bolt12_invoice (
23682337 & self , invoice : & UnsignedBolt12Invoice ,
23692338 ) -> Result < schnorr:: Signature , ( ) > {
0 commit comments