@@ -56,7 +56,6 @@ use crate::ln::msgs::PartialSignatureWithNonce;
5656use crate :: ln:: msgs:: { UnsignedChannelAnnouncement , UnsignedGossipMessage } ;
5757use crate :: ln:: script:: ShutdownScript ;
5858use crate :: offers:: invoice:: UnsignedBolt12Invoice ;
59- use crate :: offers:: invoice_request:: UnsignedInvoiceRequest ;
6059use crate :: types:: payment:: PaymentPreimage ;
6160use crate :: util:: ser:: { Readable , ReadableArgs , Writeable , Writer } ;
6261use crate :: util:: transaction_utils;
@@ -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
@@ -2206,15 +2190,6 @@ impl NodeSigner for KeysManager {
22062190 Ok ( self . secp_ctx . sign_ecdsa_recoverable ( & hash_to_message ! ( & hash) , secret) )
22072191 }
22082192
2209- fn sign_bolt12_invoice_request (
2210- & self , invoice_request : & UnsignedInvoiceRequest ,
2211- ) -> Result < schnorr:: Signature , ( ) > {
2212- let message = invoice_request. tagged_hash ( ) . as_digest ( ) ;
2213- let keys = Keypair :: from_secret_key ( & self . secp_ctx , & self . node_secret ) ;
2214- let aux_rand = self . get_secure_random_bytes ( ) ;
2215- Ok ( self . secp_ctx . sign_schnorr_with_aux_rand ( message, & keys, & aux_rand) )
2216- }
2217-
22182193 fn sign_bolt12_invoice (
22192194 & self , invoice : & UnsignedBolt12Invoice ,
22202195 ) -> Result < schnorr:: Signature , ( ) > {
@@ -2384,12 +2359,6 @@ impl NodeSigner for PhantomKeysManager {
23842359 Ok ( self . inner . secp_ctx . sign_ecdsa_recoverable ( & hash_to_message ! ( & hash) , secret) )
23852360 }
23862361
2387- fn sign_bolt12_invoice_request (
2388- & self , invoice_request : & UnsignedInvoiceRequest ,
2389- ) -> Result < schnorr:: Signature , ( ) > {
2390- self . inner . sign_bolt12_invoice_request ( invoice_request)
2391- }
2392-
23932362 fn sign_bolt12_invoice (
23942363 & self , invoice : & UnsignedBolt12Invoice ,
23952364 ) -> Result < schnorr:: Signature , ( ) > {
0 commit comments