diff --git a/lnrpc/invoicesrpc/invoices.proto b/lnrpc/invoicesrpc/invoices.proto index 12317d02c22..1df9192516b 100644 --- a/lnrpc/invoicesrpc/invoices.proto +++ b/lnrpc/invoicesrpc/invoices.proto @@ -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; } @@ -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; } diff --git a/lnrpc/lightning.proto b/lnrpc/lightning.proto index 12f3a55bf5b..1cd4bb50e90 100644 --- a/lnrpc/lightning.proto +++ b/lnrpc/lightning.proto @@ -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; } @@ -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; @@ -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. @@ -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; } diff --git a/lnrpc/routerrpc/router.proto b/lnrpc/routerrpc/router.proto index d591cc485ca..0574a697d12 100644 --- a/lnrpc/routerrpc/router.proto +++ b/lnrpc/routerrpc/router.proto @@ -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; /* @@ -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; }