@@ -565,13 +565,13 @@ fn creates_and_pays_for_offer_using_two_hop_blinded_path() {
565565 let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
566566 offer_id : offer. id ( ) ,
567567 invoice_request : InvoiceRequestFields {
568- payer_id : invoice_request. payer_id ( ) ,
568+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
569569 quantity : None ,
570570 payer_note_truncated : None ,
571571 } ,
572572 } ) ;
573573 assert_eq ! ( invoice_request. amount_msats( ) , None ) ;
574- assert_ne ! ( invoice_request. payer_id ( ) , david_id) ;
574+ assert_ne ! ( invoice_request. payer_signing_pubkey ( ) , david_id) ;
575575 assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( charlie_id) ) ;
576576
577577 let onion_message = alice. onion_messenger . next_onion_message_for_peer ( charlie_id) . unwrap ( ) ;
@@ -714,13 +714,13 @@ fn creates_and_pays_for_offer_using_one_hop_blinded_path() {
714714 let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
715715 offer_id : offer. id ( ) ,
716716 invoice_request : InvoiceRequestFields {
717- payer_id : invoice_request. payer_id ( ) ,
717+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
718718 quantity : None ,
719719 payer_note_truncated : None ,
720720 } ,
721721 } ) ;
722722 assert_eq ! ( invoice_request. amount_msats( ) , None ) ;
723- assert_ne ! ( invoice_request. payer_id ( ) , bob_id) ;
723+ assert_ne ! ( invoice_request. payer_signing_pubkey ( ) , bob_id) ;
724724 assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( bob_id) ) ;
725725
726726 let onion_message = alice. onion_messenger . next_onion_message_for_peer ( bob_id) . unwrap ( ) ;
@@ -832,7 +832,7 @@ fn pays_for_offer_without_blinded_paths() {
832832 let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
833833 offer_id : offer. id ( ) ,
834834 invoice_request : InvoiceRequestFields {
835- payer_id : invoice_request. payer_id ( ) ,
835+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
836836 quantity : None ,
837837 payer_note_truncated : None ,
838838 } ,
@@ -1090,7 +1090,7 @@ fn pays_bolt12_invoice_asynchronously() {
10901090 let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
10911091 offer_id : offer. id ( ) ,
10921092 invoice_request : InvoiceRequestFields {
1093- payer_id : invoice_request. payer_id ( ) ,
1093+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
10941094 quantity : None ,
10951095 payer_note_truncated : None ,
10961096 } ,
@@ -1179,12 +1179,12 @@ fn creates_offer_with_blinded_path_using_unannounced_introduction_node() {
11791179 let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
11801180 offer_id : offer. id ( ) ,
11811181 invoice_request : InvoiceRequestFields {
1182- payer_id : invoice_request. payer_id ( ) ,
1182+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
11831183 quantity : None ,
11841184 payer_note_truncated : None ,
11851185 } ,
11861186 } ) ;
1187- assert_ne ! ( invoice_request. payer_id ( ) , bob_id) ;
1187+ assert_ne ! ( invoice_request. payer_signing_pubkey ( ) , bob_id) ;
11881188 assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( alice_id) ) ;
11891189
11901190 let onion_message = alice. onion_messenger . next_onion_message_for_peer ( bob_id) . unwrap ( ) ;
@@ -1324,7 +1324,7 @@ fn fails_authentication_when_handling_invoice_request() {
13241324
13251325 let ( invoice_request, reply_path) = extract_invoice_request ( alice, & onion_message) ;
13261326 assert_eq ! ( invoice_request. amount_msats( ) , None ) ;
1327- assert_ne ! ( invoice_request. payer_id ( ) , david_id) ;
1327+ assert_ne ! ( invoice_request. payer_signing_pubkey ( ) , david_id) ;
13281328 assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( charlie_id) ) ;
13291329
13301330 assert_eq ! ( alice. onion_messenger. next_onion_message_for_peer( charlie_id) , None ) ;
@@ -1354,7 +1354,7 @@ fn fails_authentication_when_handling_invoice_request() {
13541354
13551355 let ( invoice_request, reply_path) = extract_invoice_request ( alice, & onion_message) ;
13561356 assert_eq ! ( invoice_request. amount_msats( ) , None ) ;
1357- assert_ne ! ( invoice_request. payer_id ( ) , david_id) ;
1357+ assert_ne ! ( invoice_request. payer_signing_pubkey ( ) , david_id) ;
13581358 assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( charlie_id) ) ;
13591359
13601360 assert_eq ! ( alice. onion_messenger. next_onion_message_for_peer( charlie_id) , None ) ;
@@ -1456,7 +1456,7 @@ fn fails_authentication_when_handling_invoice_for_offer() {
14561456
14571457 let ( invoice_request, reply_path) = extract_invoice_request ( alice, & onion_message) ;
14581458 assert_eq ! ( invoice_request. amount_msats( ) , None ) ;
1459- assert_ne ! ( invoice_request. payer_id ( ) , david_id) ;
1459+ assert_ne ! ( invoice_request. payer_signing_pubkey ( ) , david_id) ;
14601460 assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( charlie_id) ) ;
14611461
14621462 let onion_message = alice. onion_messenger . next_onion_message_for_peer ( charlie_id) . unwrap ( ) ;
0 commit comments