The client wants to buy from the server the file corresponding to a particular file_id. The following is a very basic scheme solving the problem in a naive way.
- The
filegets chunked into 32-byte chunks. They are hashed into a Merkle root, which is thefile_id. - The client buys from the server one Merkle branch after another via Lightning payments. The payment's preimage is the Merkle leaf.
- Sending 32 MB requires 1 million Lightning transactions. That means equally many signatures.