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
Login to reply
Replies (1)
> Server responds with Cashu payment request (encodes requirements like which mint to use, which pubkey to lock to, amount, etc.)
Ah nice thats the key bit that makes this work. If the wallet can support this swap automatically then great! very cool.