@@ -545,7 +545,7 @@ where
545
545
Self { network_graph, entropy_source }
546
546
}
547
547
548
- fn create_blinded_paths_from_iter <
548
+ pub ( crate ) fn create_blinded_paths_from_iter <
549
549
I : ExactSizeIterator < Item = MessageForwardNode > ,
550
550
T : secp256k1:: Signing + secp256k1:: Verification ,
551
551
> (
@@ -659,36 +659,6 @@ where
659
659
}
660
660
}
661
661
}
662
-
663
- pub ( crate ) fn create_blinded_paths < T : secp256k1:: Signing + secp256k1:: Verification > (
664
- network_graph : & G , recipient : PublicKey , context : MessageContext ,
665
- peers : Vec < MessageForwardNode > , entropy_source : & ES , secp_ctx : & Secp256k1 < T > ,
666
- ) -> Result < Vec < BlindedMessagePath > , ( ) > {
667
- Self :: create_blinded_paths_from_iter (
668
- network_graph,
669
- recipient,
670
- context,
671
- peers. into_iter ( ) ,
672
- entropy_source,
673
- secp_ctx,
674
- false ,
675
- )
676
- }
677
-
678
- pub ( crate ) fn create_compact_blinded_paths < T : secp256k1:: Signing + secp256k1:: Verification > (
679
- network_graph : & G , recipient : PublicKey , context : MessageContext ,
680
- peers : Vec < MessageForwardNode > , entropy_source : & ES , secp_ctx : & Secp256k1 < T > ,
681
- ) -> Result < Vec < BlindedMessagePath > , ( ) > {
682
- Self :: create_blinded_paths_from_iter (
683
- network_graph,
684
- recipient,
685
- context,
686
- peers. into_iter ( ) ,
687
- entropy_source,
688
- secp_ctx,
689
- true ,
690
- )
691
- }
692
662
}
693
663
694
664
impl < G : Deref < Target = NetworkGraph < L > > , L : Deref , ES : Deref > MessageRouter
@@ -707,27 +677,29 @@ where
707
677
& self , recipient : PublicKey , context : MessageContext , peers : Vec < MessageForwardNode > ,
708
678
secp_ctx : & Secp256k1 < T > ,
709
679
) -> Result < Vec < BlindedMessagePath > , ( ) > {
710
- Self :: create_blinded_paths (
680
+ Self :: create_blinded_paths_from_iter (
711
681
& self . network_graph ,
712
682
recipient,
713
683
context,
714
- peers,
684
+ peers. into_iter ( ) ,
715
685
& self . entropy_source ,
716
686
secp_ctx,
687
+ false ,
717
688
)
718
689
}
719
690
720
691
fn create_compact_blinded_paths < T : secp256k1:: Signing + secp256k1:: Verification > (
721
692
& self , recipient : PublicKey , context : MessageContext , peers : Vec < MessageForwardNode > ,
722
693
secp_ctx : & Secp256k1 < T > ,
723
694
) -> Result < Vec < BlindedMessagePath > , ( ) > {
724
- Self :: create_compact_blinded_paths (
695
+ Self :: create_blinded_paths_from_iter (
725
696
& self . network_graph ,
726
697
recipient,
727
698
context,
728
- peers,
699
+ peers. into_iter ( ) ,
729
700
& self . entropy_source ,
730
701
secp_ctx,
702
+ true ,
731
703
)
732
704
}
733
705
}
0 commit comments