@@ -566,13 +566,13 @@ fn creates_and_pays_for_offer_using_two_hop_blinded_path() {
566566 let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
567567 offer_id : offer. id ( ) ,
568568 invoice_request : InvoiceRequestFields {
569- payer_id : invoice_request. payer_id ( ) ,
569+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
570570 quantity : None ,
571571 payer_note_truncated : None ,
572572 } ,
573573 } ) ;
574574 assert_eq ! ( invoice_request. amount_msats( ) , None ) ;
575- assert_ne ! ( invoice_request. payer_id ( ) , david_id) ;
575+ assert_ne ! ( invoice_request. payer_signing_pubkey ( ) , david_id) ;
576576 assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( charlie_id) ) ;
577577
578578 let onion_message = alice. onion_messenger . next_onion_message_for_peer ( charlie_id) . unwrap ( ) ;
@@ -726,13 +726,13 @@ fn creates_and_pays_for_offer_using_one_hop_blinded_path() {
726726 let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
727727 offer_id : offer. id ( ) ,
728728 invoice_request : InvoiceRequestFields {
729- payer_id : invoice_request. payer_id ( ) ,
729+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
730730 quantity : None ,
731731 payer_note_truncated : None ,
732732 } ,
733733 } ) ;
734734 assert_eq ! ( invoice_request. amount_msats( ) , None ) ;
735- assert_ne ! ( invoice_request. payer_id ( ) , bob_id) ;
735+ assert_ne ! ( invoice_request. payer_signing_pubkey ( ) , bob_id) ;
736736 assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( bob_id) ) ;
737737
738738 let onion_message = alice. onion_messenger . next_onion_message_for_peer ( bob_id) . unwrap ( ) ;
@@ -846,7 +846,7 @@ fn pays_for_offer_without_blinded_paths() {
846846 let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
847847 offer_id : offer. id ( ) ,
848848 invoice_request : InvoiceRequestFields {
849- payer_id : invoice_request. payer_id ( ) ,
849+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
850850 quantity : None ,
851851 payer_note_truncated : None ,
852852 } ,
@@ -1112,13 +1112,13 @@ fn creates_and_pays_for_offer_with_retry() {
11121112 let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
11131113 offer_id : offer. id ( ) ,
11141114 invoice_request : InvoiceRequestFields {
1115- payer_id : invoice_request. payer_id ( ) ,
1115+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
11161116 quantity : None ,
11171117 payer_note_truncated : None ,
11181118 } ,
11191119 } ) ;
11201120 assert_eq ! ( invoice_request. amount_msats( ) , None ) ;
1121- assert_ne ! ( invoice_request. payer_id ( ) , bob_id) ;
1121+ assert_ne ! ( invoice_request. payer_signing_pubkey ( ) , bob_id) ;
11221122 assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( bob_id) ) ;
11231123 let onion_message = alice. onion_messenger . next_onion_message_for_peer ( bob_id) . unwrap ( ) ;
11241124 bob. onion_messenger . handle_onion_message ( alice_id, & onion_message) ;
@@ -1176,7 +1176,7 @@ fn pays_bolt12_invoice_asynchronously() {
11761176 let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
11771177 offer_id : offer. id ( ) ,
11781178 invoice_request : InvoiceRequestFields {
1179- payer_id : invoice_request. payer_id ( ) ,
1179+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
11801180 quantity : None ,
11811181 payer_note_truncated : None ,
11821182 } ,
@@ -1265,12 +1265,12 @@ fn creates_offer_with_blinded_path_using_unannounced_introduction_node() {
12651265 let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
12661266 offer_id : offer. id ( ) ,
12671267 invoice_request : InvoiceRequestFields {
1268- payer_id : invoice_request. payer_id ( ) ,
1268+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
12691269 quantity : None ,
12701270 payer_note_truncated : None ,
12711271 } ,
12721272 } ) ;
1273- assert_ne ! ( invoice_request. payer_id ( ) , bob_id) ;
1273+ assert_ne ! ( invoice_request. payer_signing_pubkey ( ) , bob_id) ;
12741274 assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( alice_id) ) ;
12751275
12761276 let onion_message = alice. onion_messenger . next_onion_message_for_peer ( bob_id) . unwrap ( ) ;
@@ -1411,7 +1411,7 @@ fn fails_authentication_when_handling_invoice_request() {
14111411
14121412 let ( invoice_request, reply_path) = extract_invoice_request ( alice, & onion_message) ;
14131413 assert_eq ! ( invoice_request. amount_msats( ) , None ) ;
1414- assert_ne ! ( invoice_request. payer_id ( ) , david_id) ;
1414+ assert_ne ! ( invoice_request. payer_signing_pubkey ( ) , david_id) ;
14151415 assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( charlie_id) ) ;
14161416
14171417 assert_eq ! ( alice. onion_messenger. next_onion_message_for_peer( charlie_id) , None ) ;
@@ -1441,7 +1441,7 @@ fn fails_authentication_when_handling_invoice_request() {
14411441
14421442 let ( invoice_request, reply_path) = extract_invoice_request ( alice, & onion_message) ;
14431443 assert_eq ! ( invoice_request. amount_msats( ) , None ) ;
1444- assert_ne ! ( invoice_request. payer_id ( ) , david_id) ;
1444+ assert_ne ! ( invoice_request. payer_signing_pubkey ( ) , david_id) ;
14451445 assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( charlie_id) ) ;
14461446
14471447 assert_eq ! ( alice. onion_messenger. next_onion_message_for_peer( charlie_id) , None ) ;
@@ -1543,7 +1543,7 @@ fn fails_authentication_when_handling_invoice_for_offer() {
15431543
15441544 let ( invoice_request, reply_path) = extract_invoice_request ( alice, & onion_message) ;
15451545 assert_eq ! ( invoice_request. amount_msats( ) , None ) ;
1546- assert_ne ! ( invoice_request. payer_id ( ) , david_id) ;
1546+ assert_ne ! ( invoice_request. payer_signing_pubkey ( ) , david_id) ;
15471547 assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( charlie_id) ) ;
15481548
15491549 let onion_message = alice. onion_messenger . next_onion_message_for_peer ( charlie_id) . unwrap ( ) ;
0 commit comments