@@ -70,7 +70,7 @@ pub fn scid_from_parts(block: u64, tx_index: u64, vout_index: u64) -> Result<u64
70
70
/// 2) phantom node payments, to get an scid for the phantom node's phantom channel
71
71
/// 3) payments intended to be intercepted will route using a fake scid (this is typically used so
72
72
/// the forwarding node can open a JIT channel to the next hop)
73
- pub mod fake_scid {
73
+ pub ( crate ) mod fake_scid {
74
74
use bitcoin:: blockdata:: constants:: ChainHash ;
75
75
use bitcoin:: network:: constants:: Network ;
76
76
use crate :: sign:: EntropySource ;
@@ -95,7 +95,7 @@ pub mod fake_scid {
95
95
/// receipt, and handle the HTLC accordingly. The namespace identifier is encrypted when encoded
96
96
/// into the fake scid.
97
97
#[ derive( Copy , Clone ) ]
98
- pub enum Namespace {
98
+ pub ( crate ) enum Namespace {
99
99
/// Phantom nodes namespace
100
100
Phantom ,
101
101
/// SCID aliases for outbound private channels
@@ -109,7 +109,7 @@ pub mod fake_scid {
109
109
/// between segwit activation and the current best known height, and the tx index and output
110
110
/// index are also selected from a "reasonable" range. We add this logic because it makes it
111
111
/// non-obvious at a glance that the scid is fake, e.g. if it appears in invoice route hints.
112
- pub fn get_fake_scid < ES : Deref > ( & self , highest_seen_blockheight : u32 , chain_hash : & ChainHash , fake_scid_rand_bytes : & [ u8 ; 32 ] , entropy_source : & ES ) -> u64
112
+ pub ( crate ) fn get_fake_scid < ES : Deref > ( & self , highest_seen_blockheight : u32 , chain_hash : & ChainHash , fake_scid_rand_bytes : & [ u8 ; 32 ] , entropy_source : & ES ) -> u64
113
113
where ES :: Target : EntropySource ,
114
114
{
115
115
// Ensure we haven't created a namespace that doesn't fit into the 3 bits we've allocated for
0 commit comments