Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions lnrpc/invoicesrpc/invoices.proto
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ message AddHoldInvoiceResp {
/*
The payment address of the generated invoice. This value should be used
in all payments for this invoice as we require it for end to end
security.
security.The term payment_secret, sometimes used interchangeably with
payment_addr, holds significance in different scenarios.
*/
bytes payment_addr = 3;
}
Expand Down Expand Up @@ -156,9 +157,10 @@ enum LookupModifier {

/*
Indicates that when a look up is done using a payment_addr, then no HTLCs
related to the payment_addr should be returned. This is useful when one
wants to be able to obtain the set of associated setIDs with a given
invoice, then look up the sub-invoices "projected" by that set ID.
related to the payment_addr should be returned. This is useful
when one wants to be able to obtain the set of associated
setIDs with a given invoice, then look up the sub-invoices
"projected" by that set ID.
*/
HTLC_SET_BLANK = 2;
}
Expand Down
12 changes: 8 additions & 4 deletions lnrpc/lightning.proto
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,8 @@ message SendRequest {
repeated FeatureBit dest_features = 15;

/*
The payment address of the generated invoice.
The payment address of the generated invoice. The term payment_secret
may also refer to the payment address in certain contexts.
*/
bytes payment_addr = 16;
}
Expand Down Expand Up @@ -3107,7 +3108,8 @@ message MPPRecord {
A unique, random identifier used to authenticate the sender as the intended
payer of a multi-path payment. The payment_addr must be the same for all
subpayments, and match the payment_addr provided in the receiver's invoice.
The same payment_addr must be used on all subpayments.
The same payment_addr must be used on all subpayments.The term
payment_secret may also refer to the payment address in certain contexts.
*/
bytes payment_addr = 11;

Expand Down Expand Up @@ -3631,7 +3633,8 @@ message Invoice {
bool is_keysend = 25;

/*
The payment address of this invoice. This value will be used in MPP
The payment address of this invoice. Other contexts may designate the
payment_addr as the payment_secret. This value will be used in MPP
payments, and also for newer invoices that always require the MPP payload
for added end-to-end security.
Note: Output only, don't specify for creating an invoice.
Expand Down Expand Up @@ -3740,7 +3743,8 @@ message AddInvoiceResponse {
/*
The payment address of the generated invoice. This value should be used
in all payments for this invoice as we require it for end to end
security.
security. In various situations, the payment_secret is used as an
alternative term for payment_addr.
*/
bytes payment_addr = 17;
}
Expand Down
10 changes: 8 additions & 2 deletions lnrpc/routerrpc/router.proto
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ message SendPaymentRequest {
*/
int32 final_cltv_delta = 4;

// An optional payment addr to be included within the last hop of the route.
/* An optional payment addr to be included within the last hop of the route.
This field is also called "payment_secret" in other context.
*/
bytes payment_addr = 20;

/*
Expand Down Expand Up @@ -634,7 +636,11 @@ message BuildRouteRequest {
*/
repeated bytes hop_pubkeys = 4;

// An optional payment addr to be included within the last hop of the route.
/*
An optional payment addr to be included within the last hop of the route.
In various situations, the payment_secret is used as an alternative term
for payment_addr.
*/
bytes payment_addr = 5;
}

Expand Down