Why Nostr? What is Njump?
2024-06-25 22:23:12
in reply to

MinibitsCash on Nostr: The flow is as follows: 1. Address is parsed by the wallet and Lnurl well-known link ...

The flow is as follows:
1. Address is parsed by the wallet and Lnurl well-known link is constructed
2. Lnurl link is requested by sender wallet, retrieving min/max limits and an url to get invoice next
3. Invoice for specific amount is requested by wallet. Server requests quote from the mint that includes an invoice and est fee and passes that to the senderwallet. Server stores related data.
4. Server checks with the mint if an invoice has been paid.
5. If so, server constructs blinded messages for paid amount and asks mint for ecash
6. Server stores retrieved ecash and uses some way (push message+claim api or nostr dm) to send the ecash to the receiving wallet.
7. Wallet receives (swaps ecash for fresh notes with the mint)

So eventually this could be generalized in terms of mints. Because server needs to know how to reach recieving wallet, not sure it can be easily done on the receiving wallet side.
Author Public Key
npub1kvaln6tm0re4d99q9e4ma788wpvnw0jzkz595cljtfgwhldd75xsj9tkzv