<?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 Artem Payvin on Medium]]></title>
        <description><![CDATA[Stories by Artem Payvin on Medium]]></description>
        <link>https://medium.com/@payvint?source=rss-30f440322267------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AscSM82MdkfxL44e5vy51Q.jpeg</url>
            <title>Stories by Artem Payvin on Medium</title>
            <link>https://medium.com/@payvint?source=rss-30f440322267------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 18:49:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@payvint/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[The Data Availability Problem]]></title>
            <link>https://medium.com/skale/the-data-availability-problem-f17353834461?source=rss-30f440322267------2</link>
            <guid isPermaLink="false">https://medium.com/p/f17353834461</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[decentralization]]></category>
            <category><![CDATA[plasma]]></category>
            <category><![CDATA[skale-technology]]></category>
            <dc:creator><![CDATA[Artem Payvin]]></dc:creator>
            <pubDate>Thu, 11 Apr 2019 15:50:28 GMT</pubDate>
            <atom:updated>2020-01-18T01:57:01.565Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CnOHlCHUC001HIjq0Xfyog.png" /></figure><p>In 2017, everything was looking up for Ethereum — ETH was mooning, people were flocking to build (this was before buidl) new dApps, and enterprises were getting involved. But the success would prove too great for Ethereum to handle…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sY7LR2xkjg0jefLT" /><figcaption>Yeah… that transaction is going to take a few days at that gas price.</figcaption></figure><p>Cryptokitties had become the first majorly successful dApp. But it (and others) were hogging all of Ethereum’s resources — causing the chain’s mempool to grow at an unprecedented rate.</p><p>Suddenly, people were talking more and more about Plasma and State Channels — the solutions to our scaling woes. But despite all of the talk and excitement, development moved at a glacial pace and some members of the community started having their doubts as to the feasibility of these solutions. But now, as things begin coming online, people are seeing what has kept implementers at bay for so long — this is, of course, the illustrious data availability problem.</p><p>In this article, we’ll be giving a bit of background on the data availability problem and how it is being addressed by various layer two solutions such as <strong>Plasma, State Channels, and Elastic Sidechains</strong>.</p><h3>The Data Availability Problem</h3><p>As Vitalik has <a href="https://github.com/ethereum/research/wiki/A-note-on-data-availability-and-erasure-coding">previously explained it</a>, the data availability problem is where a malicious miner publishes a block where the blockheader is present but some or all of the block data is missing. This can:</p><ul><li>Convince network to accept invalid blocks and there’s no way to prove invalidity.</li><li>Prevent nodes from learning the state.</li><li>Prevent nodes from being able to create blocks or transactions because they lack the information to construct the proofs.</li></ul><p>But data availability doesn’t just relate to the withholding of block data. Generally speaking, it’s where any data is withheld from other participants in the network, a.k.a. censorship. Which isn’t a problem on the mainnet (as far as we’re aware), but it has come at great cost. In fact, the past 18 months, we’ve seen a 6.5x increase in the amount of state stored on each Ethereum node (GETH w/ FAST Sync).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*l4fv5o5lrrvWeWM6" /></figure><p>And clearly, this is unsustainable for a truly decentralized network. As the size of the chain continues to grow, the number of computers eligible to participate as nodes in the network declines. So, how do we combat this rapidly growing chain?</p><p>Simple! Start and end things on-chain, but have clients manage everything amongst themselves in-between! This, effectively, is a very basic idea of what all Execution Layer / Layer 2 scaling solutions do. We go from everything being on-chain to the chain only serving as a settlement layer for off-chain interactions. But this can be problematic as clients participating in a layer two solution are required to maintain all of these off-chain transactions relating to them or be at the mercy of whomever does.</p><h3>Example</h3><p>Imagine you go to a casino to play poker. When you walk in, you go to a counter and exchange dollars for poker chips (think of this as an on-chain transaction). You then proceed to go to a table and play poker for a few hours (think of these as off-chain transactions) — sometimes you’re up, other times you’re down. After winning a huge hand, you tell the table you’re going to go cash out.</p><p>But as you get up from the table, someone hits you over the back of the head with a crowbar — when you wake up your memory is a bit fuzzy and you don’t remember the details of the poker game (this is data unavailability). While you were out, the people at the table decided to pretend like the last hand didn’t happen and continued playing from where they had been prior to the hand — cheating you of money that you had won.</p><p>If this had happened on the blockchain, this sort of cheating wouldn’t be possible as the world would be aware of what did and didn’t happen. But because it was all off-chain and you lost your transaction history, you have to accept the history that your peers tell you.</p><h3>In Practice</h3><p>In <strong>Plasma</strong>, every participant must keep the entire transaction history as well as enough witness data to prove whether or not their cryptoassets were transacted with in every Plasma block. This effectively makes every participant a node on that Plasma instance who is only storing data for their transactions. The reasoning for this history requirement is the fact that anyone in the Plasma instance could collude with the chain’s operator to submit invalid transactions to attempt the stealing of funds from other participants. And the only way for participants to prevent this from happening is to ensure that they have a complete and valid transaction history for all of their assets.</p><p><strong>State channels</strong> have a lesser data requirement due to the fact that all parties are agreeing upon the current state instead of a state update (ex: transaction). This allows a contract to be settled with one transaction versus needing to replay any transaction history. And because each state has an auto-incrementing nonce and is not regarded by the smart contract as valid unless it has signatures from both parties, participants only need to store the latest state.</p><p><em>Note: Participants in a state channel may wish to store history state, as well, to settle with an earlier and more advantageous state in the case that their counterparty loses their state history.</em></p><h3>Solutions</h3><p>Now, teams are doing everything in their power to reduce the footprint of the data needing to be maintained by clients or submitted to the mainnet through things like <a href="https://medium.com/matter-labs/introducing-matter-testnet-502fab5a6f17">ZK-SNARKS</a> or <a href="https://blog.goodaudience.com/deep-dive-on-rsa-accumulators-230bc84144d9">RSA Accumulators</a>, which are great improvements, but they don’t address the problem of data availability. In fact, we can’t really address this problem for a single client because it would require that that client be online 100% of the time and never lose data stored on it (sounds a lot like a blockchain, right?).</p><p>But given that these machines don’t really exist, the general consensus for addressing data availability is through incentivized watchtower networks (ex: <a href="https://eprint.iacr.org/2018/582.pdf">PISA</a>) or similar constructs. These incentivized networks are effectively an array of staked watchtowers who back up data for the users who are paying rent for their service and will dispute any challenges on behalf of users in the event that those users are unable to do so. If they fail to dispute a challenge within a certain time-period, they will lose their stake and it will be awarded a new watchtower in the network assigned to dispute the challenge (assuming it does). This failure / appointment protocol is multiple layers deep, so users have some assurance that they will not be cheated in the case that they fall offline or lose their transaction / state history.</p><p>And the reason why these solutions have taken so long to arise pertains to the fact that members of the community used to scoff at the idea of trusting some third party and wanted to try to make something which addressed data availability without needing to. But as the impossibility of this grew more and more evident, cryptoeconomic models (such as the one described above) have risen to mitigate the need to trust these parties.</p><h3>SKALE’s approach</h3><p>SKALE’s <strong>Elastic Sidechains </strong>address the data availability problem with their block proposal process. Once a validator has created a block proposal, it will communicate it to other validators using the data availability protocol described below. This protocol guarantees that the block proposal is transferred to a supermajority (&gt;⅔) of validators.</p><p>The five-step protocol is described below:</p><ol><li>The sending validator A sends both the block proposal and the hashes of the transactions which compose the proposal P to all of its peers.</li><li>Upon receipt, each peer will reconstruct P from hashes by matching hashes to transactions in its pending queue. For transactions not found in the pending queue, the peer will send a request to the sending validator A. The sending validator A will then send the bodies of these transactions to the receiving validator, allowing for the peer to reconstruct the block proposal and add the proposal to its proposal storage database PD.</li><li>The peer then sends a receipt to back to A that contains a threshold signature share for P.</li><li>Upon collection of a supermajority (&gt;⅔) of signature shares from peers (including itself), A will create a supermajority signature S. This signature serves as a receipt that a supermajority of validators are in possession of P.</li><li>A will then broadcast this supermajority signature S to each of the other validators in the network.</li></ol><p><em>Note: Each validator is in possession of BLS private key share PKS[I]. Initial generation of key shares is performed using Joint-Feldman Distributed Key Generation (DKG) algorithm which occurs at the creation of the Elastic Sidechain and whenever validators are shuffled. Check out </em><a href="https://medium.com/skale/bls-deep-dive-793a4e8a6f4e"><em>our article on BLS and DKG</em></a><em> to learn more!</em></p><p>In further consensus steps, a data availability receipt is required by all validators voting for proposal P whereby they must include supermajority signature S in their vote, honest validators will ignore all votes that do not include the supermajority signature S. So, assuming a supermajority of honest validators, this protocol guarantees data availability, meaning that any proposal P which wins consensus will be available to any honest validators.</p><h3>Summary</h3><p>So, if you were wondering what developers implementing Execution Layer solutions were occupied with for the past 18+ months, it’s likely that a large portion of their time was initially spent addressing this exact problem. And while there is no perfect solution to this for all scaling solutions (yet), there’s a lot of new and exciting work being done and we are excited to see what the future brings!</p><h3>Learn More</h3><p>If you are interested in trying SKALE out, make sure to join the SKALE community on <a href="https://discord.gg/vvUtWJB">Discord</a> and check out the <a href="https://developers.skalelabs.com/">Developer Documentation</a>! Also, feel free to also check out SKALE’s <a href="https://medium.com/skale/the-skale-tech-stack-5beb025acb6a">Technical Overview</a> and <a href="https://medium.com/skale/skales-consensus-c90de0b61a4c">Consensus Overview</a> for a deeper dive into how SKALE works and is able to provide 20,000 TPS.</p><p>SKALE’s mission is to make it quick and easy to set up a cost-effective, high-performance Elastic Sidechains that run full-state smart contracts. We aim to deliver a performant experience to developers that offers speed and functionality without giving up security or decentralization. Follow us here on <a href="https://t.me/skaleofficial">Telegram</a>, <a href="https://twitter.com/skalelabs">Twitter</a>, <a href="https://discord.gg/vvUtWJB">Discord</a>, and sign up for updates via this <a href="https://www.skalelabs.com/#contact-us">form</a> on the SKALE website.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f17353834461" width="1" height="1" alt=""><hr><p><a href="https://medium.com/skale/the-data-availability-problem-f17353834461">The Data Availability Problem</a> was originally published in <a href="https://medium.com/skale">SKALE</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Interchain Messaging with SKALE]]></title>
            <link>https://medium.com/skale/interchain-messaging-with-skale-9ca038842352?source=rss-30f440322267------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ca038842352</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[skale-technology]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[scalability]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Artem Payvin]]></dc:creator>
            <pubDate>Fri, 22 Mar 2019 20:45:05 GMT</pubDate>
            <atom:updated>2020-01-18T01:55:08.471Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eUwBFrHR3M2k4smqD5V7yw.png" /></figure><p>Hello, Everyone!</p><p>Today, we’re going to be reviewing SKALE’s Interchain Messaging — a system serving as the communication layer between independent SKALE Chains which allows users to call smart contracts on other SKALE Chains and facilitates the transfer of digital assets. This functionality is made possible through the combination of smart contracts (<em>MessageProxy</em>, <em>TokenManager</em>, and <em>DepositBox</em>), transfer agents, BLS signatures, and fork-less consensus.</p><h3>Connecting SKALE Chains</h3><p>Before we can send messages between SKALE Chains, we must first connect them using the <em>MessageProxy</em> smart contract that comes packaged and deployed with each chain — we can think of this in a similar way to opening a TCP connection between two servers.</p><p>Linking chains is done in a one-way fashion whereby the chain’s owner (or any owner-approved party) can approve what chains they listen to messages from. This approval is facilitated by adding the target SKALE Chain’s ID and public group key (stored in SKALE Manager on mainnet) to the <em>MessageProxy </em>smart contract on the SKALE Chain. At this point, the owner’s chain will begin listening and relaying any messages from the target SKALE Chain. In this way, the owner of a SKALE Chain can specify which chains they listen to but cannot force another chain to listen to them — so as to prevent spamming / DoS attacks.</p><h3>Message Transfer Agents</h3><p>Each validator in a SKALE Chain ships with a Message Transfer Agent responsible for listening to events emitted from each connected chain’s <em>MessageProxy</em> smart contract and executing them. This means that a chain of 16 validators has 16 agents — all of which are assigned to short (~15 seconds) deterministic time slots during which they must monitor all incoming messages from other chains.</p><p>To send a message to another chain, a user will send a transaction specifying the target chain’s ID as well as the address of the target user / smart contract of the transaction to their originating chain’s <em>MessageProxy</em>. Once this transaction has been executed and committed to the chain, it will emit an event including the transaction data, the number of the block that the transaction was included in, and a nonce for the transaction representing the message counter between the sending and receiving chains.</p><p>Once the transaction has been committed, all of the receiving chain’s agents will receive the emitted event and cache it until it has been executed on their respective chain. The currently selected agent will provide each of their transactions as well as their signed blocks to the validator to execute them on the respective chain’s <em>MessageProxy</em>.</p><p>Before forwarding transactions to their respective destination smart contracts, the <em>MessageProxy</em> will verify that the chain has been connected, that the transactions are included in each of the signed blocks, and that the signers of the transaction are the current validators for the sending chain; transactions not meeting these criteria will be discarded. After the transaction has been executed on the receiving chain it will be removed from the caches of the agents in that chain. Just because a transaction has been forwarded does not mean that it will succeed — it is still subject to the same checks as any normal transaction on a SKALE Chain.</p><p><em>Note: It should be noted that SKALE Chains have no fees, allowing for these transactions to be freely executed without incurring monetary cost to each validator / transfer agent.</em></p><p>Presently, there is no acknowledgement for the success / failure of an interchain transaction — this is by design to allow users to implement their own protocols on top of the messaging system. As popular design patterns emerge for handling this, users will be provided with sample implementations for their respective SKALE Chains.</p><h3>Fork-less Consensus</h3><p>The default consensus protocol for each SKALE Chain is finality-guaranteeing and does not fork. This is crucial for interchain messaging to provide receiving chains with assurance that the transactions which were received will not be orphaned. Below is an illustration of this issue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UwBh8roNR--RHSEM" /></figure><p>In a forking protocol, the transaction we wish to include may be included in block 4b, which will be eventually orphaned due to it not being included in the longest chain. This would lead to invalid transactions being relayed across chains — allowing for things like double spending.</p><h3>Transferring ETH</h3><p>Participants of a SKALE Chain wishing to transfer ETH into their account can deposit ETH into a pool in the <em>DepositBox</em> smart contract on the mainnet at any time. Before relaying the transaction, the transfer agents will wait a finalization period (~5 minutes) to mitigate possibility that the deposit transaction is orphaned. After the transaction has been finalized, the currently selected agent will transfer a message to <em>TokenManager </em>through <em>MessageProxy, for </em>send the respective amount of deposited ETH to the desired account on the respective SKALE Chain.</p><p>To transfer ETH from one chain to another, a user will send a transaction to another chain which will transfer the ETH being sent to the <em>TokenManager </em>on their chain and send ETH to the counterparty from the <em>TokenManager</em> on the receiving chain. In this implementation, the transfers are serving as a way to withdraw the pooled funds in the <em>DepositBox</em> on the mainnet. In the event that the sender specifies an invalid address to send the ETH to, the ETH will not be refunded and still be stuck in that account until its respective private key has been determined.</p><p>To withdraw ETH from a SKALE Chain to the Ethereum mainnet, a user will submit a withdrawal transaction their respective chain’s <em>TokenManager. </em>This transaction will emit an event to the agents who will relay it and related metadata to the <em>MessageProxy </em>located on the mainnet. The <em>MessageProxy </em>will verify that the transaction is included in the signed block and that the signers of the transaction are the current validators for the sending chain. Once this has been verified, the transaction is forwarded to the DepositBox and the specified amount is transferred to the user’s account on the mainnet.</p><h3>Learn More</h3><p>If you’d like to learn more about SKALE’s Interchain Messaging or are interested in trying SKALE out, make sure to join the SKALE community on <a href="https://discord.gg/vvUtWJB">Discord</a> and check out the <a href="https://developers.skalelabs.com/">Developer Documentation</a>!</p><p>Also, feel free to also check out SKALE’s <a href="https://medium.com/skale/the-skale-tech-stack-5beb025acb6a">Technical Overview</a> and <a href="https://medium.com/skale/skales-consensus-c90de0b61a4c">Consensus Overview</a> for a deeper dive into how SKALE works and is able to provide 20,000 TPS.</p><p>SKALE’s mission is to make it quick and easy to set up a cost-effective, high-performance sidechain that runs full-state smart contracts. We aim to deliver a performant experience to developers that offers speed and functionality without giving up security or decentralization.</p><p>Follow us here on <a href="https://t.me/skaleofficial">Telegram</a>, <a href="https://twitter.com/skalelabs">Twitter</a>, <a href="https://discord.gg/vvUtWJB">Discord</a>, and sign up for updates via this <a href="https://www.skalelabs.com/#contact-us">form</a> on the SKALE website.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ca038842352" width="1" height="1" alt=""><hr><p><a href="https://medium.com/skale/interchain-messaging-with-skale-9ca038842352">Interchain Messaging with SKALE</a> was originally published in <a href="https://medium.com/skale">SKALE</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>