99// You may not use this file except in accordance with one or both of these
1010// licenses.
1111
12- use bitcoin:: hashes:: hex:: FromHex ;
1312use bitcoin:: hex:: DisplayHex ;
1413use bitcoin:: secp256k1:: { PublicKey , Scalar , Secp256k1 , SecretKey , schnorr} ;
1514use bitcoin:: secp256k1:: ecdh:: SharedSecret ;
@@ -36,7 +35,7 @@ use crate::routing::router::{BlindedTail, Path, Payee, PaymentParameters, RouteH
3635use crate :: sign:: { NodeSigner , PeerStorageKey , ReceiveAuthKey , Recipient } ;
3736use crate :: util:: config:: UserConfig ;
3837use crate :: util:: ser:: { WithoutLength , Writeable } ;
39- use crate :: util:: test_utils;
38+ use crate :: util:: test_utils:: { self , bytes_from_hex , secret_from_hex , pubkey_from_hex } ;
4039use lightning_invoice:: RawBolt11Invoice ;
4140use types:: features:: Features ;
4241use crate :: blinded_path:: BlindedHop ;
@@ -1489,18 +1488,6 @@ fn blinded_payment_path_padding() {
14891488 claim_payment ( & nodes[ 0 ] , & [ & nodes[ 1 ] , & nodes[ 2 ] , & nodes[ 3 ] , & nodes[ 4 ] ] , payment_preimage) ;
14901489}
14911490
1492- fn secret_from_hex ( hex : & str ) -> SecretKey {
1493- SecretKey :: from_slice ( & <Vec < u8 > >:: from_hex ( hex) . unwrap ( ) ) . unwrap ( )
1494- }
1495-
1496- fn bytes_from_hex ( hex : & str ) -> Vec < u8 > {
1497- <Vec < u8 > >:: from_hex ( hex) . unwrap ( )
1498- }
1499-
1500- fn pubkey_from_hex ( hex : & str ) -> PublicKey {
1501- PublicKey :: from_slice ( & <Vec < u8 > >:: from_hex ( hex) . unwrap ( ) ) . unwrap ( )
1502- }
1503-
15041491fn update_add_msg (
15051492 amount_msat : u64 , cltv_expiry : u32 , blinding_point : Option < PublicKey > ,
15061493 onion_routing_packet : msgs:: OnionPacket
0 commit comments