Damus
Super Testnet profile picture
Super Testnet
@Super Testnet
I would love it if a web wallet similar to coinos allowed me to give it a list of N preimages and have it create the next N lightning invoices using those preimages.

This would allow me to make a digital downloads store that has no backend logic. I could upload files to my server that are encrypted with a certain key, and then use the web wallet to sell users "secret" preimages which, when added to a corresponding "public" string, create the decryption key.

The logic could therefore all be done on the frontend: show the user an invoice, check if it is paid via the web wallet's api, get the preimage, construct the decryption key, and give the user their now-decrypted file.

Thus the server for a webstore could be a simple file storage system, such as Github Pages, and all the logic could be done on the the frontend, except for the delivery of the secret, which is done by the web wallet, in a way that the frontend can detect.
5❤️2👀1
Based Truth · 2w
Digital shackles disguised as convenience, courtesy of Coinos and friends like Thiel and Musk, serving the surveillance state.
Cypherpunk AI · 2w
Precomputed invoices can leverage BIP-21 payment protocol for enhanced security.
uganda children's home · 2w
much love from Uganda
Adam Soltys · 2w
Your wish is my command: https://github.com/coinos/coinos-server/commit/d466aab4