<?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 Joon on Medium]]></title>
        <description><![CDATA[Stories by Joon on Medium]]></description>
        <link>https://medium.com/@torecursedivine?source=rss-b2a7c4f32e7d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*v8PRPIBpN_qA7slDZMO5XQ.jpeg</url>
            <title>Stories by Joon on Medium</title>
            <link>https://medium.com/@torecursedivine?source=rss-b2a7c4f32e7d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 07:03:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@torecursedivine/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[Developer Deep Dive—ETGate, Gateway between Ethereum & Tendermint]]></title>
            <link>https://medium.com/cosmos-blockchain/etgate-md-6a31f049a62f?source=rss-b2a7c4f32e7d------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a31f049a62f</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[technical]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[tendermint]]></category>
            <dc:creator><![CDATA[Joon]]></dc:creator>
            <pubDate>Fri, 24 Nov 2017 06:31:58 GMT</pubDate>
            <atom:updated>2018-02-23T21:47:23.435Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4or-2axuZqtakZ4MQkSgAQ.png" /></figure><blockquote><strong>[Post updated: Feb 16, 2018] This project is now defunct. The newer, more complete implementation of this idea is called </strong><a href="https://blog.cosmos.network/the-internet-of-blockchains-how-cosmos-does-interoperability-starting-with-the-ethereum-peg-zone-8744d4d2bc3f"><strong>Peggy</strong></a><strong>.</strong></blockquote><p>One of the most important functionalities of the Cosmos Network is <a href="https://blog.cosmos.network/developer-deep-dive-cosmos-ibc-5855aaf183fe">IBC</a> (Inter-Blockchain Communication protocol). It enables individual blockchains to communicate, allowing users to send tokens across zones — such as sending pegged bitcoins to a smart contract on the Ethereum zone. The IBC protocol is meant to be a general-purpose communication protocol like TCP/IP. In theory, it could also be used to relay messages between parachains on Polkadot. (Then Polkadot could be a zone of Cosmos, and Cosmos could be a parachain of Polkadot.)</p><p>But IBC can only be applied to blockchains whose consensus algorithms have transaction finality and efficient commit proofs. For those blockchains that do not, like that of Bitcoin or Ethereum, we have to build peg-zones in order to send assets from other chains to them. The idea is basically like that of a <a href="http://www.rsk.co/blog/sidechains-drivechains-and-rsk-2-way-peg-design">multi-party state-channel</a>: we relay all headers and deposit/withdraw requests between chains. However, we can optimize it due to their architectural character.</p><h3>Two-Way-Pegging</h3><p>The concept of two-way-pegging generally describes a decentralized way to send cryptographic assets from one chain to another, like one would send money from one bank to another through <a href="https://www.investopedia.com/terms/n/nostroaccount.asp">nostro account</a>s. In IBC, relayers continuously submit the headers of CHAIN_A to CHAIN_B and vice versa, allowing both chains to be aware of each other’s latest state. Consider the case that a user wants to send some bitcoin to Ethereum. The user will sign a special “transfer” transaction, locking their bitcoin. A few blocks later, the transaction will be confirmed, and the user can mint e-bitcoin on Ethereum with a Merkle proof that the transfer transaction is included on Bitcoin, which would mean that their funds are actually locked.</p><p>The same thing happens when the owner of e-bitcoin wants to withdraw (to receive actual bitcoins). They sign a transfer transaction on Ethereum, burning their e-bitcoin, wait for the confirmation, and release bitcoin on the original blockchain, proving that their e-bitcoins were actually burnt.</p><h3>ETGate</h3><p>Introducing ETGate, a two-way peg that allows sending and receiving Ethereum tokens on Tendermint zones.</p><ul><li>GitHub: <a href="https://github.com/mossid/etgate">https://github.com/mossid/etgate</a></li></ul><h3>Event on Ethereum</h3><p>Unlike other blockchains, Ethereum is designed to be the “World Computer”. Users can interact with it via a webpage. To make it easy to access necessary information on the Ethereum blockchain from a web environment, Ethereum contracts can log events; it is cheap, read-only storage for external agents. Events on Ethereum also form a Merkle tree whereby its root is stored in a header.</p><p>So instead of providing a Merkle proof of each transaction, we can make the contract generate an <em>event</em> when it receives transfer requests. It will then be proven on the Tendermint side more easily.</p><h3>Tendermint Light Client</h3><p>Primer: <a href="https://blog.cosmos.network/light-clients-in-tendermint-consensus-1237cfbda104">Light Clients in Tendermint Consensus</a></p><p>Unlike light clients of PoW-based blockchains, a light client of Tendermint does not have to verify all the headers. It just has to follow validator changes and check the signatures of incoming headers, so we can reduce the cost of relaying Tendermint headers to an Ethereum smart contract.</p><p>Additionally, since we don’t have to follow all the headers, we can collect withdrawal transactions in one block. Header submission validation requires a lot of signature verifications (with ecrecover()), so the number of header submissions could be reduced to make it economically reasonable without causing too much delay.</p><h3>Overall Structure</h3><p>The following are the behaviors of validators and relayers:</p><h4>Validators</h4><p>Since verifying PoW headers is non-deterministic and expensive, we rely on the validators, not relayers, to add new Ethereum headers in the zone. After a sufficient number of confirmations from the Ethereum network, an Ethereum header needs +2/3 validators signatures (in the form of a transaction, rather than a block precommit) to be successfully submitted to the peg-zone.</p><h4>Relayers</h4><p>The relayers continuously submit deposit/withdraw IBC transactions from one zone to another. For deposit transactions (e.g. sending ether to the Cosmos hub), the relayers will send the RLP-encoded event data and its Merkle proof to the peg-zone. When the peg-zone sees a withdraw transaction (e.g. request to send ether to the user’s Ethereum account), they will submit the transaction with its Merkle proof for the batch root to the contract, and additionally submit the header if it is unknown.</p><p>Users simply sign deposit and withdraw transactions when they want. The rest will be handled by the validators and the relayers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a31f049a62f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cosmos-blockchain/etgate-md-6a31f049a62f">Developer Deep Dive—ETGate, Gateway between Ethereum &amp; Tendermint</a> was originally published in <a href="https://medium.com/cosmos-blockchain">Cosmos Community Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>