@@ -565,13 +565,13 @@ fn creates_and_pays_for_offer_using_two_hop_blinded_path() {
565
565
let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
566
566
offer_id : offer. id ( ) ,
567
567
invoice_request : InvoiceRequestFields {
568
- payer_id : invoice_request. payer_id ( ) ,
568
+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
569
569
quantity : None ,
570
570
payer_note_truncated : None ,
571
571
} ,
572
572
} ) ;
573
573
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) ;
575
575
assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( charlie_id) ) ;
576
576
577
577
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() {
714
714
let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
715
715
offer_id : offer. id ( ) ,
716
716
invoice_request : InvoiceRequestFields {
717
- payer_id : invoice_request. payer_id ( ) ,
717
+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
718
718
quantity : None ,
719
719
payer_note_truncated : None ,
720
720
} ,
721
721
} ) ;
722
722
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) ;
724
724
assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( bob_id) ) ;
725
725
726
726
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() {
832
832
let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
833
833
offer_id : offer. id ( ) ,
834
834
invoice_request : InvoiceRequestFields {
835
- payer_id : invoice_request. payer_id ( ) ,
835
+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
836
836
quantity : None ,
837
837
payer_note_truncated : None ,
838
838
} ,
@@ -1090,7 +1090,7 @@ fn pays_bolt12_invoice_asynchronously() {
1090
1090
let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
1091
1091
offer_id : offer. id ( ) ,
1092
1092
invoice_request : InvoiceRequestFields {
1093
- payer_id : invoice_request. payer_id ( ) ,
1093
+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
1094
1094
quantity : None ,
1095
1095
payer_note_truncated : None ,
1096
1096
} ,
@@ -1179,12 +1179,12 @@ fn creates_offer_with_blinded_path_using_unannounced_introduction_node() {
1179
1179
let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
1180
1180
offer_id : offer. id ( ) ,
1181
1181
invoice_request : InvoiceRequestFields {
1182
- payer_id : invoice_request. payer_id ( ) ,
1182
+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
1183
1183
quantity : None ,
1184
1184
payer_note_truncated : None ,
1185
1185
} ,
1186
1186
} ) ;
1187
- assert_ne ! ( invoice_request. payer_id ( ) , bob_id) ;
1187
+ assert_ne ! ( invoice_request. payer_signing_pubkey ( ) , bob_id) ;
1188
1188
assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( alice_id) ) ;
1189
1189
1190
1190
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() {
1324
1324
1325
1325
let ( invoice_request, reply_path) = extract_invoice_request ( alice, & onion_message) ;
1326
1326
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) ;
1328
1328
assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( charlie_id) ) ;
1329
1329
1330
1330
assert_eq ! ( alice. onion_messenger. next_onion_message_for_peer( charlie_id) , None ) ;
@@ -1354,7 +1354,7 @@ fn fails_authentication_when_handling_invoice_request() {
1354
1354
1355
1355
let ( invoice_request, reply_path) = extract_invoice_request ( alice, & onion_message) ;
1356
1356
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) ;
1358
1358
assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( charlie_id) ) ;
1359
1359
1360
1360
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() {
1456
1456
1457
1457
let ( invoice_request, reply_path) = extract_invoice_request ( alice, & onion_message) ;
1458
1458
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) ;
1460
1460
assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( charlie_id) ) ;
1461
1461
1462
1462
let onion_message = alice. onion_messenger . next_onion_message_for_peer ( charlie_id) . unwrap ( ) ;
0 commit comments