@@ -551,13 +551,13 @@ fn creates_and_pays_for_offer_using_two_hop_blinded_path() {
551
551
let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
552
552
offer_id : offer. id ( ) ,
553
553
invoice_request : InvoiceRequestFields {
554
- payer_id : invoice_request. payer_id ( ) ,
554
+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
555
555
quantity : None ,
556
556
payer_note_truncated : None ,
557
557
} ,
558
558
} ) ;
559
559
assert_eq ! ( invoice_request. amount_msats( ) , None ) ;
560
- assert_ne ! ( invoice_request. payer_id ( ) , david_id) ;
560
+ assert_ne ! ( invoice_request. payer_signing_pubkey ( ) , david_id) ;
561
561
assert_eq ! ( reply_path. introduction_node, IntroductionNode :: NodeId ( charlie_id) ) ;
562
562
563
563
let onion_message = alice. onion_messenger . next_onion_message_for_peer ( charlie_id) . unwrap ( ) ;
@@ -700,13 +700,13 @@ fn creates_and_pays_for_offer_using_one_hop_blinded_path() {
700
700
let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
701
701
offer_id : offer. id ( ) ,
702
702
invoice_request : InvoiceRequestFields {
703
- payer_id : invoice_request. payer_id ( ) ,
703
+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
704
704
quantity : None ,
705
705
payer_note_truncated : None ,
706
706
} ,
707
707
} ) ;
708
708
assert_eq ! ( invoice_request. amount_msats( ) , None ) ;
709
- assert_ne ! ( invoice_request. payer_id ( ) , bob_id) ;
709
+ assert_ne ! ( invoice_request. payer_signing_pubkey ( ) , bob_id) ;
710
710
assert_eq ! ( reply_path. introduction_node, IntroductionNode :: NodeId ( bob_id) ) ;
711
711
712
712
let onion_message = alice. onion_messenger . next_onion_message_for_peer ( bob_id) . unwrap ( ) ;
@@ -818,7 +818,7 @@ fn pays_for_offer_without_blinded_paths() {
818
818
let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
819
819
offer_id : offer. id ( ) ,
820
820
invoice_request : InvoiceRequestFields {
821
- payer_id : invoice_request. payer_id ( ) ,
821
+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
822
822
quantity : None ,
823
823
payer_note_truncated : None ,
824
824
} ,
@@ -1076,7 +1076,7 @@ fn pays_bolt12_invoice_asynchronously() {
1076
1076
let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
1077
1077
offer_id : offer. id ( ) ,
1078
1078
invoice_request : InvoiceRequestFields {
1079
- payer_id : invoice_request. payer_id ( ) ,
1079
+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
1080
1080
quantity : None ,
1081
1081
payer_note_truncated : None ,
1082
1082
} ,
@@ -1165,12 +1165,12 @@ fn creates_offer_with_blinded_path_using_unannounced_introduction_node() {
1165
1165
let payment_context = PaymentContext :: Bolt12Offer ( Bolt12OfferContext {
1166
1166
offer_id : offer. id ( ) ,
1167
1167
invoice_request : InvoiceRequestFields {
1168
- payer_id : invoice_request. payer_id ( ) ,
1168
+ payer_signing_pubkey : invoice_request. payer_signing_pubkey ( ) ,
1169
1169
quantity : None ,
1170
1170
payer_note_truncated : None ,
1171
1171
} ,
1172
1172
} ) ;
1173
- assert_ne ! ( invoice_request. payer_id ( ) , bob_id) ;
1173
+ assert_ne ! ( invoice_request. payer_signing_pubkey ( ) , bob_id) ;
1174
1174
assert_eq ! ( reply_path. introduction_node, IntroductionNode :: NodeId ( alice_id) ) ;
1175
1175
1176
1176
let onion_message = alice. onion_messenger . next_onion_message_for_peer ( bob_id) . unwrap ( ) ;
@@ -1313,7 +1313,7 @@ fn fails_authentication_when_handling_invoice_request() {
1313
1313
1314
1314
let ( invoice_request, reply_path) = extract_invoice_request ( alice, & onion_message) ;
1315
1315
assert_eq ! ( invoice_request. amount_msats( ) , None ) ;
1316
- assert_ne ! ( invoice_request. payer_id ( ) , david_id) ;
1316
+ assert_ne ! ( invoice_request. payer_signing_pubkey ( ) , david_id) ;
1317
1317
assert_eq ! ( reply_path. introduction_node, IntroductionNode :: NodeId ( charlie_id) ) ;
1318
1318
1319
1319
assert_eq ! ( alice. onion_messenger. next_onion_message_for_peer( charlie_id) , None ) ;
@@ -1346,7 +1346,7 @@ fn fails_authentication_when_handling_invoice_request() {
1346
1346
1347
1347
let ( invoice_request, reply_path) = extract_invoice_request ( alice, & onion_message) ;
1348
1348
assert_eq ! ( invoice_request. amount_msats( ) , None ) ;
1349
- assert_ne ! ( invoice_request. payer_id ( ) , david_id) ;
1349
+ assert_ne ! ( invoice_request. payer_signing_pubkey ( ) , david_id) ;
1350
1350
assert_eq ! ( reply_path. introduction_node, IntroductionNode :: NodeId ( charlie_id) ) ;
1351
1351
1352
1352
assert_eq ! ( alice. onion_messenger. next_onion_message_for_peer( charlie_id) , None ) ;
@@ -1451,7 +1451,7 @@ fn fails_authentication_when_handling_invoice_for_offer() {
1451
1451
1452
1452
let ( invoice_request, reply_path) = extract_invoice_request ( alice, & onion_message) ;
1453
1453
assert_eq ! ( invoice_request. amount_msats( ) , None ) ;
1454
- assert_ne ! ( invoice_request. payer_id ( ) , david_id) ;
1454
+ assert_ne ! ( invoice_request. payer_signing_pubkey ( ) , david_id) ;
1455
1455
assert_eq ! ( reply_path. introduction_node, IntroductionNode :: NodeId ( charlie_id) ) ;
1456
1456
1457
1457
let onion_message = alice. onion_messenger . next_onion_message_for_peer ( charlie_id) . unwrap ( ) ;
0 commit comments