2026-02-09 16:38:48 CET
in reply to

mleku on Nostr: it's just gonna have all the necessaries. depositing via lightning will need an ...

it's just gonna have all the necessaries. depositing via lightning will need an external lightning payment method, and melting, will require the app using it to provide a BOLT-11 invoice for the mint to melt to. it will store tokens in the nip-60 nutstash event so that the user can access their nutstash anywhere their nsec is available to do/verify signatures and en/decryption.

that's what you want, right?

ok, i see that there isn't handling for deposit/withdraw (zap in, zap out via lightning) in the codebase. to use this capability it has to be hooked up to lightning somehow, NWC is fine.

since there is already NWC, if an active connection to a wallet is available it will use it directly, otherwise, the LN rails need to be provided by the caller, ie, to show the invoice for the user to pay, or to request an invoice for the user to receive a withdrawal.