File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -91,9 +91,13 @@ impl<'a> InvoiceRequestBuilder<'a> {
91
91
}
92
92
}
93
93
94
- /// Sets the metadata for the invoice request. Useful for containing information about the
95
- /// derivation of [`InvoiceRequest::payer_id`]. This should not leak any information such as
96
- /// using a simple BIP-32 derivation path.
94
+ /// Sets the metadata for the invoice request, which will be reflected in the invoice response.
95
+ /// Useful for including information about the derivation of [`InvoiceRequest::payer_id`] such
96
+ /// that invoice response handling can be stateless. Also serves as payer-provided entropy while
97
+ /// hashing in the signature calculation.
98
+ ///
99
+ /// This should not leak any information such as by using a simple BIP-32 derivation path.
100
+ /// Otherwise, payments may be correlated.
97
101
///
98
102
/// Successive calls to this method will override the previous setting.
99
103
pub fn metadata ( mut self , metadata : Vec < u8 > ) -> Self {
You can’t perform that action at this time.
0 commit comments