@@ -37,7 +37,7 @@ pub enum NextMessageHop {
37
37
/// Onion messages and payments can be sent and received to blinded paths, which serve to hide the
38
38
/// identity of the recipient.
39
39
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
40
- pub struct BlindedPath {
40
+ pub ( super ) struct BlindedPath {
41
41
/// To send to a blinded path, the sender first finds a route to the unblinded
42
42
/// `introduction_node`, which can unblind its [`encrypted_payload`] to find out the onion
43
43
/// message or payment's next hop and forward it along.
@@ -53,7 +53,7 @@ pub struct BlindedPath {
53
53
pub blinded_hops : Vec < BlindedHop > ,
54
54
}
55
55
56
- /// The unblinded node in a [`BlindedPath`] .
56
+ /// The unblinded node in a blinded path .
57
57
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
58
58
pub enum IntroductionNode {
59
59
/// The node id of the introduction node.
@@ -63,8 +63,8 @@ pub enum IntroductionNode {
63
63
DirectedShortChannelId ( Direction , u64 ) ,
64
64
}
65
65
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.
68
68
///
69
69
/// [BOLT 7]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#the-channel_announcement-message
70
70
/// [`ChannelAnnouncement`]: crate::ln::msgs::ChannelAnnouncement
@@ -109,9 +109,9 @@ impl Deref for EmptyNodeIdLookUp {
109
109
/// and thus can be used to hide the identity of the recipient.
110
110
#[ derive( Clone , Debug , Hash , PartialEq , Eq ) ]
111
111
pub 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 .
113
113
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 .
115
115
// The node sending to this blinded path will later encode this payload into the onion packet for
116
116
// this hop.
117
117
pub encrypted_payload : Vec < u8 > ,
0 commit comments