@@ -57,7 +57,6 @@ use crate::ln::msgs::{UnsignedChannelAnnouncement, UnsignedGossipMessage};
57
57
use crate :: ln:: script:: ShutdownScript ;
58
58
use crate :: ln:: types:: PaymentPreimage ;
59
59
use crate :: offers:: invoice:: UnsignedBolt12Invoice ;
60
- use crate :: offers:: invoice_request:: UnsignedInvoiceRequest ;
61
60
use crate :: util:: ser:: { Readable , ReadableArgs , Writeable , Writer } ;
62
61
use crate :: util:: transaction_utils;
63
62
@@ -870,21 +869,6 @@ pub trait NodeSigner {
870
869
& self , invoice : & RawBolt11Invoice , recipient : Recipient ,
871
870
) -> Result < RecoverableSignature , ( ) > ;
872
871
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
-
888
872
/// Signs the [`TaggedHash`] of a BOLT 12 invoice.
889
873
///
890
874
/// May be called by a function passed to [`UnsignedBolt12Invoice::sign`] where `invoice` is the
@@ -2183,15 +2167,6 @@ impl NodeSigner for KeysManager {
2183
2167
Ok ( self . secp_ctx . sign_ecdsa_recoverable ( & hash_to_message ! ( & hash) , secret) )
2184
2168
}
2185
2169
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
-
2195
2170
fn sign_bolt12_invoice (
2196
2171
& self , invoice : & UnsignedBolt12Invoice ,
2197
2172
) -> Result < schnorr:: Signature , ( ) > {
@@ -2358,12 +2333,6 @@ impl NodeSigner for PhantomKeysManager {
2358
2333
Ok ( self . inner . secp_ctx . sign_ecdsa_recoverable ( & hash_to_message ! ( & hash) , secret) )
2359
2334
}
2360
2335
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
-
2367
2336
fn sign_bolt12_invoice (
2368
2337
& self , invoice : & UnsignedBolt12Invoice ,
2369
2338
) -> Result < schnorr:: Signature , ( ) > {
0 commit comments