Skip to content

Commit 84242d6

Browse files
committed
f - expand builder docs
1 parent 27685ef commit 84242d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/offers/offer.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ pub struct OfferBuilder {
7979

8080
impl OfferBuilder {
8181
/// Creates a new builder for an offer with the given description, using the given pubkey for
82-
/// signing invoices.
82+
/// signing invoices. The associated secret key must be remembered while the offer is valid.
83+
///
84+
/// Use a different pubkey per offer to avoid correlating offers.
8385
pub fn new(description: String, signing_pubkey: PublicKey) -> Self {
8486
let offer = OfferContents {
8587
chains: None, metadata: None, amount: None, description, features: None,

0 commit comments

Comments
 (0)