@@ -656,9 +656,11 @@ mod tests {
656
656
assert ! ( invoice. fallbacks( ) . is_empty( ) ) ;
657
657
assert_eq ! ( invoice. invoice_features( ) , & Bolt12InvoiceFeatures :: empty( ) ) ;
658
658
659
- let keys = offer. verify ( & expanded_key , & secp_ctx ) . unwrap ( ) . 1 . unwrap ( ) ;
659
+ let offer_signing_pubkey = offer. signing_pubkey ( ) . unwrap ( ) ;
660
660
let message = TaggedHash :: from_valid_tlv_stream_bytes ( SIGNATURE_TAG , & invoice. bytes ) ;
661
- assert ! ( merkle:: verify_signature( & invoice. signature, & message, keys. public_key( ) ) . is_ok( ) ) ;
661
+ assert ! (
662
+ merkle:: verify_signature( & invoice. signature, & message, offer_signing_pubkey) . is_ok( )
663
+ ) ;
662
664
663
665
let paths = vec ! [ blinded_path( ) ] ;
664
666
let metadata = vec ! [ 42 ; 16 ] ;
@@ -676,7 +678,7 @@ mod tests {
676
678
paths: Some ( & paths) ,
677
679
issuer: None ,
678
680
quantity_max: None ,
679
- node_id: Some ( & keys . public_key ( ) ) ,
681
+ node_id: Some ( & offer_signing_pubkey ) ,
680
682
} ,
681
683
InvoiceTlvStreamRef {
682
684
paths: Some ( Iterable ( payment_paths. iter( ) . map( |( _, path) | path) ) ) ,
@@ -687,7 +689,7 @@ mod tests {
687
689
amount: None ,
688
690
fallbacks: None ,
689
691
features: None ,
690
- node_id: Some ( & keys . public_key ( ) ) ,
692
+ node_id: Some ( & offer_signing_pubkey ) ,
691
693
message_paths: Some ( & paths) ,
692
694
} ,
693
695
SignatureTlvStreamRef { signature: Some ( & invoice. signature( ) ) } ,
0 commit comments