@@ -461,28 +461,6 @@ pub trait MessageRouter {
461
461
> (
462
462
& self , recipient : PublicKey , context : MessageContext , peers : Vec < MessageForwardNode > , secp_ctx : & Secp256k1 < T > ,
463
463
) -> Result < Vec < BlindedMessagePath > , ( ) > ;
464
-
465
- /// Creates compact [`BlindedMessagePath`]s to the `recipient` node. The nodes in `peers` are
466
- /// assumed to be direct peers with the `recipient`.
467
- ///
468
- /// Compact blinded paths use short channel ids instead of pubkeys for a smaller serialization,
469
- /// which is beneficial when a QR code is used to transport the data. The SCID is passed using
470
- /// a [`MessageForwardNode`] but may be `None` for graceful degradation.
471
- ///
472
- /// Implementations using additional intermediate nodes are responsible for using a
473
- /// [`MessageForwardNode`] with `Some` short channel id, if possible. Similarly, implementations
474
- /// should call [`BlindedMessagePath::use_compact_introduction_node`].
475
- ///
476
- /// The provided implementation simply delegates to [`MessageRouter::create_blinded_paths`],
477
- /// ignoring the short channel ids.
478
- fn create_compact_blinded_paths <
479
- T : secp256k1:: Signing + secp256k1:: Verification
480
- > (
481
- & self , recipient : PublicKey , context : MessageContext ,
482
- peers : Vec < MessageForwardNode > , secp_ctx : & Secp256k1 < T > ,
483
- ) -> Result < Vec < BlindedMessagePath > , ( ) > {
484
- self . create_blinded_paths ( recipient, context, peers, secp_ctx)
485
- }
486
464
}
487
465
488
466
/// A [`MessageRouter`] that can only route to a directly connected [`Destination`].
@@ -632,15 +610,6 @@ where
632
610
) -> Result < Vec < BlindedMessagePath > , ( ) > {
633
611
Self :: create_blinded_paths_from_iter ( network_graph, recipient, context, peers. into_iter ( ) , entropy_source, secp_ctx, self . is_compact )
634
612
}
635
-
636
- pub ( crate ) fn create_compact_blinded_paths <
637
- T : secp256k1:: Signing + secp256k1:: Verification
638
- > (
639
- network_graph : & G , recipient : PublicKey , context : MessageContext ,
640
- peers : Vec < MessageForwardNode > , entropy_source : & ES , secp_ctx : & Secp256k1 < T > ,
641
- ) -> Result < Vec < BlindedMessagePath > , ( ) > {
642
- Self :: create_blinded_paths_from_iter ( network_graph, recipient, context, peers. into_iter ( ) , entropy_source, secp_ctx, true )
643
- }
644
613
}
645
614
646
615
impl < G : Deref < Target =NetworkGraph < L > > , L : Deref , ES : Deref > MessageRouter for DefaultMessageRouter < G , L , ES >
@@ -661,14 +630,6 @@ where
661
630
) -> Result < Vec < BlindedMessagePath > , ( ) > {
662
631
self . create_blinded_paths_internal ( & self . network_graph , recipient, context, peers, & self . entropy_source , secp_ctx)
663
632
}
664
-
665
- fn create_compact_blinded_paths <
666
- T : secp256k1:: Signing + secp256k1:: Verification
667
- > (
668
- & self , recipient : PublicKey , context : MessageContext , peers : Vec < MessageForwardNode > , secp_ctx : & Secp256k1 < T > ,
669
- ) -> Result < Vec < BlindedMessagePath > , ( ) > {
670
- Self :: create_compact_blinded_paths ( & self . network_graph , recipient, context, peers, & self . entropy_source , secp_ctx)
671
- }
672
633
}
673
634
674
635
/// A [`MessageRouter`] implementation that does not perform routing.
@@ -693,14 +654,6 @@ impl MessageRouter for NullMessageRouter {
693
654
) -> Result < Vec < BlindedMessagePath > , ( ) > {
694
655
Ok ( Vec :: new ( ) )
695
656
}
696
-
697
- fn create_compact_blinded_paths <
698
- T : secp256k1:: Signing + secp256k1:: Verification
699
- > (
700
- & self , _recipient : PublicKey , _context : MessageContext , _peers : Vec < MessageForwardNode > , _secp_ctx : & Secp256k1 < T > ,
701
- ) -> Result < Vec < BlindedMessagePath > , ( ) > {
702
- Ok ( Vec :: new ( ) )
703
- }
704
657
}
705
658
706
659
/// A path for sending an [`OnionMessage`].
0 commit comments