99
1010//! Utilities for testing BOLT 12 Offers interfaces
1111
12- use bitcoin:: secp256k1:: { Keypair , PublicKey , Secp256k1 , SecretKey } ;
1312use bitcoin:: secp256k1:: schnorr:: Signature ;
13+ use bitcoin:: secp256k1:: { Keypair , PublicKey , Secp256k1 , SecretKey } ;
1414
15- use core:: time:: Duration ;
16- use crate :: blinded_path:: BlindedHop ;
1715use crate :: blinded_path:: payment:: { BlindedPayInfo , BlindedPaymentPath } ;
16+ use crate :: blinded_path:: BlindedHop ;
17+ use crate :: offers:: merkle:: TaggedHash ;
1818use crate :: sign:: EntropySource ;
19- use crate :: types:: payment:: PaymentHash ;
2019use crate :: types:: features:: BlindedHopFeatures ;
21- use crate :: offers:: merkle:: TaggedHash ;
20+ use crate :: types:: payment:: PaymentHash ;
21+ use core:: time:: Duration ;
2222
2323#[ allow( unused_imports) ]
2424use crate :: prelude:: * ;
@@ -69,7 +69,8 @@ pub(super) fn privkey(byte: u8) -> SecretKey {
6969pub ( crate ) fn payment_paths ( ) -> Vec < BlindedPaymentPath > {
7070 vec ! [
7171 BlindedPaymentPath :: from_raw(
72- pubkey( 40 ) , pubkey( 41 ) ,
72+ pubkey( 40 ) ,
73+ pubkey( 41 ) ,
7374 vec![
7475 BlindedHop { blinded_node_id: pubkey( 43 ) , encrypted_payload: vec![ 0 ; 43 ] } ,
7576 BlindedHop { blinded_node_id: pubkey( 44 ) , encrypted_payload: vec![ 0 ; 44 ] } ,
@@ -84,7 +85,8 @@ pub(crate) fn payment_paths() -> Vec<BlindedPaymentPath> {
8485 } ,
8586 ) ,
8687 BlindedPaymentPath :: from_raw(
87- pubkey( 40 ) , pubkey( 41 ) ,
88+ pubkey( 40 ) ,
89+ pubkey( 41 ) ,
8890 vec![
8991 BlindedHop { blinded_node_id: pubkey( 45 ) , encrypted_payload: vec![ 0 ; 45 ] } ,
9092 BlindedHop { blinded_node_id: pubkey( 46 ) , encrypted_payload: vec![ 0 ; 46 ] } ,
0 commit comments