File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
lightning/src/blinded_path Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -236,14 +236,22 @@ pub(crate) struct ForwardTlvs {
236
236
pub ( crate ) next_blinding_override : Option < PublicKey > ,
237
237
}
238
238
239
- /// Similar to [`ForwardTlvs`] , but these TLVs are for the final node.
239
+ /// Similar to Forward Tlvs , but these TLVs are for the final node.
240
240
pub ( crate ) struct ReceiveTlvs {
241
241
/// If `context` is `Some`, it is used to identify the blinded path that this onion message is
242
242
/// sending to. This is useful for receivers to check that said blinded path is being used in
243
243
/// the right context.
244
244
pub context : Option < MessageContext > ,
245
245
246
- /// Custom Tlvs. A user can use this to send custom tlvs information back to themself.
246
+ /// Custom TLVs set by the user. If `custom_tlvs` is `Some`, it will be returned when the
247
+ /// blinded path is used.
248
+ ///
249
+ /// This field allows encoding custom data intended to be retrieved when the blinded path is used.
250
+ ///
251
+ /// ## Note on Forward Compatibility:
252
+ /// Users can encode any kind of data into the `Vec<u8>`. However, they must ensure that the
253
+ /// data is structured in a forward-compatible manner to prevent data loss or misinterpretation
254
+ /// during future upgrades.
247
255
pub custom_tlvs : Option < Vec < u8 > > ,
248
256
}
249
257
You can’t perform that action at this time.
0 commit comments