@@ -56,7 +56,6 @@ use crate::ln::msgs::PartialSignatureWithNonce;
56
56
use crate :: ln:: msgs:: { UnsignedChannelAnnouncement , UnsignedGossipMessage } ;
57
57
use crate :: ln:: script:: ShutdownScript ;
58
58
use crate :: offers:: invoice:: UnsignedBolt12Invoice ;
59
- use crate :: offers:: invoice_request:: UnsignedInvoiceRequest ;
60
59
use crate :: types:: payment:: PaymentPreimage ;
61
60
use crate :: util:: ser:: { Readable , ReadableArgs , Writeable , Writer } ;
62
61
use crate :: util:: transaction_utils;
@@ -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
@@ -2206,15 +2190,6 @@ impl NodeSigner for KeysManager {
2206
2190
Ok ( self . secp_ctx . sign_ecdsa_recoverable ( & hash_to_message ! ( & hash) , secret) )
2207
2191
}
2208
2192
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
-
2218
2193
fn sign_bolt12_invoice (
2219
2194
& self , invoice : & UnsignedBolt12Invoice ,
2220
2195
) -> Result < schnorr:: Signature , ( ) > {
@@ -2384,12 +2359,6 @@ impl NodeSigner for PhantomKeysManager {
2384
2359
Ok ( self . inner . secp_ctx . sign_ecdsa_recoverable ( & hash_to_message ! ( & hash) , secret) )
2385
2360
}
2386
2361
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
-
2393
2362
fn sign_bolt12_invoice (
2394
2363
& self , invoice : & UnsignedBolt12Invoice ,
2395
2364
) -> Result < schnorr:: Signature , ( ) > {
0 commit comments