Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature]: allow saving private notes for payments #9184

Open
AndySchroder opened this issue Oct 14, 2024 · 2 comments
Open

[feature]: allow saving private notes for payments #9184

AndySchroder opened this issue Oct 14, 2024 · 2 comments
Labels
enhancement Improvements to existing features / behaviour P2 should be fixed if one has time payments Related to invoices/payments

Comments

@AndySchroder
Copy link

AndySchroder commented Oct 14, 2024

Is your feature request related to a problem? Please describe.

  1. Payee doesn't always put a good memo or any memo at all on invoices. Payer should have the ability to add their own notes for their own records to all outbound payments, whether success or failure.

  2. Payee wants to store more detailed information or private information that can't be placed in the memo that is shared with the payer.

Describe the solution you'd like

  1. Add an RPC command that allows me to attach a private note for any outbound payment, while sending payment and after payment.

  2. Allow adding a private note when creating an invoice using AddInvoice and AddHoldInvoice .

  3. Allow querying a list of inbound and outbound payments based on their private notes.

Describe alternatives you've considered

Separate databases. These are a nuisance because they require another database, daemon, network socket, and authentication setup for all users of the LND node to also manage private notes.

Additional context

Zeus has an option to store a private note, but the data does not persist on the LND node, it is only on the phone the note is written on (ZeusLN/zeus#2410) . This is just one example.

@AndySchroder AndySchroder added the enhancement Improvements to existing features / behaviour label Oct 14, 2024
@saubyk
Copy link
Collaborator

saubyk commented Oct 14, 2024

2. Allow adding a private note when creating an invoice using AddInvoice and AddHoldInvoice

How will this be different from the memo that you can add along with the invoice? Trying to understand the implication of 'private'?

@saubyk saubyk added the payments Related to invoices/payments label Oct 14, 2024
@AndySchroder
Copy link
Author

  1. Allow adding a private note when creating an invoice using AddInvoice and AddHoldInvoice

How will this be different from the memo that you can add along with the invoice? Trying to understand the implication of 'private'?

Well, it won't really be part of the actual BOLT 11 invoice that is shared, just part of the local database. Anyone with an invoice macaroon on the LND node will be able to read it, but it otherwise won't be shared since there is no additional BOLT11 invoice fields to even put it in.

This field could not be private too if the payee wants to share it some other way than via BOLT 11. For example, it could also be used to store data that is too long to put in the invoice itself. We have a description_hash for longer amounts of data that can't fit in BOLT 11 invoices, but there isn't anywhere in LND to actually store the longer data that is hashed.

@saubyk saubyk added the P2 should be fixed if one has time label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements to existing features / behaviour P2 should be fixed if one has time payments Related to invoices/payments
Projects
None yet
Development

No branches or pull requests

2 participants