jb55's avatar
jb55 _@jb55.com 8 months ago
isn’t this terrible for the users who tries to pay and it fails? seems like you would only want to do this in the offline case, but accept any + redeem to lightning for everything else

Replies (1)

It’s very transparent. > User requests resource > Server responds with Cashu payment request (encodes requirements like which mint to use, which pubkey to lock to, amount, etc.) > user creates matching token and replays the request (this time with token in header) > server verifies the token and responds with resource All of this can be automated. If the user does not have a matching token, the wallet will do an automatic mint->mint swap. It’s pretty seamless