@@ -496,26 +496,6 @@ pub trait MessageRouter {
496
496
& self , recipient : PublicKey , context : MessageContext , peers : Vec < MessageForwardNode > ,
497
497
secp_ctx : & Secp256k1 < T > ,
498
498
) -> Result < Vec < BlindedMessagePath > , ( ) > ;
499
-
500
- /// Creates compact [`BlindedMessagePath`]s to the `recipient` node. The nodes in `peers` are
501
- /// assumed to be direct peers with the `recipient`.
502
- ///
503
- /// Compact blinded paths use short channel ids instead of pubkeys for a smaller serialization,
504
- /// which is beneficial when a QR code is used to transport the data. The SCID is passed using
505
- /// a [`MessageForwardNode`] but may be `None` for graceful degradation.
506
- ///
507
- /// Implementations using additional intermediate nodes are responsible for using a
508
- /// [`MessageForwardNode`] with `Some` short channel id, if possible. Similarly, implementations
509
- /// should call [`BlindedMessagePath::use_compact_introduction_node`].
510
- ///
511
- /// The provided implementation simply delegates to [`MessageRouter::create_blinded_paths`],
512
- /// ignoring the short channel ids.
513
- fn create_compact_blinded_paths < T : secp256k1:: Signing + secp256k1:: Verification > (
514
- & self , recipient : PublicKey , context : MessageContext , peers : Vec < MessageForwardNode > ,
515
- secp_ctx : & Secp256k1 < T > ,
516
- ) -> Result < Vec < BlindedMessagePath > , ( ) > {
517
- self . create_blinded_paths ( recipient, context, peers, secp_ctx)
518
- }
519
499
}
520
500
521
501
/// A [`MessageRouter`] that can only route to a directly connected [`Destination`].
@@ -683,21 +663,6 @@ where
683
663
false ,
684
664
)
685
665
}
686
-
687
- fn create_compact_blinded_paths < T : secp256k1:: Signing + secp256k1:: Verification > (
688
- & self , recipient : PublicKey , context : MessageContext , peers : Vec < MessageForwardNode > ,
689
- secp_ctx : & Secp256k1 < T > ,
690
- ) -> Result < Vec < BlindedMessagePath > , ( ) > {
691
- Self :: create_blinded_paths_from_iter (
692
- & self . network_graph ,
693
- recipient,
694
- context,
695
- peers. into_iter ( ) ,
696
- & self . entropy_source ,
697
- secp_ctx,
698
- true ,
699
- )
700
- }
701
666
}
702
667
703
668
@@ -756,21 +721,6 @@ where
756
721
true ,
757
722
)
758
723
}
759
-
760
- fn create_compact_blinded_paths < T : secp256k1:: Signing + secp256k1:: Verification > (
761
- & self , recipient : PublicKey , context : MessageContext , peers : Vec < MessageForwardNode > ,
762
- secp_ctx : & Secp256k1 < T > ,
763
- ) -> Result < Vec < BlindedMessagePath > , ( ) > {
764
- DefaultMessageRouter :: create_blinded_paths_from_iter (
765
- & self . network_graph ,
766
- recipient,
767
- context,
768
- peers. into_iter ( ) ,
769
- & self . entropy_source ,
770
- secp_ctx,
771
- true ,
772
- )
773
- }
774
724
}
775
725
776
726
/// A special [`MessageRouter`] that can doesn't route.
@@ -790,13 +740,6 @@ impl MessageRouter for NullMessageRouter
790
740
) -> Result < Vec < BlindedMessagePath > , ( ) > {
791
741
Ok ( vec ! [ ] )
792
742
}
793
-
794
- fn create_compact_blinded_paths < T : secp256k1:: Signing + secp256k1:: Verification > (
795
- & self , _recipient : PublicKey , _context : MessageContext , _peers : Vec < MessageForwardNode > ,
796
- _secp_ctx : & Secp256k1 < T > ,
797
- ) -> Result < Vec < BlindedMessagePath > , ( ) > {
798
- Ok ( vec ! [ ] )
799
- }
800
743
}
801
744
802
745
/// A path for sending an [`OnionMessage`].
0 commit comments