[ad_1]
Atomically buying digital information with digital forex is an concept that has an extended historical past on this house. Digital items, digital cash, the 2 look like an ideal pairing collectively. Digital items, i.e. info, are additionally huge markets. Take into consideration all of the video, audio, textual content, video games, and different types of digital content material that individuals buy and eat frequently. These are markets value billions and billions of {dollars} that individuals work together with each day.
A lot of the severe makes an attempt at implementing paid file sharing have gone down unhealthy roads. Filecoin was an try to do that on prime of IPFS, however finally the undertaking is absurdly over engineered. BitTorrent (the corporate, not the protocol) was purchased by Justin Solar and built-in its personal cryptocurrency and blockchain. Each of those initiatives have successfully gone nowhere productive, with extraordinarily overengineered techniques on the technical facet, and really doubtful incentives on the financial facet.
BitStream is a proposal by Robin Linus (ever think about slowing down and taking a break Robin?) to aim to handle the necessities of atomicly buying information with out the pointless addition of altcoins and over engineered technical protocols for the change.
All information might be uniquely recognized by a single hash, this can be a crucial element on this scheme. Promoting a file atomically requires encrypting the file utilizing a perform that enables the consumer to confirm what’s encrypted, and after having accomplished so the consumer atomically purchases the encryption key for the file. The issue is the verification course of, and extra importantly proving when you had been cheated and the file decrypts to incorrect information, is pricey. Naively accomplished, you would want to supply your entire encrypted file and the decryption key so others may decrypt it and confirm the decrypted information didn’t match the anticipated hash worth when hashed.
![](https://bitcoinmagazine.com/.image/c_fit%2Ccs_srgb%2Cq_auto:good%2Cw_620/MjAyMjM4MTk5MzQ1NTIxNzMy/tree1.png)
File-sharing techniques like BitTorrent steadily break information up into normal sized chunks and construct a merkle tree out of them, which permits the basis hash to perform as a file identifier in a magnet hyperlink and to confirm every particular person chunk of a file you obtain is a legitimate piece of that file. This can be a property that may be taken benefit of to drastically enhance the effectivity of fraud proofs exhibiting a file distributor cheated you.
The vendor of the file can generate a random worth and use this to encrypt every file chunk utilizing a XOR operation in opposition to that random worth. They will then signal an attestation of the encrypted file root hash and the hash of the encryption worth. The encrypted file tree is ready up in a particular solution to facilitate easy fraud proofs.
![](https://bitcoinmagazine.com/.image/c_fit%2Ccs_srgb%2Cq_auto:good%2Cw_620/MjAyMjM4MjA0MTc3Mjk0MzQ4/tree2.png)
As an alternative of constructing the merkle tree out of simply the conventional file chunks, however encrypted, the tree creates pairs of leaves that consist of 1 encrypted file chunk and the hash of the unencrypted file chunk subsequent to it. Now at this level the client can obtain the encrypted file, and after verifying by taking all the hashes of the unencrypted chunks and making a merkle tree from them to make sure they match the basis hash of the unencrypted file, can atomically buy the decryption worth. That is achieved by the vendor utilizing it because the preimage to an HTLC over the Lightning community or a chaumian ecash mint like Cashu which helps HTLCs.
![](https://bitcoinmagazine.com/.image/c_fit%2Ccs_srgb%2Cq_auto:good%2Cw_620/MjAyMjM4MjEwNjE5NzQ1Mjky/tree3.png)
If the file doesn’t decrypt accurately, both as a result of the encrypted information is a distinct file or the preimage just isn’t the precise encryption key, the merkle path within the encrypted file tree to any two leaves can present the vendor cheated the client. Offering simply the trail to any encrypted file chunk and its corresponding unencrypted chunk hash with the preimage the client bought will show definitively the vendor didn’t present the client with the file they claimed they had been.
Any file vendor utilizing the BitStream protocol can deposit a bond that may be slashed with a fraud proof as designed above in the event that they cheat a buyer. This may be enforced by merely depositing a bond at a chaumian mint within the easiest case. Platforms like Liquid supply various strategies of constructing a bond that may really be enforced trustlessly with performance like OP_CAT. Scripts might be constructed that really take the BitStream fraud proof and validate it on the stack, permitting the creation of a UTXO that will be spendable by anybody who had a legitimate fraud proof. If OP_CAT ever turned accessible on the mainchain, this might even be accomplished fully trustlessly while not having a federated execution setting.
BitStream is an extremely promising protocol for atomically promoting digital info with a really environment friendly scheme for proving fraud, no shitcoins required.
[ad_2]
Source link