Bob wants to send Alice a 1k file.
He is not connected to Alice and must go through Carol.
Carol says she will forward it for some BTC.
Similar to LN but for Data.
--------------------
1)simplest insecure way :
Bob gives the file to Carol. Carol gives it to Alice. Alice signs a message saying she has received it, gives it to Carol. Carol gives the signed message to Bob. Bob pays Carol.
No way for Carol to pretend she has given the file to Alice. No way for Carol to ensure Bob pays her at the end or Alice signs message. Not good.
2) Ramp it up..
Bob gives the file to Carol. Carol gives the hash of the file to Alice. Alice creates a transaction that pays out to Carol, if she provides an input that hashes to the hash of the file. Carol collects the BTC by publishing the 1k file and spending the txn.
Again - not great. Alice pays, though Bob could pre-pay her, and Alice does not know if the file is the original file Bob actually tried to send her.. AND the whole (could be encrypted) file is published on chain. What if the file was 1 MB? (do it 1000 times for 1K.. only works off-chain)
3) Bob signs the hash of the file. Give the file + signature to Carol. Then same as 2..
4).. Some kind of data HTLC ?
All these methods are unsatisfactory..
It must be off-chain compatible (for a success - with drop down to on-chain on cheat ? May not be worth the fee..).
It must be compatible with multiple hops.
How to lock up data, share it, and guarantee payment on successful delivery.. I see it as very similar to LN.. but a little different..
Anyone have any ideas ?