Please describe your proposed solution
AdaStream is the implementation of BitStream protocol on Cardano.
It allows to trustlessly trade encrypted files by selling decryption keys. The sale can be done either via Cardano or Bitcoin Lightning, which is great for interoperability.
I have a working prototype here: <https://github.com/nau/adastream>
TL;DR
- Alice wants to buy a file from Bob.
- Bob encrypts the file with a random key and sends encrypted file to Alice.
- Bob creates a bond contract on Cardano with a collateral and a commitment to the key and the file.
- Alice pays Bob for the encryption key via a HTLC (Hashed Timelock Contract), using Cardano or Bitcoin Lightning Network. Hash is the hash of the key.
- Alice decrypts the file with the key from the HTLC or takes the money back after the timeout.
- If Bob cheats, Alice can prove it and get the collateral from the bond contract.
- Bob can withdraw the collateral by revealing the key.