dr. calle 👁️⚡👁️ @calle - 2y
Selling anonymous API access with Lightning + Cashu: - Request access, server sends LN invoice - Pay invoice, server gives you ecash - Put ecash in HTTP header, call APIs Server can't link payment to user, or who is doing what. This is so simple, I must just build it.
285d4 - 2y
1833e - 2y
Yes
7df2c - 2y
Server still has IP address and can link API calls that way, but better than alternatives
084b8 - 2y
So each API call will also return remaining ecash token?
You can split it up in the beginning as much as you like. Say 1 request per satoshi, you pay 1000 sats, you get 1000 ecash tokens worth 1 sat.
Another cyber department is responsible for that that layer ser
I muted you because you wrote on the hell thread. Shame!
9ca19 - 2y
I thought about using LN for monetizing API access, but this sounds better and achieves the goal to reduce roundtrips (compared to „create invoice for every request“)! If I understood Cashu correctly, you can „top up“ a balance with the first LN invoice (say, 1000 sats), and then send 10 requests using 10 sats worth of ecash? https://twitter.com/mrlukelukasson/status/1529192648015331330?s=46&t=8YH8IlzSo8cWrg_G3bi8Xg
7d001 - 2y
I’ve got to get off that thread. Do you have to mute everyone or is there a smarter way?
semisol @semisol - 2y
I’m muting anyone that is posting on the hell thread from now on until this calms down. Also deleted the post so that compatible relays will not serve it and compatible clients show it deleted
Exactly, and the payment is push instead of pull, like in Lighting making it a lot easier to implement. Pretty sure it could be built very easily using this lib: https://github.com/cashubtc/cashu-js
signal_and_rage ☕️ @signal_and_rage ☕️ - 2y
🫡
48275 - 2y
Good concept
Homer Hodl @hhooddll - 2y
Any recommendations?
what did you honestly think was going to happen?
😆
this is the only answer
Jesus Christ! And you don’t even need to handle the „balance“ in the background as I would have needed to do in my thought exercise. You already solved this via Cashu itself, right ?! 👀
What is blaming the victim for $1000? #[420]
There is no balance in Cashu 😘