@calle 👁️⚡👁️ is there a ecash API implementation or standard that exists yet? Like L402 for lightning, but instead of having a macaroon of the payment hash and a preimage of the lightning invoice you just put the ecash directly in the API request
I think just ~X-ECash~ type header for http may suffice, it’s a bearer instrument isn’t it? Encrypt and transmit?
There are a few apps that use it already, it's pretty simple in design: put the NUT in an X-Cashu header, make the middleware read and receive it, and let the request through. I'm not aware of a comprehensive middleware that you can just plug and play but there are many libraries available depending on what you're building. check this out: https://proxnut.com/