rn-ldk
rn-ldk copied to clipboard
Generate a custom `r_preimage` to invoice
I would like to know if it's possible for a user to generate their own payment secret for a LN invoice.
With LND, you can add a field called r_preimage
to the /invoices
POST endpoint to create your own payment secret. It's optional to add it, and if it is blank, then there is one made up for you that is 32 bytes in length & hex encoded.
Can this be done with LDK?
https://app.swaggerhub.com/apis/lnd-rest/rpc-proto/0.4-beta#/Lightning/AddInvoice
should be possible with ldk, however rn-ldk doesn't have an interface for that, yet
Interesting, thanks @Overtorment. Is there a way to get a list of invoices paid so I can get access to the generated payment secrets?