NUT-20 allows Cashu wallets to create "mint quotes" (intention to create new ecash) and lock that request to a user-defined public key. This allows third party services such as an LNURL server to create invoices for wallets that are offline without being able to rug the ecash created by paying that invoice.

https://github.com/cashubtc/nuts/blob/main/20.md

Reply to this note

Please Login to reply.

Discussion

How does the client check that the invoice returned is locked to the pubkey?

clients can use the quote ID to lookup quotes

So the LNURL server is expected to send the pr and the quote ID to the client?

No expectation of the latter

But it could (including the mint url)

The latter meaning sending the quote ID isn’t necessary? Isn’t the LNURL server the one that makes the request to the mint on behalf on the end users ecash wallet? How would the client ever know the quote ID if the LNURL server never sends it?

⚡⚡⚡❤️❤️❤️