9
9
10
10
//! Utilities for testing BOLT 12 Offers interfaces
11
11
12
- use bitcoin:: secp256k1:: { Keypair , PublicKey , Secp256k1 , SecretKey } ;
13
12
use bitcoin:: secp256k1:: schnorr:: Signature ;
13
+ use bitcoin:: secp256k1:: { Keypair , PublicKey , Secp256k1 , SecretKey } ;
14
14
15
- use core:: time:: Duration ;
16
- use crate :: blinded_path:: BlindedHop ;
17
15
use crate :: blinded_path:: payment:: { BlindedPayInfo , BlindedPaymentPath } ;
16
+ use crate :: blinded_path:: BlindedHop ;
17
+ use crate :: offers:: merkle:: TaggedHash ;
18
18
use crate :: sign:: EntropySource ;
19
- use crate :: types:: payment:: PaymentHash ;
20
19
use crate :: types:: features:: BlindedHopFeatures ;
21
- use crate :: offers:: merkle:: TaggedHash ;
20
+ use crate :: types:: payment:: PaymentHash ;
21
+ use core:: time:: Duration ;
22
22
23
23
#[ allow( unused_imports) ]
24
24
use crate :: prelude:: * ;
@@ -69,7 +69,8 @@ pub(super) fn privkey(byte: u8) -> SecretKey {
69
69
pub ( crate ) fn payment_paths ( ) -> Vec < BlindedPaymentPath > {
70
70
vec ! [
71
71
BlindedPaymentPath :: from_raw(
72
- pubkey( 40 ) , pubkey( 41 ) ,
72
+ pubkey( 40 ) ,
73
+ pubkey( 41 ) ,
73
74
vec![
74
75
BlindedHop { blinded_node_id: pubkey( 43 ) , encrypted_payload: vec![ 0 ; 43 ] } ,
75
76
BlindedHop { blinded_node_id: pubkey( 44 ) , encrypted_payload: vec![ 0 ; 44 ] } ,
@@ -84,7 +85,8 @@ pub(crate) fn payment_paths() -> Vec<BlindedPaymentPath> {
84
85
} ,
85
86
) ,
86
87
BlindedPaymentPath :: from_raw(
87
- pubkey( 40 ) , pubkey( 41 ) ,
88
+ pubkey( 40 ) ,
89
+ pubkey( 41 ) ,
88
90
vec![
89
91
BlindedHop { blinded_node_id: pubkey( 45 ) , encrypted_payload: vec![ 0 ; 45 ] } ,
90
92
BlindedHop { blinded_node_id: pubkey( 46 ) , encrypted_payload: vec![ 0 ; 46 ] } ,
0 commit comments