@@ -37,7 +37,7 @@ pub enum NextMessageHop {
3737/// Onion messages and payments can be sent and received to blinded paths, which serve to hide the
3838/// identity of the recipient.
3939#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
40- pub struct BlindedPath {
40+ pub ( crate ) struct BlindedPath {
4141 /// To send to a blinded path, the sender first finds a route to the unblinded
4242 /// `introduction_node`, which can unblind its [`encrypted_payload`] to find out the onion
4343 /// message or payment's next hop and forward it along.
@@ -53,7 +53,7 @@ pub struct BlindedPath {
5353 pub blinded_hops : Vec < BlindedHop > ,
5454}
5555
56- /// The unblinded node in a [`BlindedPath`] .
56+ /// The unblinded node in a blinded path .
5757#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
5858pub enum IntroductionNode {
5959 /// The node id of the introduction node.
@@ -63,8 +63,8 @@ pub enum IntroductionNode {
6363 DirectedShortChannelId ( Direction , u64 ) ,
6464}
6565
66- /// The side of a channel that is the [`IntroductionNode`] in a [`BlindedPath`] . [BOLT 7] defines
67- /// which nodes is which in the [`ChannelAnnouncement`] message.
66+ /// The side of a channel that is the [`IntroductionNode`] in a blinded path . [BOLT 7] defines which
67+ /// nodes is which in the [`ChannelAnnouncement`] message.
6868///
6969/// [BOLT 7]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#the-channel_announcement-message
7070/// [`ChannelAnnouncement`]: crate::ln::msgs::ChannelAnnouncement
@@ -109,9 +109,9 @@ impl Deref for EmptyNodeIdLookUp {
109109/// and thus can be used to hide the identity of the recipient.
110110#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
111111pub struct BlindedHop {
112- /// The blinded node id of this hop in a [`BlindedPath`] .
112+ /// The blinded node id of this hop in a blinded path .
113113 pub blinded_node_id : PublicKey ,
114- /// The encrypted payload intended for this hop in a [`BlindedPath`] .
114+ /// The encrypted payload intended for this hop in a blinded path .
115115 // The node sending to this blinded path will later encode this payload into the onion packet for
116116 // this hop.
117117 pub encrypted_payload : Vec < u8 > ,
0 commit comments