@@ -510,26 +510,6 @@ pub trait MessageRouter {
510
510
& self , recipient : PublicKey , local_node_receive_key : ReceiveAuthKey ,
511
511
context : MessageContext , peers : Vec < MessageForwardNode > , secp_ctx : & Secp256k1 < T > ,
512
512
) -> Result < Vec < BlindedMessagePath > , ( ) > ;
513
-
514
- /// Creates compact [`BlindedMessagePath`]s to the `recipient` node. The nodes in `peers` are
515
- /// assumed to be direct peers with the `recipient`.
516
- ///
517
- /// Compact blinded paths use short channel ids instead of pubkeys for a smaller serialization,
518
- /// which is beneficial when a QR code is used to transport the data. The SCID is passed using
519
- /// a [`MessageForwardNode`] but may be `None` for graceful degradation.
520
- ///
521
- /// Implementations using additional intermediate nodes are responsible for using a
522
- /// [`MessageForwardNode`] with `Some` short channel id, if possible. Similarly, implementations
523
- /// should call [`BlindedMessagePath::use_compact_introduction_node`].
524
- ///
525
- /// The provided implementation simply delegates to [`MessageRouter::create_blinded_paths`],
526
- /// ignoring the short channel ids.
527
- fn create_compact_blinded_paths < T : secp256k1:: Signing + secp256k1:: Verification > (
528
- & self , recipient : PublicKey , local_node_receive_key : ReceiveAuthKey ,
529
- context : MessageContext , peers : Vec < MessageForwardNode > , secp_ctx : & Secp256k1 < T > ,
530
- ) -> Result < Vec < BlindedMessagePath > , ( ) > {
531
- self . create_blinded_paths ( recipient, local_node_receive_key, context, peers, secp_ctx)
532
- }
533
513
}
534
514
535
515
/// A [`MessageRouter`] that can only route to a directly connected [`Destination`].
@@ -733,22 +713,6 @@ where
733
713
true ,
734
714
)
735
715
}
736
-
737
- fn create_compact_blinded_paths < T : secp256k1:: Signing + secp256k1:: Verification > (
738
- & self , recipient : PublicKey , local_node_receive_key : ReceiveAuthKey ,
739
- context : MessageContext , peers : Vec < MessageForwardNode > , secp_ctx : & Secp256k1 < T > ,
740
- ) -> Result < Vec < BlindedMessagePath > , ( ) > {
741
- Self :: create_blinded_paths_from_iter (
742
- & self . network_graph ,
743
- recipient,
744
- local_node_receive_key,
745
- context,
746
- peers. into_iter ( ) ,
747
- & self . entropy_source ,
748
- secp_ctx,
749
- true ,
750
- )
751
- }
752
716
}
753
717
754
718
/// This message router is similar to [`DefaultMessageRouter`], but it always creates
@@ -809,22 +773,6 @@ where
809
773
false ,
810
774
)
811
775
}
812
-
813
- fn create_compact_blinded_paths < T : secp256k1:: Signing + secp256k1:: Verification > (
814
- & self , recipient : PublicKey , local_node_receive_key : ReceiveAuthKey ,
815
- context : MessageContext , peers : Vec < MessageForwardNode > , secp_ctx : & Secp256k1 < T > ,
816
- ) -> Result < Vec < BlindedMessagePath > , ( ) > {
817
- DefaultMessageRouter :: create_blinded_paths_from_iter (
818
- & self . network_graph ,
819
- recipient,
820
- local_node_receive_key,
821
- context,
822
- peers. into_iter ( ) ,
823
- & self . entropy_source ,
824
- secp_ctx,
825
- false ,
826
- )
827
- }
828
776
}
829
777
830
778
/// A special [`MessageRouter`] that performs no routing and does not create blinded paths.
@@ -858,13 +806,6 @@ impl MessageRouter for NullMessageRouter {
858
806
) -> Result < Vec < BlindedMessagePath > , ( ) > {
859
807
Ok ( vec ! [ ] )
860
808
}
861
-
862
- fn create_compact_blinded_paths < T : secp256k1:: Signing + secp256k1:: Verification > (
863
- & self , _recipient : PublicKey , _local_node_receive_key : ReceiveAuthKey ,
864
- _context : MessageContext , _peers : Vec < MessageForwardNode > , _secp_ctx : & Secp256k1 < T > ,
865
- ) -> Result < Vec < BlindedMessagePath > , ( ) > {
866
- Ok ( vec ! [ ] )
867
- }
868
809
}
869
810
870
811
/// A path for sending an [`OnionMessage`].
0 commit comments