Skip to content

Support passing preimage for spontaneous payments #535

Description

@rolznz

Currently its generated at send-time https://github.com/lightningdevkit/ldk-node/blob/main/src/payment/spontaneous.rs#L82 but in some cases the app needs to be able to specify the preimage.

For example, NWC allows specifying a preimage as one of the request fields when doing a keysend payment: https://github.com/nostr-protocol/nips/blob/master/47.md#pay_keysend

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions