@@ -510,26 +510,6 @@ pub trait MessageRouter {
510510 & self , recipient : PublicKey , local_node_receive_key : ReceiveAuthKey ,
511511 context : MessageContext , peers : Vec < MessageForwardNode > , secp_ctx : & Secp256k1 < T > ,
512512 ) -> 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- }
533513}
534514
535515/// A [`MessageRouter`] that can only route to a directly connected [`Destination`].
@@ -733,22 +713,6 @@ where
733713 true ,
734714 )
735715 }
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- }
752716}
753717
754718/// This message router is similar to [`DefaultMessageRouter`], but it always creates
@@ -809,22 +773,6 @@ where
809773 false ,
810774 )
811775 }
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- }
828776}
829777
830778/// A special [`MessageRouter`] that performs no routing and does not create blinded paths.
@@ -858,13 +806,6 @@ impl MessageRouter for NullMessageRouter {
858806 ) -> Result < Vec < BlindedMessagePath > , ( ) > {
859807 Ok ( vec ! [ ] )
860808 }
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- }
868809}
869810
870811/// A path for sending an [`OnionMessage`].
0 commit comments