@@ -566,13 +566,13 @@ fn creates_and_pays_for_offer_using_two_hop_blinded_path() {
566
566
let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
567
567
offer_id : offer. id ( ) ,
568
568
invoice_request : InvoiceRequestFields {
569
- payer_id : invoice_request. payer_id ( ) ,
569
+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
570
570
quantity : None ,
571
571
payer_note_truncated : None ,
572
572
} ,
573
573
} ) ;
574
574
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) ;
576
576
assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( charlie_id) ) ;
577
577
578
578
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() {
726
726
let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
727
727
offer_id : offer. id ( ) ,
728
728
invoice_request : InvoiceRequestFields {
729
- payer_id : invoice_request. payer_id ( ) ,
729
+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
730
730
quantity : None ,
731
731
payer_note_truncated : None ,
732
732
} ,
733
733
} ) ;
734
734
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) ;
736
736
assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( bob_id) ) ;
737
737
738
738
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() {
846
846
let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
847
847
offer_id : offer. id ( ) ,
848
848
invoice_request : InvoiceRequestFields {
849
- payer_id : invoice_request. payer_id ( ) ,
849
+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
850
850
quantity : None ,
851
851
payer_note_truncated : None ,
852
852
} ,
@@ -1112,13 +1112,13 @@ fn creates_and_pays_for_offer_with_retry() {
1112
1112
let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
1113
1113
offer_id : offer. id ( ) ,
1114
1114
invoice_request : InvoiceRequestFields {
1115
- payer_id : invoice_request. payer_id ( ) ,
1115
+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
1116
1116
quantity : None ,
1117
1117
payer_note_truncated : None ,
1118
1118
} ,
1119
1119
} ) ;
1120
1120
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) ;
1122
1122
assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( bob_id) ) ;
1123
1123
let onion_message = alice. onion_messenger . next_onion_message_for_peer ( bob_id) . unwrap ( ) ;
1124
1124
bob. onion_messenger . handle_onion_message ( alice_id, & onion_message) ;
@@ -1176,7 +1176,7 @@ fn pays_bolt12_invoice_asynchronously() {
1176
1176
let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
1177
1177
offer_id : offer. id ( ) ,
1178
1178
invoice_request : InvoiceRequestFields {
1179
- payer_id : invoice_request. payer_id ( ) ,
1179
+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
1180
1180
quantity : None ,
1181
1181
payer_note_truncated : None ,
1182
1182
} ,
@@ -1265,12 +1265,12 @@ fn creates_offer_with_blinded_path_using_unannounced_introduction_node() {
1265
1265
let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
1266
1266
offer_id : offer. id ( ) ,
1267
1267
invoice_request : InvoiceRequestFields {
1268
- payer_id : invoice_request. payer_id ( ) ,
1268
+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
1269
1269
quantity : None ,
1270
1270
payer_note_truncated : None ,
1271
1271
} ,
1272
1272
} ) ;
1273
- assert_ne ! ( invoice_request. payer_id ( ) , bob_id) ;
1273
+ assert_ne ! ( invoice_request. payer_signing_pubkey ( ) , bob_id) ;
1274
1274
assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( alice_id) ) ;
1275
1275
1276
1276
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() {
1411
1411
1412
1412
let ( invoice_request, reply_path) = extract_invoice_request ( alice, & onion_message) ;
1413
1413
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) ;
1415
1415
assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( charlie_id) ) ;
1416
1416
1417
1417
assert_eq ! ( alice. onion_messenger. next_onion_message_for_peer( charlie_id) , None ) ;
@@ -1441,7 +1441,7 @@ fn fails_authentication_when_handling_invoice_request() {
1441
1441
1442
1442
let ( invoice_request, reply_path) = extract_invoice_request ( alice, & onion_message) ;
1443
1443
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) ;
1445
1445
assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( charlie_id) ) ;
1446
1446
1447
1447
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() {
1543
1543
1544
1544
let ( invoice_request, reply_path) = extract_invoice_request ( alice, & onion_message) ;
1545
1545
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) ;
1547
1547
assert_eq ! ( reply_path. introduction_node( ) , & IntroductionNode :: NodeId ( charlie_id) ) ;
1548
1548
1549
1549
let onion_message = alice. onion_messenger . next_onion_message_for_peer ( charlie_id) . unwrap ( ) ;
0 commit comments