@@ -305,7 +305,7 @@ fn prefers_non_tor_nodes_in_blinded_paths() {
305
305
. create_offer_builder ( None ) . unwrap ( )
306
306
. amount_msats ( 10_000_000 )
307
307
. build ( ) . unwrap ( ) ;
308
- assert_ne ! ( offer. signing_pubkey ( ) , Some ( bob_id) ) ;
308
+ assert_ne ! ( offer. issuer_signing_pubkey ( ) , Some ( bob_id) ) ;
309
309
assert ! ( !offer. paths( ) . is_empty( ) ) ;
310
310
for path in offer. paths ( ) {
311
311
let introduction_node_id = resolve_introduction_node ( david, & path) ;
@@ -321,7 +321,7 @@ fn prefers_non_tor_nodes_in_blinded_paths() {
321
321
. create_offer_builder ( None ) . unwrap ( )
322
322
. amount_msats ( 10_000_000 )
323
323
. build ( ) . unwrap ( ) ;
324
- assert_ne ! ( offer. signing_pubkey ( ) , Some ( bob_id) ) ;
324
+ assert_ne ! ( offer. issuer_signing_pubkey ( ) , Some ( bob_id) ) ;
325
325
assert ! ( !offer. paths( ) . is_empty( ) ) ;
326
326
for path in offer. paths ( ) {
327
327
let introduction_node_id = resolve_introduction_node ( david, & path) ;
@@ -372,7 +372,7 @@ fn prefers_more_connected_nodes_in_blinded_paths() {
372
372
. create_offer_builder ( None ) . unwrap ( )
373
373
. amount_msats ( 10_000_000 )
374
374
. build ( ) . unwrap ( ) ;
375
- assert_ne ! ( offer. signing_pubkey ( ) , Some ( bob_id) ) ;
375
+ assert_ne ! ( offer. issuer_signing_pubkey ( ) , Some ( bob_id) ) ;
376
376
assert ! ( !offer. paths( ) . is_empty( ) ) ;
377
377
for path in offer. paths ( ) {
378
378
let introduction_node_id = resolve_introduction_node ( david, & path) ;
@@ -541,7 +541,7 @@ fn creates_and_pays_for_offer_using_two_hop_blinded_path() {
541
541
. unwrap ( )
542
542
. amount_msats ( 10_000_000 )
543
543
. build ( ) . unwrap ( ) ;
544
- assert_ne ! ( offer. signing_pubkey ( ) , Some ( alice_id) ) ;
544
+ assert_ne ! ( offer. issuer_signing_pubkey ( ) , Some ( alice_id) ) ;
545
545
assert ! ( !offer. paths( ) . is_empty( ) ) ;
546
546
for path in offer. paths ( ) {
547
547
assert_eq ! ( path. introduction_node( ) , & IntroductionNode :: NodeId ( bob_id) ) ;
@@ -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 ( ) ;
@@ -651,7 +651,7 @@ fn creates_and_pays_for_refund_using_two_hop_blinded_path() {
651
651
. build ( ) . unwrap ( ) ;
652
652
assert_eq ! ( refund. amount_msats( ) , 10_000_000 ) ;
653
653
assert_eq ! ( refund. absolute_expiry( ) , Some ( absolute_expiry) ) ;
654
- assert_ne ! ( refund. payer_id ( ) , david_id) ;
654
+ assert_ne ! ( refund. payer_signing_pubkey ( ) , david_id) ;
655
655
assert ! ( !refund. paths( ) . is_empty( ) ) ;
656
656
for path in refund. paths ( ) {
657
657
assert_eq ! ( path. introduction_node( ) , & IntroductionNode :: NodeId ( charlie_id) ) ;
@@ -709,7 +709,7 @@ fn creates_and_pays_for_offer_using_one_hop_blinded_path() {
709
709
. create_offer_builder ( None ) . unwrap ( )
710
710
. amount_msats ( 10_000_000 )
711
711
. build ( ) . unwrap ( ) ;
712
- assert_ne ! ( offer. signing_pubkey ( ) , Some ( alice_id) ) ;
712
+ assert_ne ! ( offer. issuer_signing_pubkey ( ) , Some ( alice_id) ) ;
713
713
assert ! ( !offer. paths( ) . is_empty( ) ) ;
714
714
for path in offer. paths ( ) {
715
715
assert_eq ! ( path. introduction_node( ) , & IntroductionNode :: NodeId ( alice_id) ) ;
@@ -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 ( ) ;
@@ -779,7 +779,7 @@ fn creates_and_pays_for_refund_using_one_hop_blinded_path() {
779
779
. build ( ) . unwrap ( ) ;
780
780
assert_eq ! ( refund. amount_msats( ) , 10_000_000 ) ;
781
781
assert_eq ! ( refund. absolute_expiry( ) , Some ( absolute_expiry) ) ;
782
- assert_ne ! ( refund. payer_id ( ) , bob_id) ;
782
+ assert_ne ! ( refund. payer_signing_pubkey ( ) , bob_id) ;
783
783
assert ! ( !refund. paths( ) . is_empty( ) ) ;
784
784
for path in refund. paths ( ) {
785
785
assert_eq ! ( path. introduction_node( ) , & IntroductionNode :: NodeId ( bob_id) ) ;
@@ -832,7 +832,7 @@ fn pays_for_offer_without_blinded_paths() {
832
832
. clear_paths ( )
833
833
. amount_msats ( 10_000_000 )
834
834
. build ( ) . unwrap ( ) ;
835
- assert_eq ! ( offer. signing_pubkey ( ) , Some ( alice_id) ) ;
835
+ assert_eq ! ( offer. issuer_signing_pubkey ( ) , Some ( alice_id) ) ;
836
836
assert ! ( offer. paths( ) . is_empty( ) ) ;
837
837
838
838
let payment_id = PaymentId ( [ 1 ; 32 ] ) ;
@@ -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
} ,
@@ -886,7 +886,7 @@ fn pays_for_refund_without_blinded_paths() {
886
886
. unwrap ( )
887
887
. clear_paths ( )
888
888
. build ( ) . unwrap ( ) ;
889
- assert_eq ! ( refund. payer_id ( ) , bob_id) ;
889
+ assert_eq ! ( refund. payer_signing_pubkey ( ) , bob_id) ;
890
890
assert ! ( refund. paths( ) . is_empty( ) ) ;
891
891
expect_recent_payment ! ( bob, RecentPaymentDetails :: AwaitingInvoice , payment_id) ;
892
892
@@ -955,7 +955,7 @@ fn send_invoice_requests_with_distinct_reply_path() {
955
955
. unwrap ( )
956
956
. amount_msats ( 10_000_000 )
957
957
. build ( ) . unwrap ( ) ;
958
- assert_ne ! ( offer. signing_pubkey ( ) , Some ( alice_id) ) ;
958
+ assert_ne ! ( offer. issuer_signing_pubkey ( ) , Some ( alice_id) ) ;
959
959
assert ! ( !offer. paths( ) . is_empty( ) ) ;
960
960
for path in offer. paths ( ) {
961
961
assert_eq ! ( path. introduction_node( ) , & IntroductionNode :: NodeId ( bob_id) ) ;
@@ -1040,7 +1040,7 @@ fn send_invoice_for_refund_with_distinct_reply_path() {
1040
1040
. create_refund_builder ( 10_000_000 , absolute_expiry, payment_id, Retry :: Attempts ( 0 ) , None )
1041
1041
. unwrap ( )
1042
1042
. build ( ) . unwrap ( ) ;
1043
- assert_ne ! ( refund. payer_id ( ) , alice_id) ;
1043
+ assert_ne ! ( refund. payer_signing_pubkey ( ) , alice_id) ;
1044
1044
for path in refund. paths ( ) {
1045
1045
assert_eq ! ( path. introduction_node( ) , & IntroductionNode :: NodeId ( bob_id) ) ;
1046
1046
}
@@ -1090,7 +1090,7 @@ fn creates_and_pays_for_offer_with_retry() {
1090
1090
. create_offer_builder ( None ) . unwrap ( )
1091
1091
. amount_msats ( 10_000_000 )
1092
1092
. build ( ) . unwrap ( ) ;
1093
- assert_ne ! ( offer. signing_pubkey ( ) , Some ( alice_id) ) ;
1093
+ assert_ne ! ( offer. issuer_signing_pubkey ( ) , Some ( alice_id) ) ;
1094
1094
assert ! ( !offer. paths( ) . is_empty( ) ) ;
1095
1095
for path in offer. paths ( ) {
1096
1096
assert_eq ! ( path. introduction_node( ) , & IntroductionNode :: NodeId ( alice_id) ) ;
@@ -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
} ,
@@ -1248,7 +1248,7 @@ fn creates_offer_with_blinded_path_using_unannounced_introduction_node() {
1248
1248
. create_offer_builder ( None ) . unwrap ( )
1249
1249
. amount_msats ( 10_000_000 )
1250
1250
. build ( ) . unwrap ( ) ;
1251
- assert_ne ! ( offer. signing_pubkey ( ) , Some ( alice_id) ) ;
1251
+ assert_ne ! ( offer. issuer_signing_pubkey ( ) , Some ( alice_id) ) ;
1252
1252
assert ! ( !offer. paths( ) . is_empty( ) ) ;
1253
1253
for path in offer. paths ( ) {
1254
1254
assert_eq ! ( path. introduction_node( ) , & IntroductionNode :: NodeId ( bob_id) ) ;
@@ -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 ( ) ;
@@ -1315,7 +1315,7 @@ fn creates_refund_with_blinded_path_using_unannounced_introduction_node() {
1315
1315
. create_refund_builder ( 10_000_000 , absolute_expiry, payment_id, Retry :: Attempts ( 0 ) , None )
1316
1316
. unwrap ( )
1317
1317
. build ( ) . unwrap ( ) ;
1318
- assert_ne ! ( refund. payer_id ( ) , bob_id) ;
1318
+ assert_ne ! ( refund. payer_signing_pubkey ( ) , bob_id) ;
1319
1319
assert ! ( !refund. paths( ) . is_empty( ) ) ;
1320
1320
for path in refund. paths ( ) {
1321
1321
assert_eq ! ( path. introduction_node( ) , & IntroductionNode :: NodeId ( alice_id) ) ;
@@ -1379,7 +1379,7 @@ fn fails_authentication_when_handling_invoice_request() {
1379
1379
. amount_msats ( 10_000_000 )
1380
1380
. build ( ) . unwrap ( ) ;
1381
1381
assert_eq ! ( offer. metadata( ) , None ) ;
1382
- assert_ne ! ( offer. signing_pubkey ( ) , Some ( alice_id) ) ;
1382
+ assert_ne ! ( offer. issuer_signing_pubkey ( ) , Some ( alice_id) ) ;
1383
1383
assert ! ( !offer. paths( ) . is_empty( ) ) ;
1384
1384
for path in offer. paths ( ) {
1385
1385
assert_eq ! ( path. introduction_node( ) , & IntroductionNode :: NodeId ( bob_id) ) ;
@@ -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 ) ;
@@ -1490,7 +1490,7 @@ fn fails_authentication_when_handling_invoice_for_offer() {
1490
1490
. unwrap ( )
1491
1491
. amount_msats ( 10_000_000 )
1492
1492
. build ( ) . unwrap ( ) ;
1493
- assert_ne ! ( offer. signing_pubkey ( ) , Some ( alice_id) ) ;
1493
+ assert_ne ! ( offer. issuer_signing_pubkey ( ) , Some ( alice_id) ) ;
1494
1494
assert ! ( !offer. paths( ) . is_empty( ) ) ;
1495
1495
for path in offer. paths ( ) {
1496
1496
assert_eq ! ( path. introduction_node( ) , & IntroductionNode :: NodeId ( bob_id) ) ;
@@ -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 ( ) ;
@@ -1598,7 +1598,7 @@ fn fails_authentication_when_handling_invoice_for_refund() {
1598
1598
. create_refund_builder ( 10_000_000 , absolute_expiry, payment_id, Retry :: Attempts ( 0 ) , None )
1599
1599
. unwrap ( )
1600
1600
. build ( ) . unwrap ( ) ;
1601
- assert_ne ! ( refund. payer_id ( ) , david_id) ;
1601
+ assert_ne ! ( refund. payer_signing_pubkey ( ) , david_id) ;
1602
1602
assert ! ( !refund. paths( ) . is_empty( ) ) ;
1603
1603
for path in refund. paths ( ) {
1604
1604
assert_eq ! ( path. introduction_node( ) , & IntroductionNode :: NodeId ( charlie_id) ) ;
@@ -1632,7 +1632,7 @@ fn fails_authentication_when_handling_invoice_for_refund() {
1632
1632
. create_refund_builder ( 10_000_000 , absolute_expiry, payment_id, Retry :: Attempts ( 0 ) , None )
1633
1633
. unwrap ( )
1634
1634
. build ( ) . unwrap ( ) ;
1635
- assert_ne ! ( refund. payer_id ( ) , david_id) ;
1635
+ assert_ne ! ( refund. payer_signing_pubkey ( ) , david_id) ;
1636
1636
assert ! ( !refund. paths( ) . is_empty( ) ) ;
1637
1637
for path in refund. paths ( ) {
1638
1638
assert_eq ! ( path. introduction_node( ) , & IntroductionNode :: NodeId ( charlie_id) ) ;
0 commit comments