File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
lightning/src/blinded_path Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -120,6 +120,23 @@ impl BlindedMessagePath {
120
120
) -> Option < & ' a NodeId > {
121
121
self . 0 . public_introduction_node_id ( network_graph)
122
122
}
123
+
124
+ /// The [`IntroductionNode`] of the blinded path.
125
+ pub fn introduction_node ( & self ) -> & IntroductionNode {
126
+ & self . 0 . introduction_node
127
+ }
128
+
129
+ /// Used by the [`IntroductionNode`] to decrypt its [`encrypted_payload`] to forward the message.
130
+ ///
131
+ /// [`encrypted_payload`]: BlindedHop::encrypted_payload
132
+ pub fn blinding_point ( & self ) -> PublicKey {
133
+ self . 0 . blinding_point
134
+ }
135
+
136
+ /// The [`BlindedHop`]s within the blinded path.
137
+ pub fn blinded_hops ( & self ) -> & [ BlindedHop ] {
138
+ & self . 0 . blinded_hops
139
+ }
123
140
}
124
141
125
142
/// An intermediate node, and possibly a short channel id leading to the next node.
Original file line number Diff line number Diff line change @@ -103,6 +103,23 @@ impl BlindedPaymentPath {
103
103
) -> Option < & ' a NodeId > {
104
104
self . 0 . public_introduction_node_id ( network_graph)
105
105
}
106
+
107
+ /// The [`IntroductionNode`] of the blinded path.
108
+ pub fn introduction_node ( & self ) -> & IntroductionNode {
109
+ & self . 0 . introduction_node
110
+ }
111
+
112
+ /// Used by the [`IntroductionNode`] to decrypt its [`encrypted_payload`] to forward the payment.
113
+ ///
114
+ /// [`encrypted_payload`]: BlindedHop::encrypted_payload
115
+ pub fn blinding_point ( & self ) -> PublicKey {
116
+ self . 0 . blinding_point
117
+ }
118
+
119
+ /// The [`BlindedHop`]s within the blinded path.
120
+ pub fn blinded_hops ( & self ) -> & [ BlindedHop ] {
121
+ & self . 0 . blinded_hops
122
+ }
106
123
}
107
124
108
125
/// An intermediate node, its outbound channel, and relay parameters.
You can’t perform that action at this time.
0 commit comments