<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sculptex on Medium]]></title>
        <description><![CDATA[Stories by Sculptex on Medium]]></description>
        <link>https://medium.com/@sculptex?source=rss-5591639aae4c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*SPLebmwiGopBRz6Dpp0V4A.png</url>
            <title>Stories by Sculptex on Medium</title>
            <link>https://medium.com/@sculptex?source=rss-5591639aae4c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 16:05:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sculptex/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A Hidden Hand?: User Empowerment suppression in Crypto & Blockchain Encryption]]></title>
            <link>https://medium.com/@sculptex/a-hidden-hand-user-empowerment-suppression-in-crypto-blockchain-encryption-5b114724ec65?source=rss-5591639aae4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b114724ec65</guid>
            <category><![CDATA[privacy]]></category>
            <category><![CDATA[solana-network]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[cosmos]]></category>
            <category><![CDATA[polkadot]]></category>
            <dc:creator><![CDATA[Sculptex]]></dc:creator>
            <pubDate>Wed, 02 Apr 2025 10:01:23 GMT</pubDate>
            <atom:updated>2025-04-04T11:01:14.220Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="A Hidden Hand?: User Empowerment suppression in Crypto &amp; Blockchain Encryption" src="https://cdn-images-1.medium.com/max/1024/1*JcQXD7xCti2srB7n4B5X0g.jpeg" /></figure><h3>Introduction [edit]</h3><p>What if the tools that empower blockchain users to communicate privately are being systematically removed—not for security, but for control?</p><p>As a developer exploring encryption across multiple chains, I’ve noticed a troubling trend: user-empowering decryption features are vanishing from major ecosystems. In 2023, <strong>MetaMask</strong> deprecated <strong>eth_decrypt</strong>, citing security concerns that don’t fully add up. <strong>Solana</strong>, <strong>Cosmos Polkadot</strong> lack similar capabilities. I suspect a &quot;hidden hand&quot; is at work, driven by regulatory or commercial pressures, suppressing these features to curb user autonomy. In this article, I’ll explore <strong>MetaMask</strong>’s shaky justification, examine evidence from other chains, and speculate what this means for the future of blockchain.</p><h3>Critiquing the &quot;Same Key&quot; Justification: A Flawed Rationale</h3><p><strong>MetaMask</strong>’s official reason for deprecating <strong>eth_decrypt</strong> in 2023 was straightforward: &quot;The main reason is that it&#39;s not that safe to use the same key for signing and encrypting.&quot; On the surface, this seems reasonable—cryptographic best practices often advocate for key separation. But a closer look at how <strong>eth_decrypt</strong> functioned reveals cracks in this reasoning, suggesting the decision might mask a deeper motive.</p><p>Here’s how it worked: <strong>eth_decrypt</strong> and <strong>eth_getEncryptionPublicKey</strong> relied on asymmetric encryption. A third party could use <strong>eth_getEncryptionPublicKey</strong> to fetch a user’s public encryption key, derived from their Ethereum private key (ECDSA on secp256k1). They could then encrypt data—potentially vast amounts—using this key, e.g. via ECIES (Elliptic Curve Integrated Encryption Scheme). The wallet owner would decrypt it with <strong>eth_decrypt</strong>, using the same private key that signs transactions (e.g., via <strong>eth_signTypedData_v4</strong>). <strong>MetaMask</strong> argued that this dual use could expose the private key, risking account security.</p><p>But this doesn’t hold up under scrutiny. In asymmetric encryption, the public key is meant to be shared—encrypting millions of messages with it doesn’t inherently compromise the private key, provided the scheme (like ECIES) is secure with proper nonce usage and authentication. Decryption with the private key is distinct from signing; it doesn’t generate a public output like a signature does, so the &quot;same key&quot; risk feels overstated. True vulnerabilities—like padding oracle attacks or side-channel leaks—would stem from implementation flaws, not the concept itself. Yet <strong>MetaMask</strong>’s 2023 blog post admitted no known exploits existed. If the risk was theoretical, why axe a feature that enabled private on-chain communication?</p><p>The &quot;same key&quot; argument fits symmetric encryption better, where one key handles both encryption and decryption, amplifying misuse risks. But <strong>eth_decrypt</strong> was asymmetric, making the justification seem misapplied. <strong>MetaMask</strong> pledged support for a new encryption standard, like <strong>EIP-5630</strong> (proposed in 2022 for safer key derivation via <strong>eth_performECDH</strong>), but as of April 2025, it’s still unfinished, leaving developers in the lurch. Was security the real driver, or a convenient excuse?</p><h3>Supporting Evidence from Other Chains: A Pattern of Suppression</h3><p><strong>MetaMask</strong>’s move isn’t an anomaly—it’s part of a wider trend. Let’s explore <strong>Solana</strong>, and <strong>Cosmos</strong> and <strong>Polkadot</strong> to see how they reinforce this pattern, while highlighting the challenges to user empowerment.</p><h4>Solana: Hesitation to Empower</h4><p><strong>Solana</strong>, a high-speed layer-1, offers no native decryption API akin to <strong>eth_decrypt</strong>. A 2022 proposal to add <strong>encryptMessage</strong> and <strong>decryptMessage</strong> to the Wallet-Adapter interface (GitHub issue #323 on anza-xyz/wallet-adapter) stalled—by April 2025, major wallets like <strong>Phantom</strong> and <strong>Solflare</strong> haven’t adopted it. <strong>Solana</strong>’s Token Extensions support confidential transfers with ElGamal encryption, but this is narrow—focused on token amounts, not arbitrary data—and uses separate client-side keys. It sidesteps the &quot;same key&quot; issue but sacrifices versatility, curbing user empowerment.</p><p><strong>Solana</strong>’s reluctance may tie to its enterprise leanings and regulatory heat. Features like Token Extensions cater to compliant players like <strong>Paxos</strong>, while the SEC’s 2023 lawsuits labelling SOL a security could deter privacy tools that invite scrutiny.</p><h4>Cosmos: A Glaring Absence</h4><p><strong>Cosmos</strong>, a hub of interoperability, also lacks a decryption API. <strong>Keplr</strong>, its leading wallet, offers no parallel to <strong>eth_decrypt</strong> or <strong>decryptMessage</strong>. This gap is jarring for a platform championing decentralisation, reinforcing the trend of sidelining user-focused privacy tools.</p><h4>Polkadot: Yet Another Opportunity Missed [edit]</h4><p>After further research, my initial conclusion that <strong>Polkadot</strong> supports similar functionality to <strong>eth_decrypt </strong>via polkadot-js/extension tools has failed to materialise in a working solution. This was a mistake on my part, so we can now include <strong>Polkadot</strong> in the category of failing to empower it’s users.</p><h4>Cross-Chain Trend [edit]</h4><p><strong>MetaMask</strong>’s <strong>eth_decrypt</strong> removal set a tone, echoed by <strong>Solana</strong> and <strong>Cosmos</strong>’s inaction. Across these ecosystems, the scarcity of decryption tools shifts privacy off-chain, complicating user autonomy—a pattern that fuels the &quot;hidden hand&quot; theory.</p><h3>Hidden Hand: Regulatory and Commercial Pressures</h3><p>What’s behind this trend? A &quot;hidden hand&quot;—blending regulatory and commercial forces—seems to be quietly dismantling user-empowering features.</p><h4>Regulatory Climate: A Chilling Effect</h4><p>The 2022 OFAC sanctions on <strong>Tornado Cash</strong> marked privacy tools as liabilities. Features like <strong>eth_decrypt</strong> enable private messaging, potentially clashing with traceability demands. The SEC’s 2023 actions against Coinbase and others, plus the EU’s MiCA rules (effective 2024) mandating KYC/AML, amplify this pressure. Ecosystems may be pre-emptively scaling back to dodge regulatory cross-hairs.</p><h4>Commercial Pressures: Compliance Over Empowerment [edit]</h4><p><strong>MetaMask</strong>, a centralised player, might have axed <strong>eth_decrypt</strong> to appease regulators, cloaking it as a security fix. <strong>Solana</strong>’s enterprise pivot prioritises compliant use cases over user autonomy. <strong>Cosmos</strong> and <strong>Polkadot</strong> have clearly prioritised DeFi over user empowerment tools.</p><h4>Implications for User Autonomy and the Future of Blockchain [edit]</h4><p>This suppression erodes user autonomy. Tools like <strong>eth_decrypt</strong> unlock private on-chain communication—think secure DAO chats or confidential NFTs. Without them, encryption moves off-chain, raising barriers for non-technical users and stifling innovation.</p><h3>Call to Action [edit]</h3><p>The community need to get active in supporting <strong>eth_decrypt </strong>equivalents on their relative platforms. <strong>Solana</strong> to revive its Wallet-Adapter proposal, and press <strong>MetaMask</strong> for <strong>EIP-5630</strong> clarity etc. Users should demand wallets prioritise privacy, keeping blockchain true to its empowering roots.</p><h3>Conclusion [edit]</h3><p><strong>MetaMask</strong>’s &quot;same key&quot; excuse for ditching <strong>eth_decrypt</strong> doesn’t hold water—asymmetric encryption’s design undercuts the claimed risks, especially absent proven exploits. Evidence from <strong>Solana</strong>, <strong>Cosmos</strong> and <strong>Polkadot </strong>reveals a broader suppression of decryption tools, likely driven by regulatory and commercial forces. If blockchain is about user empowerment, why are we losing the tools that deliver it? The hidden hand may be steering us toward control—but the community can steer us back.</p><h4>Update (April 4, 2025):</h4><p>In my original article, I stated that public-key encryption and decryption are possible with <strong>Polkadot</strong> using the <strong>decryptMessage</strong> function from @polkadot/util-crypto. At the time of writing, I believed this to be true based on my understanding of the Polkadot-js ecosystem and references to encryption/decryption in community discussions. However, after a more thorough investigation and attempt at implementation, I’ve discovered that this is not the case. (I have now revised the above article with [edit] at the appropriate points). This discovery further supports my “hidden hand” theory: the lack of decryption support and the lack of transparency around these limitations create significant barriers for developers trying to implement privacy features. It’s a subtle but effective way to discourage the adoption of user-empowering tools, forcing developers to pivot to alternative approaches like symmetric encryption. I apologise for the oversight in my original article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b114724ec65" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Züs BlockChain Initiation — Sharing Secrets Securely]]></title>
            <link>https://medium.com/@sculptex/z%C3%BCs-blockchain-initiation-sharing-secrets-securely-3319f8d096ef?source=rss-5591639aae4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3319f8d096ef</guid>
            <category><![CDATA[data-encryption]]></category>
            <category><![CDATA[data-privacy]]></category>
            <category><![CDATA[distributed-storage]]></category>
            <category><![CDATA[data-security]]></category>
            <category><![CDATA[cloud-storage]]></category>
            <dc:creator><![CDATA[Sculptex]]></dc:creator>
            <pubDate>Thu, 12 Jan 2023 19:30:39 GMT</pubDate>
            <atom:updated>2023-01-12T19:31:59.567Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YWLHXLNbzgHsgwwr5K4uuQ.png" /><figcaption>Züs Proxy Re-encryption Illustration</figcaption></figure><p>Züs is a fast, custom dPoS BlockChain that utilizes Miners (block creation/validation) and Sharders (block storage) for the primary purpose of distributed storage.</p><p>The BlockChain &#39;mainnet&#39; is to launch with a fixed set of Miners and Sharders (Active Set) with plan that a process called &#39;View Change&#39; that will open up the Active Set positions to competition after 12 months. The current Active Set is entered into the BlockChain in a special block called a Magic Block so the most recent Magic Block is always the Active one.</p><p>The Miners require a fast, secure method of verifying each others transactions. This is enabled via A DKG (Distributed Key Generation) process in which each Miner creates a set of Secrets and Shares that enable the fast transaction verification. Naturally, each pair of Miners keeps it&#39;s Secrets and Shares with each other private.</p><p>A public validation of each set of these Miner shares is also included in the Magic Block.</p><h4>The problem</h4><p>So the dilemma is that we can only launch the BlockChain when we have a fully generated Magic Block (the genesis block 0 requires this Magic Block), but until all Miners have completed this DKG process, the Magic Block cannot be generated!</p><p>We required a Solution that would:-<br>a) Allow Miners Private Key information to be shared in a secure Manner (at differing times of day)<br>b) Allow verification of shares (authtickets) and manual filtering/blacklisting of candidate shares to ensure only eligible parties are included<br>c) Collate all keys together and perform DKG and Magic Block generation in one go<br>d) Return DKG information, along with the Magic Block to each Miner (secure and private)<br>e) Be contained, lightweight and &#39;disposable&#39; so that no trusted entity or source of compromise remain after the process has been run.<br>f) Create audit trail of above process for future scrutiny that excludes the private information.</p><h4>The solution</h4><p>a) Proxy Re-Encryption<br>As part of the storage layer of our BlockChain, we already have a facility for Private Sharing called Proxy Re-Encryption.</p><p>Users storing data on Züs have the option to encrypt their data. The Proxy Re-Encryption facility allows each user to share their encrypted data with target user (wallet), the storage nodes (Blobbers) never gain access the decrypted data, instead they re-encrypt the data to the Target Wallets key via a combination of share keys provided by the Owner and the Target. The target Wallet Owner is then able to decrypt the data using their own Private Key.</p><p>So we utilize our Proxy Re-Encryption function on a testnet and the Miners Operational Wallets share their secrets to a Master Wallet which will be the only other Wallet that can decrypt the shared data.</p><p>The shares are safe to perform via a centralized, public server, since nobody except the Operational Wallets and Master Wallet will be able to decrypt them.</p><p>(A separate article describing Proxy Re-Encryption in more detail can be found <a href="https://link.medium.com/eLOMLJpixwb">here</a>).</p><p>b) All the shares (authtickets) can be verified to ensure they appear valid, both originating from the same Miner Operational Wallet as defined in the authticket itself and also encrypted and shared to the defined Master wallet. These checks can be performed without actually downloading the data that that the authticket points to.</p><p>Any ineligible shares can be added to a blacklist and excluded from further processing</p><p>c) Once all shares have been received and passed verification, the Actual DKG/Magic Block process can be performed.</p><p>d) Since the Master Wallet will temporarily have access the the Miner Wallet, the resultant data needs to securely be shared back to the Miner Operational Wallets.<br>i) The Private Key can be used to encrypt the DKG data to send back to the Miner Operational Wallets. (Network can be destroyed as soon as shares sent).<br>ii) Alternatively, the PRE process can be performed in reverse (from Master Wallet to Miner Operational Wallets)(Network can be destroyed once all shares read).</p><p>Both methods have been implemented.</p><p>e) As soon as the encrypted data has been shared back, the Master wallet and all the results from the DKG/Magic Block can be destroyed. For Mainnet, the process will probably be performed in an encrypted VM then destroyed and overwritten.</p><p>f) An audit trail of the whole process can be generated, including all public information, (and even a video of the process!). The reading of the authtickets itself creates a record on the BlockChain. This detail can also be preserved to verify that the data was only read by the Master Wallet.</p><p>Once all required shares have been read and audit trail obtained, the testnet used for the PRE process can be taken down.</p><h4>Züs Pre-Mainnet</h4><p>For our Pre-Mainnet launch on 15th December 2022, all the essential elements above were present. The exceptions were that the Master Wallet keys were available to Devs and as such the process wasn’t contained.</p><p>Due to a delay with all files getting written at the end of the Magic Block process, (because the process is run in a dockerized container), there were problems with the initial launch schedule.</p><p>Frustratingly, this lag in files being written was not observed in earlier magic block runs, and only manifested when this run including a much larger set of miners than previous was performed.</p><p>Once this issue was diagnosed, a delay was added after the docker process and the script set to re-run.</p><p>Unfortunately, a human error in clearing down the previous shares (deleting root folder instead of subfolder!), delayed the process further as the server had to be rebuilt.</p><p>Interestingly, the data that the Miner Operational Wallets had shared was still on the network and was simply able to be re-fetched, rather than have to repeat the whole process from scratch (which would have required all the Miners to re-submit their keys).</p><p>As an additional security measure, Miner IDs from previous runs will be retained and added to the blacklist. This will help ensure that Miners have successfully regenerated fresh keys for Mainnet since previous keys have been compromised.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3319f8d096ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sharing Secrets Securely — Proxy Re-Encryption]]></title>
            <link>https://medium.com/@sculptex/sharing-secrets-securely-proxy-re-encryption-58b2a315e086?source=rss-5591639aae4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/58b2a315e086</guid>
            <dc:creator><![CDATA[Sculptex]]></dc:creator>
            <pubDate>Thu, 12 Jan 2023 19:28:22 GMT</pubDate>
            <atom:updated>2023-01-12T20:01:58.957Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CW5J_c2u7hBBccd0V1yniw.png" /><figcaption>Proxy Re-Encryption Illustration</figcaption></figure><p>It&#39;s a long-standing problem in computing how Data Owners can store files securely that can then be easily shared to specific Target Recipients. While encryption itself is trivial, it&#39;s the sharing of secrets/keys that still poses a problem. Most available apps and apparent solutions are actually dependent on a trusted 3rd party.</p><p>Asymmetrical Encryption methods such as PGP derivatives and RSA allow Encrypted shares directly to a target user via their Public Key, however the drawback of this is that files need to be individually encrypted for each specific Recipient.</p><p>Symmetric Encryption methods such as AES require a common Encryption Key and Owners obviously don&#39;t want to share their Master Private Key, so sometimes Derivative Keys are used for such purposes, but for each different share, different Derivative Keys must be used else one Target Recipient could decrypt another Target Recipients data.</p><p>BOTH these Encryption methods require owner to re-encrypt data for specific Target Recipients, this is both time-consuming and incredibly wasteful of storage and resources in case of multiple shares.</p><p>It seems that the ultimate solution would be one that allows encrypted data to be shared, but without need for a trusted 3rd party or exposing the encryption keys.</p><h4>Proxy Re-Encryption</h4><p>This is the term given to technology that allows a 3rd party to re-encrypt already encrypted data from one set of encryption keys to another without the data being decrypted by that 3rd party.</p><p>Key features of a Proxy Re-Encryption system are:-</p><ul><li>Owner encrypts a single instance of their data using their Private Key and makes that encrypted data accessible to 3rd party.</li><li>Owner never compromises their own Private Key.</li><li>Target (recipient) that the owner wishes to share with need to provide their Public Key and Re-Encryption Key that corresponds to it.</li><li>Owner generates a Re-Encryption Share Key that corresponds to the Keys provided by the Target.</li><li>3rd party Re-Encrypts data on-the-fly using relevant Keys and serves to Target.</li><li>All such Key exchanges can be public/sent via insecure channels.</li><li>The stored data with 3rd party itself is already encrypted and as such doesn’t need to be kept private.</li></ul><h4>Züs Cloud Network Proxy Re-Encryption</h4><p>Using a fast Blockchain and distributed set of storage providers (Blobbers), Züs already utilizes Erasure Coding for High Efficiency Cloud Storage, offering high data redundancy with minimal storage overhead. (Typical example, EC 10/15 tolerates up 5 points of failure from 15 storage providers with only 50% increase of data. Compare with 500% increase with replication).</p><p>Züs gives users (Data Owners) option whether they want data to be encrypted or not and of course needed a method to share Encrypted data without compromising Owner Keys.</p><p>Using advance Cryptographic technologies Owners use their Wallet Keys to form storage contracts with Blobbers, then Upload and Manage Storage with individual file-level control over Encryption. They can choose to share specific encrypted files with a chosen target Wallet and are able to share the resultant share code (authticket) via insecure channels with the assurance that only the owners and target are able to access the encrypted data.</p><p>The Blobbers (acting as the 3rd party Proxies in this scenario) Re-Encrypt their chunk of the data (remember data is Erasure-Coded) and serve to the Target, the Target then reconstructs the data when sufficient Blobbers have served their chunks. They are then able to decrypt the data using their own Keys!</p><p>If this all sounds complicated, fortunately there are comprehensive tools already created that manage all this for you.</p><p>I have prepared a simple demo to showcase this process using the CLI toolset with video and accompanying scripts:-<br><a href="https://github.com/sculptex/zcndemos">https://github.com/sculptex/zcndemos</a></p><p>And here are the official repositories for the CLI tools:-<br><a href="https://github.com/0chain/zboxcli">https://github.com/0chain/zboxcli</a><br><a href="https://github.com/0chain/zwalletcli">https://github.com/0chain/zwalletcli</a></p><p>And the good news is you can use this technology now! Until the mainnet is launched, there are testnets available as per demo above.</p><p>A related article explaining how Züs used our Proxy Re-Encryption feature to solve our BlockChain initiation dilemma can be found <a href="https://link.medium.com/TajDItzixwb">here</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58b2a315e086" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Storing PI (part 1)]]></title>
            <link>https://medium.com/@sculptex/storing-pi-part-1-eae25f73c518?source=rss-5591639aae4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/eae25f73c518</guid>
            <category><![CDATA[arweave]]></category>
            <category><![CDATA[storj]]></category>
            <category><![CDATA[0chain]]></category>
            <category><![CDATA[ia]]></category>
            <category><![CDATA[distributed-storage]]></category>
            <dc:creator><![CDATA[Sculptex]]></dc:creator>
            <pubDate>Sat, 17 Jul 2021 15:50:57 GMT</pubDate>
            <atom:updated>2021-07-18T19:00:18.220Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*-gzbfdBlEzjR2Jcs_KkL0g.jpeg" /></figure><p>aka &quot;My quest to evaluate distributed storage options for storage and retrieval of the digits of PI&quot;.</p><p>A mathematical enigma for millennia, the ratio between the circumference of a circle and it’s diameter (3.14159….) will no doubt continue to be a source of fascination for generations to come.</p><p>Although the useful accuracy of this constant (as far as calculations using it is concerned) is probably no more than 10–20 digits, the use of its calculation to a much higher accuracy as a verifiable test of computing power will likely remain popular for some time yet.</p><p>Technical uses for the digits range from benchmarking to randomness research while novelty uses of the digits range from works of art to creation of music!</p><h4>50 Trillion digits..</h4><p>The current world record for the number of decimal digits of PI calculated stands at <a href="https://blog.timothymullican.com/calculating-pi-my-attempt-breaking-pi-record">50 trillion</a>! This took around 9 months using software called <a href="http://www.numberworld.org/y-cruncher/">y-cruncher</a> on a pretty hefty server with large amounts of local storage.</p><p>Although I was intrigued to see if distributed storage might be helpful in storing some of the raw data while it is being calculated (this raw storage requirement is several times larger than the result), it turns out that with y-cruncher (and most likely any other software that might get developed), storage access is the main bottleneck in calculations, so even though distributed storage can be fast (due to downloading chunks in parallel), it would only become a viable option if the network is significantly faster than the local storage.</p><p>However, already calculated digits are certainly a prime candidate for distributed storage, particularly since the storage required to store 50trillion+ digits (20TB+) is now starting to exceed the maximum HDD capacities readily available.</p><h4>How PI digits are currently stored</h4><p>Obviously having all the digits in one massive file isn’t very portable. So it makes sense to split ranges of digits into separate files. This is exactly what y-cruncher software does.</p><p>Since the calculation is done in binary, the most efficient way to store it is natively and in fact this is one of the options (to store in hex format).</p><p>But since we typically want the digits in decimal, it is not possible to just access a random chunk of hex/binary digits and convert them to decimal, they need to be converted in a batch, so it makes sense to store them in decimal format if that’s how they are to be retrieved.</p><p>Storing each single (0–9) digit per byte (0–255) would be incredibly wasteful (only 41.52% efficiency). So y-cruncher employs its own compression method to pack 19 decimal digits in a 64-bit (8-byte) chunk which is 98.62% efficient. (I would have chosen to pack 12 decimal digits in each 40-bit (5-byte) chunk to achieve 99.66% efficiency but maybe there was another reason it was more optimal to have 8-byte aligned chunks).</p><h4>Obtaining the digits</h4><p>Fortunately, Google have a website (<a href="https://pi.delivery/">pi.delivery</a>) dedicated to many things PI, including some novelty uses and serving the digits via an API. It also offers a mirror of the y-cruncher generated files in 1trillion digit sized chunks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*FnRD6JCoT5ZZlaksGKUocA.jpeg" /></figure><p>Unfortunately, neither the API (which is limited to 1,000 digits at a time) nor the y-cruncher 1trillion digit compressed files (over 400GB each!) are particularly useful for users who want to be able to extract moderate chunks of digits easily which is one of my reasons for exploring this project!</p><h4>Storing the digits</h4><p>Before we can consider sharing the digits to potential distributed storage platforms it would be prudent to first collate the digits into one place. As stated, the 50 Trillion digits exceed the storage capacity of 20TB HDDs even in compressed form, so we need to either use multiple HDDs for different ranges of digits or preferably a RAID array to give one larger addressable storage volume. An additional benefit of RAID is that it can offer protection from data loss/corruption when a parity configuration is chosen so that is the option I have used.</p><p>Once downloaded, I can decide if I want to first re-encode the digits into smaller files or a different file format before committing them to distributed storage.</p><h4>So what next?</h4><p>As I write, I am still partway through downloading the digits. At over 20TB, I expect this will take several days with a 1Gb/s connection.</p><p>In part 2, I’ll be looking at the raw data once it’s been downloaded and decide how to proceed from there including which distributed storage platforms to consider.</p><p>I am already familiar with 0chain, Sia &amp; Storj plus very basic experience of Arweave, IPFS &amp; Filecoin but will also consider other platforms if deemed suitable.</p><h4>About the author</h4><p>I am an Ambassador and Head of IT for 0chain project. I have long since been a distributed storage enthusiast, having previously written several articles related to this subject.</p><p>(EDIT: 18th July - corrected the decimal digit efficiency figures)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eae25f73c518" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A year as a Storage Provider on Sia and Storj networks]]></title>
            <link>https://medium.com/@sculptex/a-year-as-a-storage-provider-on-sia-and-storj-networks-b8e00be49d5a?source=rss-5591639aae4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8e00be49d5a</guid>
            <category><![CDATA[distributed-storage]]></category>
            <category><![CDATA[storage]]></category>
            <category><![CDATA[storj]]></category>
            <category><![CDATA[sia]]></category>
            <category><![CDATA[blockchain-technology]]></category>
            <dc:creator><![CDATA[Sculptex]]></dc:creator>
            <pubDate>Tue, 02 Feb 2021 22:19:46 GMT</pubDate>
            <atom:updated>2021-02-03T17:29:52.353Z</atom:updated>
            <content:encoded><![CDATA[<p>Having already written articles <a href="https://link.medium.com/pjOPOXTEydb">comparing various Distributed Storage platforms</a>, and <a href="https://link.medium.com/IsFSHUiFydb">a two-month evaluation of Sia from the renting perspective</a>, I decided to experience being a Storage Provider to evaluate that side of both platforms to be able to give a fair overall evaluation.</p><p>In mid-2019 I had deployed a Server to handle my own varied storage requirements. In December 2019, I set about using some of the spare capacity to become a host on both Sia and Storj platforms.</p><p>I varied storage capacity (and pricing on Sia) throughout 2020, so I will attempt to take this into account and give an average overall picture.</p><p>Disclosure: I am an Ambassador for the 0chain project (which is currently in its betanet phase). I plan to use this very server when the mainnet goes live.</p><h3>Sia</h3><p>Running since 2015, Sia was really the first working Distributed Storage platform.</p><h4>Requirements</h4><p>Sia requires that Storage Providers commit &#39;collateral’ in its native SiaCoin to show commitment to their Service Provision. It aims to use spare capacity on Personal Computers and Servers around the world. There is generally a modest hardware (CPU/RAM) requirement, however, the entire Blockchain &#39;consensus&#39; needs to be downloaded before you can start hosting. This process is CPU intensive, as the consensus now exceeds 20GB and can take hours or days to sync depending on connection speed, drive speed and CPU power.</p><h4>Storage Capacity and Pricing</h4><p>Initially I set my Storage prices low, a little below what was calculated to be the average, wanting to experience having storage utilized and gaining a good reputation. I also used the recommended 2x collateral.</p><h4>My Performance on the network</h4><p>As you can see by the comment from one of the Sia founders, my host has always been one of the best if not the best performing host on the entire network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*qyGkaYji2EcaPNOAKz-jhw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bZeJAPESvmwZv9Jj1wFiYA.jpeg" /></figure><p>After a few months, the first partition I was using for Sia was getting full, so I added additional spare storage in a couple of other partitions.</p><p>A month or two later, these were also filling up and by now I had served thousands of contracts with zero failures. I decided to reduce the sizes of these other storage partitions.</p><p>At this point, I started getting several failed contracts. I checked in the Sia discord community, but it seemed that it was acknowledged there were some bugs that were hard to diagnose and since they were small amounts, I didn’t worry about them. However, after a while, some large contracts started failing, and because my collateral ratio was 2x, I was losing double my potential earnings so I had to do something about it.</p><p>After consulting the Sia community discord, I decided to stop accepting storage contracts, but stayed online in order to fulfill the remaining contracts, otherwise I would lose the collateral from those too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*68PzJclJTbaPGPmF-Q27WQ.jpeg" /></figure><p>As you can see from the chart, my used storage declined until early October. I also had some downtime because Sia had crashed and I did not notice.</p><p>I then started from scratch with a brand-new node and wallet. (this time choosing an equal collateral). However the IP address is the same so the stats graphs look like a continuation of service.</p><p>I had more downtime later in October. Interestingly I didn’t notice any failed contracts because it was a new node, maybe none expired during this downtime.</p><p>This actually illustrates a weakness of the Sia protocol, providers can go offline for the bulk of a contract then come back online and collect the storage fee when the contract ends. They lose potential read fees during this time of course, but in the meantime the client will have had to form new contracts with other hosts to maintain the desired EC ratio.</p><p>Within a few weeks, my node was getting full again, so I decided to just increase my prices. I expected a sharp drop in new contracts, but they continued to climb. I increased twice more, even without increasing collateral. Amazingly, even after massively increasing prices I still got some new contracts! However, the rate did decline sharply as contracts expired and decided not to renew.</p><p>This illustrates the drastic shortage of decent hosts on the Sia network. My node should not get selected for any new contracts with such a huge cost with such tiny collateral.</p><h4>Drawing 2020 to a close</h4><p>In December I got banned from Sia Discord for expressing my views about an unrelated subject. It looks like I am not the only one though, RBZL, a veteran Sia community member and creator of SiaSetup.info was also banned for expressing his opinions about Sia. Read :- https://siasetup.info/concerns-about-sia-and-skynet for more info.</p><p>This ended my interest in the Sia project.</p><h4>Earning Summary for 2020</h4><p>Average Storage: 5TB</p><p>Total Earnings: 30,000 SC ($100) estimated</p><p>Average Earning/TB/mo: $1.70</p><p>(As previously stated, the earnings could have been much higher if I had priced more aggressively)</p><h3>Storj</h3><p>With Storj, the prices are fixed. The determination of which hosts are used is done by centralised entities, called satellites. I do not know the criteria but assume good performing hosts are favoured.</p><p>No collateral is required to host, but a portion of rewards are held back in escrow, decreasing with time, (mentioned later).</p><p>For most of the year, my Storj host offered over 5TB of storage. It took a few months for this to get filled.</p><p>When a host becomes full, the ingress naturally falls off. In June, I took the opportunity to try the Graceful Exit (GE) procedure. (There are other reasons mentioned later).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*ykv3p0-IzMBc3sx3PiLAZw.png" /></figure><p>As you can see, over 80% of my data was on test satellites (Stefan-Benten, Saltlake and Europe-North).</p><p>So, I started with the Stefan Benten satellite in Europe as that was a test satellite that would soon be discontinued anyway. The GE only took a few days and was completely successful.</p><p>I then GE’d the Asia East and US Central satellites. The Asia worked without issue, but the US Central failed even though it had an audit of 100%. (I have not investigated this because the held amount held is small anyway).</p><p>I then decided to GE from Saltlake in early September. This is another test satellite and used by far the most storage. The GE took over 6 weeks but was eventually successful. For November and December, I reduced the capacity to 2.5TB because I knew the two remaining satellites would take a while to fill the space vacated by Saltlake.</p><p>Average Storage used: 4TB</p><p>Total earnings: $220 (appx 500 STORJ)</p><p>Average Earning/TB/mo: $5</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*YJU122FSzUD2BCfpq4mvKA.png" /></figure><p>This is actually better than I was expecting. Even though the egress is typically only around 10%, since it is 13.3x more profitable than storage, the egress made the lion’s share of the earnings. But before you rush out and buy hard disks, allow me to elaborate.</p><h4>The first issue..</h4><p>These figures also include ‘Surge payments’. These are arbitrary amounts that were devised to be paid to hosts. These were awarded in January, March, April and November and equated to around a quarter of the earnings. So, excluding these, the average would have been around $3.75TB/mo.</p><h4>The big issue..</h4><p>The vast majority of data on the Storj network still appears to be test data. Although testing is crucial, this level is not sustainable. When I started Gracefully Exiting in June, around 80% of data was on the rest satellites.</p><p>Since then, I do not have a true picture on my node because I am only on some of the satellites. However, I believe the ratio to still be around the same, looking at the forums and also a discussion I had on a discord group.</p><h4>Some additional points</h4><ol><li>It takes time to get vetted. You won’t get a lot if data during this period. I am sure this only took me a couple of weeks but the latest I’ve read is that it currently takes a couple of months.</li><li>If it were not for the fact that I Gracefully Exited some of the satellites, there would be significantly more still held back. A percentage is held in escrow. *Correction* The percentage held back starts at 75% and decreases by 25% every 3 months. (Half of this rolled forward amount is returned after 15months). When you Gracefully Exit, you get your held escrow amount back from that satellite. The default minimum period is 15 months before you can Gracefully Exit, it is temporarily reduced to 6 months, so all this was another reason I chose to Gracefully Exit some satellites. Additionally, for each new satellite, your count starts from zero to when you are able to GE.</li><li>One of my Graceful Exits failed. As I stated, I have not investigated as the amount was small. Others in the forums have had to produce all sorts of logs to try to investigate when this happened to them. The general consensus last time I looked was that Graceful Exit is still not a risk-free procedure.</li><li>Storj payments are monthly and via it’s ERC20 Storj token. Three times since mid 2020, Storj have changed the rules regarding disbursements, mainly because of high ETH gas fees. Many people falling below their threshold (including my December payment) are rolled forward indefinitely until the threshold is met. This is particularly detrimental to those who considered committing a relatively small amount of storage.</li></ol><h3>Summary</h3><p>Although both platforms offer an opportunity for people with spare storage to earn some money from it, neither platform gives me the confidence that it could turn a profit long-term. However, they still remain viable for spare existing storage.</p><p>Most would not argue with this about Sia, as it has always maintained not to invest in new hardware as that would likely never turn a profit.</p><p>However, I suspect that some Storj providers may argue that they are happy with the income that their host(s) generate. I would ask them to reconsider in light of the following:-</p><ul><li>As described above, test data rate is completely unsustainable.</li><li>Surge Payments also give a false impression of real income.</li><li>Hard Disks are obviously the most reliable when new. When disks start failing and potentially held escrow funds are forefeit, will it still work out worthwhile? (Storj is very tolerant of downtime but intolerant of Data Integrity Failure.)</li></ul><h3>Conclusion</h3><p>These two platforms have failed to realize the full potential of distributed storage. By not having sensible measures to ensure and reward high quality hosts, high EC ratios have been required to offset the host churn and no efficiency has been gained over typical DC triplication of data.</p><p>Sia, due to longstanding, unfixed errors and Storj due to a lack of transparency have failed their loyal followers, many of whom run hosts much more for the community than for any hope of ever turning a profit.</p><h4>Fortunately, there is an alternative.</h4><p>High quality hosts are welcome to consider joining the 0chain network.</p><p>Through true decentralization with high efficiency and advanced protocols, hosts can expect a reward that reflects their true performance on the network.</p><p>Poor quality hosts need not apply.</p><h4>Footnote</h4><p>Please read my previous article <a href="https://link.medium.com/pjOPOXTEydb">comparing various Distributed Storage platforms</a> if you haven’t already for further key differences between these platforms.</p><p>No doubt I will be criticised and accused of writing this solely for benefit of 0chain. I did all this research off my own back and was not paid anything for it.</p><p>The reason I conclude that 0chain is better is for reasons described. I believe that 0chain protocols and tokenomics are so much more efficient than either Storj or Sia, and that’s not even mentioning other superior technology like private sharing through Proxy Re-Encryption.</p><p>I welcome feedback and will publish corrections if I have stated anything shown to be inaccurate, but please stick to facts and not misplaced loyalty in an inferior technology.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8e00be49d5a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Media Streaming with Distributed Storage]]></title>
            <link>https://medium.com/@sculptex/media-streaming-with-distributed-storage-197cfd52cf86?source=rss-5591639aae4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/197cfd52cf86</guid>
            <category><![CDATA[blockchain-development]]></category>
            <category><![CDATA[cloud-storage]]></category>
            <category><![CDATA[streaming-video]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[0chain]]></category>
            <dc:creator><![CDATA[Sculptex]]></dc:creator>
            <pubDate>Wed, 25 Nov 2020 23:37:57 GMT</pubDate>
            <atom:updated>2020-11-26T13:50:14.003Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IWkZT5vDIZL29766iy_6rw.jpeg" /></figure><p>There are several Distributed Storage Solutions offerings many benefits over Cloud offerings. I have previously written <a href="https://link.medium.com/ab48LQ1IpZ">an article about some benefits of distributed storage</a>. I also wrote <a href="https://link.medium.com/k4mQbHYkXab">an article comparing efficiency and features of various distributed platforms</a>.</p><p>One potential disadvantage compared to Cloud however, is because of additional complexities introduced by ‘Sharding’ or Erasure Coding (EC) of data used by some solutions, it is no longer so easy to share public data or in particular media files as there needs to be a middle layer to process and serve the files.</p><p>This becomes particularly prevalent when having to serve large media files. In most cases, the entire file needs to be downloaded and reconstructed from the parts respective storage hosts before the file can begin to be &#39;served’ to the user.</p><h3>The nature of (streaming) media files</h3><p>Because media files are relatively large, modern browsers and protocols allow media files to start playing when only a small segment of the media file has been downloaded. They also allow skipping forward to partway through a track.</p><p>All the while, the data expected to play in the next few seconds or even minutes is buffered in advance to the user experiences a smooth, uninterrupted playback experience.</p><p>While certain protocols such as HLS effectively split a video stream into small separate segments (files), this requires a CPU intensive conversion process and therefore adds another layer of complexity.</p><p>While this remains an option for some situations, providing the file uses a modern media format my main area of focus is to serve the original file in the most efficient manner without such processing.</p><h3>HTML5 Browser Media Streaming</h3><p>So first I had to discover how browsers request the required chunks of video when using a &lt;video&gt; element. The initial handshake is usually a partial request with and open-ended range (so byte range 0-). (An exception is Apple devices. They request the first 2 bytes (bytes 0–1). It seems that you actually need to return exactly these 2 bytes for them to be happy, after that it seems to behave like all other platforms).</p><p>This initial request has multiple purposes:-</p><ol><li>The response header should specify the full file size, so this may influence subsequent data requests.</li><li>It would also usually return an initial chunk of data.</li><li>The method and speed of response if the initial chunk of data *may* also influence subsequent data requests.</li><li>This initial chunk of data may contain metadata, bit-rate etc. which may also influence subsequent data requests.</li></ol><p>So a typical scenario (responses aligned with 128kB chunks):-</p><p>[Browser] Requests bytes 0-</p><p>[Server] Response (partial) bytes 0–131071 file size 1234567</p><p>[Browser] Requests bytes 131072–1234566</p><p>(So at this point, particularly if the file is small, it will request the entire remainder of the file, but it is happy with whatever chunk size we give)</p><p>[Server] Response (partial) bytes 131072–262143</p><p>[Browser] Requests bytes 262144–1234566</p><p>(as you can see it just keeps requesting subsequent chunks after the last byte given. Of course if someone skips ahead on the track the request would start from a random point e.g.)</p><p>[Browser] Requests bytes 946888–1234566</p><p>(I might respond to this with another chunk-end aligned response)</p><p>[Server] Response (partial) bytes 946888–1048575</p><p>So understanding this forms the basis of serving file chunks. I had thought that I would need to serve awkward byte ranges but in all my testing, apart from Apple requiring just the initial 2 bytes, it seems happy with the ranges I provided!</p><h3>The Problem using Distributed Storage for Media Streaming</h3><p>So how can distributed storage platforms hope to serve media files in this way?</p><p>Storj’s approach is that you either need to serve the files in entirety yourself, or you share them via its (centralised) website.</p><p>Arweave, Filecoin and some others don’t shard/EC their files in the first place so rely on pure replication. I have been unable to test any of these.</p><p>In the case of media files, Sia Skynet also takes this approach, dispensing with the storage efficiency of Sharding data and instead resorting to Replication of data.</p><p>All the above platforms require the file in its entirety before it can be served. You will likely be paying for the full file even in the event you require a small part of it. Of course once the entire file is retrieved, standard server software itself (Apache, NGINX) will handle the partial file serving for you.</p><p>But considering many videos are not watched in their entirety, the larger the video, the more inefficient this becomes.</p><p>0Chain however, aims to offer the best of both worlds. While maintaining its EC efficiency, it allows partial downloads of files (chunks) at a time. I have utilised this functionality to implement a media server that downloads requisite chunks of a video from a provided authticket.</p><h3>How 0Chain can provide a solution</h3><p>Let’s look at the demo in action first, then I will explain my approach. There are a few sample videos you can select.</p><p><a href="https://test.zcdn.uk/">https://test.zcdn.uk/</a></p><p>The method is simple. The chunk sizes are aligned to the chunk sizes of the storage allocation that the files are returned from. The EC ratio is totally configurable on 0chain, (unlike most other platforms) and in the example, my EC ratio is 6+2, (6 data + 2 parity). So each reconstructed chunk is constructed from 6 x 64kB Blobber chunks, giving a serveable chunk size of 384kB. (I have also allowed the ability to use larger chunk sizes by requesting multiple chunks at a time. This is done by allowing the minimum number of blocks per chunk, but it always rounds up to be a multiple of the serveable chunk size).</p><p>So as you can see, I have added a status monitor for the purpose of seeing how the chunks are being served in advance to your browser. It requests chunks until it has at least typically a minute or so in its buffer then periodically, when it drops below say 30 seconds it requests a few more chunks to maintain the buffer.</p><p>Of course, if you skip ahead, there will be a slight delay while the appropriate chunks are requested and fetched.</p><p>I have also built a basic cache facility into this and each file chunk is retained for a few minutes on the server before being deleted. You see can in the status monitor what chunks are already cached on my server (from a previous visitor) and which are being freshly downloaded in real-time.</p><h3>About the 0Chain Media Server</h3><p>This Media Server was written in PHP (although I hope it will also get ported to Golang). It also requires the zboxcli tools and sufficient user permissions for that user to execute commands and also write files to relevant paths. I will be releasing the code on GitHub with some documentation.</p><p>It first decodes a provided authticket. The gives the file and allocation information plus the hash of the original file. It’s saves this by a cache of a hash of the authticket itself.</p><p>If required, it then requests from the network the metadata of the file. This includes the original file size and mime type and file hash. It stores a cache of the metadata by the file hash avoiding the need for subsequent requests.</p><p>If required, it also also requests the allocation data for the file including EC settings, so that the file chunk size can be determined. Again, this data is saved via a hash reference so only needs to be obtained once.</p><p>Then it just calculates the chunk that the initial byte of the requested range falls within. If it has not already got that chunk cached, it retrieves it from the Blobbers (Storage Nodes). It then serves the chunk with appropriate (partial) headers.</p><p>Of course, this is just a Proof Of Concept project, but could easily act as the basis for a fully-fledged Content Delivery Network. By intelligently adjusting the cache duration you could easily balance this to serve a huge amount of media files with very limited storage. Regional CDN instances could be set up for maximum distribution.</p><h3>Portability of this method</h3><p>This approach wouldn’t work on any of the other distributed platforms mentioned because none of them allow partial downloads.</p><p>A potential workaround would be to split the media files into chunks beforehand but then you have introduced a processing layer and you can’t just play them as normal, but there could be applications where this is appropriate.</p><h3>Conclusion</h3><p>So even though its not quite as easy as having the entire file, I hope that I have demonstrated that this particular use case (that normally would be an argument against using a distributed storage platform) can be achieved in a very efficient manner by harnessing excellent flexibility of the 0chain protocol.</p><h3>Update</h3><p>Published basic PHP code on Github</p><p>https://github.com/sculptex/php0chainmediaserver</p><p>NOTE: Player with stats and chunk cache deletion facility etc. featured in demo are not part of this repo.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=197cfd52cf86" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Distributed Storage Comparison]]></title>
            <link>https://medium.com/@sculptex/distributed-storage-comparison-7c1b46ed480a?source=rss-5591639aae4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c1b46ed480a</guid>
            <category><![CDATA[storj]]></category>
            <category><![CDATA[storage]]></category>
            <category><![CDATA[0chain]]></category>
            <category><![CDATA[filecoin]]></category>
            <category><![CDATA[ia]]></category>
            <dc:creator><![CDATA[Sculptex]]></dc:creator>
            <pubDate>Tue, 11 Aug 2020 21:11:40 GMT</pubDate>
            <atom:updated>2020-08-11T21:36:46.770Z</atom:updated>
            <content:encoded><![CDATA[<p>Following on from my previous articles (see references at bottom) extolling the virtues of distributed storage (vs cloud), I have prepared a matrix comparing the key features of the leading technologies, followed by a brief explanation of the reasoning behind my analysis and some specific characteristics of each platform and my conclusion.</p><h4>The Comparison Matrix</h4><p>Click <a href="https://zcdn.uk/wp-content/uploads/2020/08/DistributedStorageComparisonV1.pdf"><strong>HERE</strong></a> to download the Matrix (PDF Document)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*JmzNEdAHVRPAW_kv-xOLcg.jpeg" /></figure><h4>The Contenders</h4><p>AWS (for comparison purposes), Filecoin, Sia, Storj &amp; 0Chain.</p><h4>General</h4><p>Distributed storage has the potential to achieve the goal of making data globally accessible with much more reliability than centralized cloud solutions. Some of the platforms analysed here also offer the possibility of increased efficiency compared with the typical replication used by cloud providers. Perhaps most importantly, where native encryption is available, the user gains total control of their data, not even the providers can access the data without the users private keys.</p><p>My aim with this comparison is to highlight the key features of each platform, including elements such as hardware requirements.</p><p>I think hardware requirements is an often overlooked area. There is a theory that spare storage on personal computers around the world could be harnessed as an efficient solution to provide distributed storage. I hope this will shed light on whether this is a reality or not. Having high hardware requirements for the mining/blockchain element negates this potential efficiency and high hardware requirements for client software may inhibit easy adoption and make mobile or web apps unfeasible.</p><p>I have kept price details very vague. There are so many aspects, direct comparison is probably not fair, however a follow up when platforms are more established is certainly on the cards. This includes on the mining/storage/service provider side.</p><p>Here are some specifics about each platform:-</p><h4>AWS (Amazon Web Services)</h4><p>The undisputed King of Cloud, AWS now boasts the lions share of Amazons revenue. The established S3 storage protocols form the de facto industry standard. Among the main criticisms of AWS S3 storage include:-</p><ul><li>Security concerns</li><li>Escalating costs for egress (it is cheap to upload / store data but many times more expensive to retrieve it)</li><li>Service Outages and SLA inadequacy (SLA T&amp;Cs plus poor compensation credit)</li></ul><p>AWS is used as the basis of comparison with distributed providers.</p><p>I have done minimal testing using a AWS instance since its characteristics are already well documented.</p><h4>Filecoin</h4><p>Built on top of IPFS, Filecoin aims to add an incentive/reward layer to the established platform.</p><p>Its hardware requirements are incredibly high and its main focus is publicly accessible data via replication. Although the WPs allow for it, there is currently no implement of encryption or data sharding that the other distributed offerings here utilize for security and efficiency.</p><p>I have been unable to achieve any meaningful testing on this platform to date but have been able to collate information from the website and community resources.</p><h4>Sia</h4><p>Sia is the oldest distributed storage platform listed. It aims to utilize spare capacity from computers around the world.</p><p>It requires custom ASICs for its miners and also requires a full blockchain sync for clients which is a significant barrier to adoption.</p><p>I have extensively tested this platform both hosting and renting. Storage is relatively cheap but poor quality hosts cause significant node churn.</p><h4>Storj</h4><p>Now on v3 of its network, the 2nd version had a huge following but failed due to its inability to scale.</p><p>Although data is distributed, Storj totally relies on centralized satellites and the Tardigrade client access relies heavily on websites. It utilizes an Ethereum ERC20 token for payments but the network does not utilize blockchain.</p><p>I have extensively tested this platform as a host and a client. It lacks the transparency of other distributed offerings due to it’s highly centralized nature. The vast majority of data on the platform remains test data several months into Mainnet.</p><h4>0Chain</h4><p>Currently in Betanet, 0Chain deploys its own high-speed blockchain and is heavily focused on privacy and security enterprise markets.</p><p>Requirements are minimal through use of efficient protocols, this also allows for mobile and web browser apps.</p><p>I have extensively tested this platform as a client but currently awaiting for the onboarding of external miners to evaluate.</p><h4>Conclusion</h4><p>I believe that the data shows that the best potential for a distributed storage platform lies with combining efficiency and flexibility.</p><p>The clear winner in this regard is 0chain. Not only does it offer high flexibility with its configurable Erasure Coding and Challenge Completion, it is built on a super-fast blockchain giving huge potential for a variety of applications. Additional key features such as private sharing are essential for serious Enterprise adoption.</p><p>I would also highly commend Sia. Probably the budget option here, has stood the test of time and certainly comes closest to the utilizing spare storage ideology.</p><p>Storj has the luxury of being in its 3rd incarnation. If you are not too worried about the centralized elements then it has an S3 compatible layer and gives good performance. A huge gripe I had with Storj was the misleading host calculator they had on their website until very recently. I brought it to their attention in December 2019, and it barely improved in the 8 months until it was removed. I hope that not many miners were enticed into buying hardware because of this. (Storj officially do not recommend purchasing hardware for this purpose). Unfortunately this type of incident, combined with lack of transparency because of its centralized aspects prevents me from recommending it to anyone.</p><p>Filecoin doesn’t seem to promise to offer much that these other platforms don’t. Its seems to be trying to carve a niche to compete with Amazon Glacier (slow access, archival storage) but with added security. However, I seriously doubt it can achieve this efficiently due to the excessive miner hardware requirements (and also on the client side). I think this project could be a huge disappointment to everyone except those who have sold hardware on the back of the hype.</p><h4>References:</h4><p>Previous Articles:-</p><p><a href="https://medium.com/@sculptex/distributed-storage-superior-to-cloud-in-several-ways-5fadc21a685f">Distributed Storage —Superior to Cloud in several ways</a></p><p><a href="https://link.medium.com/ab48LQ1IpZ">https://link.medium.com/ab48LQ1IpZ</a></p><h4>Disclosure:</h4><p>I am an independent developer and Ambassador for the 0Chain project. I have evaluated each platform using my own finances and resources. If there are inaccuracies, I will be glad to make corrections accordingly.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c1b46ed480a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Storing files on Sia for 2 months (Default vs Decentralizer Hosts)]]></title>
            <link>https://medium.com/@sculptex/storing-files-on-sia-for-2-months-default-vs-decentralizer-hosts-e7488bd6c885?source=rss-5591639aae4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7488bd6c885</guid>
            <category><![CDATA[decentralized-storage]]></category>
            <category><![CDATA[cloud-storage]]></category>
            <category><![CDATA[siacoin]]></category>
            <category><![CDATA[decentralized-apps]]></category>
            <category><![CDATA[ia]]></category>
            <dc:creator><![CDATA[Sculptex]]></dc:creator>
            <pubDate>Fri, 10 Apr 2020 12:41:45 GMT</pubDate>
            <atom:updated>2020-04-10T12:43:55.540Z</atom:updated>
            <content:encoded><![CDATA[<p>Frustrated with the constant node churn of Sia hosts while evaluating it as a possible storage solution, I set about a small experiment to determine the efficiency of using the default hosts selected by the Sia client compared with a curated set of nodes using the Decentralizer app.</p><p>For my test, I used a small selection of large files, ISOs etc. because Sia is currently very inefficient at storing small files (it effectively pads each file out to 42MB, 126MB inc. redundancy!).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/859/1*xOb_XGzK5j4Y9wozsILUsA.png" /><figcaption>Chosen Files for Test</figcaption></figure><p>I have 2 separate servers for the test, both high spec. with good bandwidth so I can exclude any differences as being server related.</p><p>So on the first server, I left the hosts selection to the app default. I chose what I thought were reasonable limits on the prices and used identical values on the second server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/515/1*nA2cG-RUaYl5sa9W0Ai6rg.png" /><figcaption>Identical values used for both servers</figcaption></figure><p>On the second server, I used the Decentralizer app to filter the available hosts to exclude crap hosts with a poor rating. I also excluded hosts that had very high upload/download or other charges, because although I was not planning on being active with these files, that is the process I would use. The last thing you want is to form a load of contracts with cheap upload/storage only to find it costs you a fortune to download etc.</p><p>I whitelisted 57 hosts which I though was sufficient to provide the requisite 50 hosts that are usually chosen to form contracts from (30 contracts per file, sharded with 10/30EC). I chatted with Hakkane, author of Decentralizer app and he recommended that I should have blacklisted the poor ones instead, and left at least 70–80 hosts to choose from in order to leave enough choice for the app to get good value hosts from, but I had kinda set the ball rolling so left them as they were.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*QDwKtCjh4_8yKeZmhlnVOg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*576CAm8a8BITWmznkarh1w.png" /><figcaption>Initial Default vs Decentralizer</figcaption></figure><p>So the after uploading on both, I was surprised to see that only 38 contracts had been formed on the Second server. Hakkane was right that 57 was too low a figure. Obviously, some of the hosts were outside of my criteria or not accepting contracts at this time but I wasn’t gonna mess about with that now.</p><p>As you can see, although there are 25% less contracts on the second server, the savings in allocation, total spent and storage spent are much more than the 25%. In fact the storage spending at this stage is less than half of the first server. I have 100% health (full 10/30EC) achieved on all files so this is fine so far.</p><p>One unexpected side-effect was that the Decentralized hosts took much longer to upload and reach 100% health than the default hosts. I am not sure of the reason for this other than the choice of hosts is limited so the fastest hosts may have been ones that I excluded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*5Oh5xKccYuLElc6Xhittig.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*S_EtrYw9iKbgxj7QIJL_4Q.png" /><figcaption>After 2 weeks Default vs Decentralizer</figcaption></figure><p>After 2 weeks, the number of contracts has increased on the First server, this can be explained by hosts going offline or having problems, so additional hosts have been chosen to form contracts with instead. This process is all on the client so you need to keep your software connected all the time. On the second server, the contracts has decreased by one and the allocations and spending have hardly increased. This seems to be because the initially chosen hosts are more reliable, excluding the crap hosts, so there is much less node churn.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*spy6oy_FRur2SzujpHUNJg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*sGGcw-qItCH7ryMnlRRDXA.png" /><figcaption>After one month, Default vs Decentralized</figcaption></figure><p>After a month, the inefficiency of the default hosts continues to grow, each of the costs are now way over double the Decentralized host selection, however the number of contracts has dropped below 30. We are no longer able to achieve 100% redundancy with 10/30EC because 30 hosts are required. At this stage it would be logical to increase the hosts pool to form new contracts, but I have let this run as it is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*dAK_TmmxJs_vjFyBe66vgQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*7zHf74qp01-WN0aFZBtUYw.png" /><figcaption>After 6 weeks Default vs Decentralized</figcaption></figure><p>A couple of weeks later and although the First server has increased to 62 active contracts, the costs have not increased so much. The second server has recovered slightly to 28 contracts and 90% health with only a tiny increase in costs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*Pbgl5pD_513b_OcVKMdT8Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*Lts3-zdMOS7LK4QRuT8grw.png" /><figcaption>After 8 weeks, Default vs Decentralized</figcaption></figure><p>So after 8 weeks, both servers have stabilized a little, the first server continues to increase costs even though the number of contracts has decreased since last time, but the Second server has barely changed and remains at 90% health.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*V5czU3VmdZz774bx0wrkKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*envxlxI7VQ5YTRsi1Y301g.png" /><figcaption>Charts Comparison Default vs Decentralized</figcaption></figure><p>So here is a side by side comparison of the two setups. The number of contracts and Siacoins should have different scales but they are in a similar enough range not to worry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*26ZKBWoyhZF5Wd61dB-nhg.png" /><figcaption>The inefficiency of using the default nodes compared with using Decentralizer to filter out bad hosts</figcaption></figure><p>And here is what I call the inefficiency of the Default hosts selection shown on a graph. (The number of contracts is not an inefficiency but I left in for comparison purposes). Many would argue that because the health dropped below 100% that this is not a fair comparison, and I agree, but if I had taken Hakkanes advice and increased the host selection to 70–80, the costs would have only increase slightly and still be way under the default.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/921/1*yg49Fyq1jefO2SWDt7FN-Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/920/1*4kMdMPjbiep1HWGa0CdF2g.png" /><figcaption>The top 20 hosts by SiaRank. Why do Cheap and nasty hosts rank so high?</figcaption></figure><p>As you can see, at any point in time, around half of the top ranked hosts are experiencing problems. This accounts for the significant node churn when allowing default host selection.</p><h4>Conclusion</h4><p>Basically, the default selection of hosts is a false economy. You are getting a load of cheap and nasty hosts that you will end up paying more for in the long run. The significantly reduced node churn by eliminating crap hosts not only gives a huge saving in costs, it also cuts down on bandwidth and processing on the client because each time a host fails to satisfy its contract, a new contract is formed with another host and the client needs to process this itself using significant resources and bandwidth.</p><p>References:-</p><p>Thanks to Hakkane for his fantastic resources and advice.</p><ul><li><a href="https://siastats.info/hosts">SiaStats.info - Hosts monitor</a></li><li><a href="https://keops.cc/decentralizer">Keops.cc - Decentralizer</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7488bd6c885" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Distributed Storage —Superior to Cloud in several ways]]></title>
            <link>https://medium.com/@sculptex/distributed-storage-superior-to-cloud-in-several-ways-5fadc21a685f?source=rss-5591639aae4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fadc21a685f</guid>
            <category><![CDATA[ia]]></category>
            <category><![CDATA[cloud-storage]]></category>
            <category><![CDATA[blockchain-technology]]></category>
            <category><![CDATA[dstorage]]></category>
            <category><![CDATA[0chain]]></category>
            <dc:creator><![CDATA[Sculptex]]></dc:creator>
            <pubDate>Thu, 29 Aug 2019 10:46:30 GMT</pubDate>
            <atom:updated>2019-09-01T21:14:29.659Z</atom:updated>
            <content:encoded><![CDATA[<h3>Distributed Storage —Superior to Cloud in several ways</h3><p>This is a follow up to one of my previous articles, on Distributed Storage and Computing (link at bottom).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*kXuJCHiC8ql7cq3LX5dSJw.jpeg" /></figure><h3>Cloud Storage</h3><p>Since storage devices such as HDDs are prone to failure, cloud storage providers inevitably have to duplicate any user data stored with them to provide any decent level of reliability (redundancy).</p><p>If the duplicate data is held at the same DataCenter (DC) then a network failure to that DC can also prevent access to data. If the data is duplicated at various DCs, then there is still the challenge of routing the network to an alternative DC while ensuring that the alternative DC also has the latest version of the data.</p><p>Data Access speeds are typically limited to the network speeds between the user and the cloud DC.</p><p>Unless the user utilises client-side encryption, the files are typically stored ‘as is’ on the server. So anyone who gains sufficient access privileges on that server can access the files.</p><p>Typically, a cloud storage provider offers around 99.9%. Here is the current AWS S3 Service Level Agreement.</p><p>Monthly Uptime % — Service Credit %<br>&gt;= 99.9% — nil<br>&gt;= 99.0% — 10%<br>&gt;= 95.0% — 25%<br>&lt; 95.0% — 100%</p><p>So even the 99.9% should be taken with a pinch of salt, since compared with potential losses incurred of even 43 minutes of downtime in a month (99.9% availability) the losses could be devastating. The 100% compensation only kicks in when a day and a half (36 hours) of downtime is experienced!</p><h4>Distributed alternatives</h4><p>By utilizing Erasure-Coding (EC) techniques, users can simultaneously access multiple storage nodes and construct/reconstruct the data from them.</p><p>In a common EC 10/16 configuration, 16 nodes are used but only 10 of them need to be accessed to reconstruct the data. So the overhead is 60% which compares favourably with a typical 200% with (2x) duplication.</p><p>Access speeds are potentially much faster than cloud because multiple nodes are accessed in parallel although for users with slower connections (home, wifi, mobile), the bottleneck is likely to be on the user side.</p><p>With EC, only a partial, encoded segment of a file is present on any of the server nodes at a time, so even if a server is compromised, user data is safe.</p><p>Although distributed storage providers may not provide SLAs in the same format as Amazon S3 above, calculations can be made to determine the reliability and availability of sufficient nodes being available to reconstruct the user data.</p><h3>Comparing Distributed Solutions</h3><h4>Sia</h4><p>Sia storage defaults to an EC 10/30 ratio which only requires 10 out of the 30 nodes to be online/available. The reason this ratio is so big because so many of the nodes are either:-<br>a) just regular computer users sharing spare space on their hard disk or<br>b) run by computer personnel utilizing (temporarily) spare resources available to them.</p><p>Unfortunately, since the reward for being a Sia miner is currently so low* there is little reason for loyalty when a more profitable opportunity comes along. Using the default 10/30 gives a 200% overhead, so this is no more efficient than the typical duplication used by cloud providers</p><p>* On 16th August, Sia introduced an “Estimation Algorithm Change”. Nothing changed except the way average miner rewards were calculated. This now represents “only hosts proven to be reliable&quot; and there was an instant threefold increase in price (which kinda proves my point above why so many nodes are required to provide redundancy).</p><p>Initial Write speeds appear good, but the process of creating redundancy (duplicate encoding across 30 nodes) seems to takes significantly longer.</p><p>Read access speeds are generally very good, providing sufficient nodes are available from which to reconstruct the data.</p><p>I cannot find published figures for reliability and availability for Sia storage, but with the default EC 10/30 ratio, it will be an order of magnitude better than the Amazon AWS S3 figure above.</p><p>NOTE: There is a significant barrier to getting started with Sia which is that you need to fully sync the entire blockchain before you can use it. Additionally, there appears to be no free allowance so you need to also obtain tokens to test its suitability for your purpose. There are several companies offering storage services built on the Sia platform which for example negates the need to sync the entire blockchain. They typically charge several times the going rate for the Sia Storage and may even introduce a level of centralization which users are trying to avoid by using a distributed offering in the first place.</p><h4>0Chain dStorage</h4><p>0Chain specifies enterprise server performance hardware for their nodes including the special types of miners (named ‘blobbers’) that provide the dStorage. The entire reward structure is geared towards maximum availability and fastest response time to ensure maximum rewards are achieved. The blobbers stake ZCN tokens to show their commitment to providing the service, and a portion of these tokens can be forfeit in case of penalty.</p><p>The miners on the network periodically (and randomly) challenge the blobbers to ensure both accuracy and availability of data held. Any blobbers that fail these challenges are penalized. By maximising rewards to good performers and penalizing poor performers, a high quality network is always ensured.</p><p>Access speeds are excellent, the users device is basically reconstructing the data from the 10 fastest responders (all of which are using enterprise quality hardware). Writes are committed and witnessed on the blockchain in seconds, there is no lag waiting for full redundancy to be established.</p><p>For a dStorage with a EC 10/15 setup, Boffins at 0Chain have calculated a 14 9&#39;s availability (or 99.999999999999%) for dStorage which is exponentially higher than any cloud provider! The overhead to acheived this is only 50% so is much more efficient than duplication.</p><p>dStorage prices can fluctuate, but are recommended to be set to 50% of AWS prices. By comparison with other distributed storage offerings such as Sia, 0Chain dStorage may seem a little more expensive but now you can see why; it achieves the optimum balance of a high performance network while ensuring high availability and maximum efficiency.</p><h4>Other distributed Offerings</h4><p>There are many other distributed offerings in progress such as Storj etc. which also provide the key distributed features described above. None of the platforms I looked at currently seem to be in a state that they can be tested in the wild and offer significant improvements over the Sia platform.</p><p>IPFS and Torrent based distributed solutions have other drawbacks, including guarantee of availability, privacy and difficulty in ensuring quality storage nodes (as Sia above). Although incentive layers such as Filecoin are aiming to address these issues, there is nothing that comes close to being regarded as Enterprise Grade that I have seen.</p><h3>Conclusion</h3><p>Both Sia and 0Chain dStorage (plus potentially several of the other emerging distributed platforms not detailed that use EC techniques) can claim superiority to typical Cloud storage in several aspects:</p><ul><li>Speed (by parallel downloading)</li><li>Accessibility (redundancy)</li><li>Cost (typical &lt;=50% of AWS S3)</li><li>Security (data is encoded)</li></ul><p>For reasons outlined above, I think 0Chain dStorage is the only solution that currently demonstrates an Distributed Storage Platform that is worthy of being called ‘Enterprise Grade’. (Storj Tardigrade is supposedly targeted at Enterprise, it will be interesting to see how it compares to 0Chain dStorage when it becomes accessible * see comments).</p><p>Here is a link to my previous article which includes some additional analysis on Cloud Storage <a href="https://link.medium.com/ab48LQ1IpZ">https://link.medium.com/ab48LQ1IpZ</a>. Since that article, the 0Chain network has progressed into Alphanet and developers have had SDK access to test and develop on the platform. The distributed computing element referenced in that article that was originally planned for 0Chain has since been dropped from the roadmap and the team have instead concentrated on the dStorage element along with several other innovative protocols.</p><h3>About The Author</h3><p><em>(I am a blockchain enthusiast, fairly active in the 0Chain telegram with ambassador status. My comments and views are not necessarily that of the 0Chain team)</em></p><h3>References:</h3><p><a href="https://aws.amazon.com/s3/sla/">https://aws.amazon.com/s3/sla/</a></p><p><a href="https://sia.tech/">https://sia.tech</a></p><p><a href="https://siastats.info/">https://siastats.info</a></p><p><a href="https://0chain.net/">https://0chain.net</a></p><p><a href="https://t.me/Ochain">https://t.me/Ochain</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fadc21a685f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A look at zero-cost blockchain, interest and inflation with 0Chain]]></title>
            <link>https://medium.com/@sculptex/a-look-at-zero-cost-blockchain-interest-and-inflation-with-0chain-729013df78f2?source=rss-5591639aae4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/729013df78f2</guid>
            <category><![CDATA[0chain]]></category>
            <category><![CDATA[inflation]]></category>
            <category><![CDATA[cloud-storage]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[deflation]]></category>
            <dc:creator><![CDATA[Sculptex]]></dc:creator>
            <pubDate>Fri, 05 Apr 2019 22:53:41 GMT</pubDate>
            <atom:updated>2019-04-06T13:19:45.799Z</atom:updated>
            <content:encoded><![CDATA[<p>0Chain are creating a ground-breaking platform with their ultra-fast blockchain based around a zero-cost model, but what are the implications of an unlimited token supply when so many other blockchains have a finite maximum?</p><h4>Initial token allocation</h4><p>The initial 0Chain model was based on a maximum token supply of 400million. Of this, 200million was set aside for the mining pool, the original plan was the pool would last 100 years if it was released at 1% per year. The initial token sale was 10% of that total at 40m, the remaining other 160m is made up of team allocation, seed and reserve pools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*KiZs31frbdRzenbXA1GBhg.png" /></figure><h4>Change to Interest model</h4><p>As the 0Chain protocols matured, late in late 2018 the team changed to an interest model and the cap was removed, the team burned the 200m tokens set aside for mining and now the amount of mineable tokens is uncapped.</p><p>This model gives interest to miners for locking tokens which also secures their services and the interest generated by the client staking their tokens can be earned by them or apportioned to miners who provide services to them.</p><p>With interest comes inflation, but before exploring possible inflationary effects on 0Chain, let’s look at traditional inflation.</p><h3>Inflation as part of a Traditional Economic Model</h3><p>Inflation is the supposed periodic increase in overall cost (or wealth) of a particular entity, let’s say a cost of living in a particular nation. If this marker increases by 5% per year then inflation should be determined at that level. If wages on average were to increase by more than that 5% then there is a perceived increase in wealth of the people of the nation. Likewise, if interest on savings is above the inflation rate, the incentive to save should be high as your wealth would increase.</p><p>However, there are many hidden factors that can undermine this (and the whole economy). I’ll just highlight one of these factors.</p><h4>Fractional reserve banking combined with interest.</h4><p>Fractional reserve banking allows interest to be charged on loans which have only fractional backing with currency value. So, with a 10:1 ratio, a bank can generate loans for 10million with only 1million capital to back it. Now that in itself seems plausible assuming the risk of repayment failure would be less than a 10%, the 1million capital is there to cover it.</p><p>But then add to this that loans are generated from capital that itself might already be derived from a loan..</p><p>Then add to this <strong>interest</strong>. For simplicity, let’s say 5%. So from the 1million capital used to back 10million worth of loans, 500k interest will be paid. But this figure could be even higher if loans are using capital ‘generated&#39; from other loans as described above.</p><p>But just the 500k figure represents a <strong>50% increase</strong> from the initial capital which really should be the <strong><em>inflation</em></strong> of that area of banking.</p><p>Now if that ‘created’ money was to enter the economy, it would devalue the existing wealth in circulation and drive up inflation. It’s my guess that the only reason it doesn’t is because of the massive amounts of wealth being moved into offshore accounts and therefore out of that economy every year!</p><p>So, once upon a time, money was minted (printed) in conjunction with inflation, but it is no longer a reliable factor in this modern era with electronically generated funds.</p><p>What I am trying to illustrate here is that inflation is just a small part of the picture of the health of a traditional economy. Although inflation can be a useful indicator, there can be many other hidden factors to consider.</p><h3>Back to the blockchain</h3><p>When we talk about inflation on the blockchain, we are referring to the increase in number of circulating tokens each year.</p><p>The majority of blockchains such as Bitcoin have a finite amount of tokens. The release or mining of tokens is designed so that they are released in an ever decreasing fashion. This produces a lower level of inflation year upon year which gives the impression of a robust, stable platform.</p><p>As mentioned earlier, 0Chain have an unlimited supply of mined interest so there may be a potential concern for ever increasing inflation, so lets see the factors involved.</p><p>The 0Chain model rConclusionequires either:-</p><p>a) Clients to lock tokens to earn interest for themselves or miners providing services to them</p><p>b) Miners (inc. sharders and blobbers etc.) to stake tokens to earn interest (in addition to interest share earned from clients above).</p><p>Transactions including mined (interest) tokens on the blockchain are not only visible but immutable. This transparency is therefore entirely predictable and avoids the possibility of hidden underlying factors that can be present with traditional economic models.</p><p>Tokens left on exchanges will not normally earn interest as they will neither be locked nor staked. Initially this would also be the case for hardware wallets (although the team are exploring this possibility). This creates a scarcity of tokens on exchanges which could itself be a factor to drive up value, but the real value will be in the use of the blockchain itself.</p><h4>An inflation example</h4><p><em>(For this simplistic example, I am ignoring reserves including team allocation that might be released during the period).</em></p><p>An initial 10% interest rate has been indicated by the team. This means that if 100% of all tokens were locked or staked in the system, the total interest awarded to miners and clients would be 10%. However, with tokens on exchanges (and hardware wallets initially) not earning interest (lets assume 20%) that leaves 80% staked or locked split between miners and clients respectively that will earn interest.</p><p>This would generate 8% interest and therefore be 8% inflation as there are no hidden factors for us to consider (excluding other reserve tokens etc. being released as mentioned).</p><p>So, as long as the intrinsic value of the 0Chain platform increases by at least this 8%, then the value of the token should also increase. If the 10% remains fixed and the ratios of staked/locked tokens stays the same, the token inflation would remain the same even if the mined tokens increases each year because of compounded interest.</p><h4>Inflation beating savings</h4><p>Since, as already mentioned, it will not be possible for inflation generated from interest to be as much as the full interest rate, simply by locking tokens and earning interest, you are guaranteed to beat the rate of inflation* generated by interest. In an economic scenario, this would equate to a savings rate of 10% with inflation at 8% in our example.</p><p>* This excludes team and reserve tokens being introduced during the period as before.</p><p>So I would argue that using the scenario above, without any reserves, the token supply is in fact <strong>deflationary!</strong></p><h4>Governance protocol</h4><p>An ingenious part of the 0Chain platform is the governance protocol dubbed ping-pong governance due to its back and forth nature until a decision is made.</p><p>The actual voting process requires tokens to be locked proportional to the votes cast, the tokens are then burned which itself will reduce supply and therefore reduce inflation!</p><p>Incidentally, one of the abilities of the governance protocol is to change the interest rate, so the initial 10% is not set in stone.</p><h4>Inflation from token reserves</h4><p>Now, excluded from my simple example, for the first few years, there are various token pools that will/can be introduced that will also increase circulating token supply and therefore inflation.</p><p>There are two reserve token pools that are set to be released in the event that the token value increases very rapidly (if zcn value goes above $10usd). This would cause a spike in inflation and help to stabilize the value.</p><p>The seed tokens are under control of the team, my understanding is that these are utilized to offer incentives etc.</p><p>The team reserves are set to be vested over a 4 year period, and it has been suggested that they would take 10 years to be fully released. The vast majority of these are going to be staked or locked as the team more than anyone understands the required commitment to ensure the early growth of the platform.</p><p>In the case of 0box offering a free tier of storage (up to 2gb without having to have any tokens at all), the team controlled tokens will also be utilized for this purpose. So effectively team tokens are locked to facilitate this free storage as then it can then be handled in the same way on the network as the locked storage, rather than having some special case exception. Of course it is hoped that a good percentage of free storage users will be sufficiently impressed to become paid subscribers of the platform, either through fiat payments or acquiring and locking tokens.</p><p>So the first few years will experience a higher inflation of tokens through release of these reserves.</p><p>These reserve tokens have been disclosed from the start, but whereas the initial model had a mere 1% annual miner reward, the new interest model introduces much more tokens per year, which gives a greater opportunity for diversity of token holders.</p><h4>The growth of cloud</h4><p>As <a href="https://www.forbes.com/sites/louiscolumbus/2018/09/23/roundup-of-cloud-computing-forecasts-and-market-estimates-2018/">this 2018 Forbes article</a> shows, the next few years expect well over 20% growth in cloud service usage, year on year. By using using the growth in cloud as a baseline for 0Chain growth, this would negate the much of the inflationary effect of any reserve tokens being released during this period.</p><h4>Conclusion</h4><p>I hope that I have illustrated that there is a lot more to consider than a simple inflation figure when looking at increasing 0Chain token circulation.</p><p>Given the exponential growth that this platform has the potential to achieve, the value of the platform is likely to accelerate most over the initial years, and the inflation of tokens will be dwarfed by this initial growth.</p><p>In future years when the platform has matured and the team/seed/reserve pools have been released, the inflation will also decrease and a stable token will be the result.</p><h4>About The Author</h4><p><em>(I am a blockchain enthusiast, fairly active in the 0Chain telegram with ambassador status. My comments and views are not necessarily that of the 0Chain team)</em></p><h4>References:</h4><p><a href="https://0chain.net/">0chain.net</a></p><p><a href="https://t.me/Ochain">t.me/Ochain</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=729013df78f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>