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