avatarEhsan Yazdanparast

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

4021

Abstract

h mentioning that each zone can become a hub itself. If that happens, we will end up with an acyclic graph.</p><h1 id="3592">#3 — Inter-blockchain Communication (IBC)</h1><p id="8848">As mentioned in the last section, Cosmos is not just a single blockchain. It offers blockchain interoperability. In other words, using Hubs, the different blockchain can communicate with each other. In order to make this happen, two types of transactions are used:</p><ol><li><b>IBCBlockCommitTx: </b>allows a blockchain to prove to any observer of its most recent block-hash.</li><li><b>IBCPacketTx: </b>allows a blockchain to prove to any observer that the given packet was indeed published by the sender’s application, via a Merkle-proof to the recent block-hash.</li></ol><p id="7bec">In the following image, you can see a simple communication scenario between two zones (Zone 1 and Zone 2) via a Hub.</p><figure id="7e47"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*-UKvIm4OsQIEn_yKWtPnRg.png"><figcaption>Inter-blockchain Communication (IBC)</figcaption></figure><p id="a07c">In the above scenario, Zone 1 sends IBCBlockCommit and IBCPacket transactions to the Hub. Once received, the Hub sends its own version of IBCBlockCommit and IBCPacket transactions towards Zone 2.</p><h1 id="cde0">#4 — Use Cases</h1><p id="bb3b">Cosmos blockchain offers several use-cases:</p><ul><li><b>Distributed Exchange (aka the Cosmos DEX):</b> Inter Blockchain Communication model of Cosmos will allow the users to move/swap their tokens between different zones (blockchains).</li><li><b>Bridging to other Cryptocurrencies: </b>privileged zones can act as the source of a bridged token of other cryptocurrencies.</li><li><b>Ethereum Scaling: </b>Ethereum contracts can be launched in different zones. Then, thanks to Tendermint’s high throughput, and IBC packet mechanics, higher performance on the Ethereum blockchain can be achieved.</li><li><b>Multi-Application Integration: </b>Cosmos zones run arbitrary application logic. Therefore, they serve as blockchain-backed versions of enterprise and government systems, and can</li><li><b>Network Partition Mitigation: </b>in the hubs/zones model, each zone can be run independently. Therefore, the network will be partitioned and voting power will be distributed at the zones level.</li><li><b>Federated Name Resolution System: </b>Cosmos enables the name registration functionality at the zone level. Each zone can register its domain name (e.g. .com, .org), and start to govern the registration rules internally afterward.</li></ul><h1 id="b3ec">#5 — ATOM Token</h1><p id="63b9">ATOM is the native token of the Cosmos blockchain. It has three main use cases:</p><ol><li>It is like a license for holders to vote on proposed changes.</li><li>It is a staking token (through validation or delegation).</li><li>It is used for paying transaction fees.</li></ol><p id="b92e">On Genesis day (Q4 2017), ICO of the ATOM happened and initial tokens were distributed as follows:</p><ul><li>Interchain Foundation(ICF): 10%</li><li>All in Bits, Inc. (AIB): 10%</li><li>Initial Donors: 5%</li><li>Pre-Fundraiser Donors + Fundraiser Donors: 75%</li></ul><p id="b695">Since genesis day’s fundraiser, the top validators started to validate and secure the Cosmos ledger, and delegators are able to delegate their ATOM tokens to validators. In return, both groups are receiving ATOM tokens as rewards. According to Cosmos:</p><blockquote id="0566"><p>Initially, 7% of atoms will be inflated every year and distributed back to the bonded and active atom holders (validators and delegators) for their work validating and securing the ledger. This value will adjust over time to incentivize at least 2/3 of the atoms to be bonded.</p></blockquote><h1 id="7016">#6 — Validators</h1><p id="4dad">Initially (at genesis day), the Cosmos hub started to run with 100 validators. This number will increase at a rate of 13% per year for 10 years. Therefore, it is estimated that by the year 2030, the network

Options

will be secured by 300 validators.</p><figure id="4b41"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*1DsocDX02f818ZpKGKkv8g.png"><figcaption>Number of Validators of Cosmos Hub by Year</figcaption></figure><p id="bb88">Anyone can become a validator at any time if the size of the current validator set is below the maximum allowed number of validators. Otherwise, the amount of proposed bonded ATOM tokens by the validator should be greater than the ATOMs held by the smallest validator. In the latter case, the smallest validator will be removed from the set, and all ATOM tokens of this validator (and her delegators’ ones) will enter the unbonding state.</p><p id="ce97">Any malicious activity from validators (e.g. double-sign at the same height and round) will cause slashing of validators’ staked ATOM tokens.</p><h1 id="e548">#7 — Incentivizing Hackers</h1><p id="1c56">There is an interesting feature in the Cosmos Hub to secure the network. According to this policy, anyone can submit a transaction to the network saying that a specific validator has vulnerability issues. The process is as follows:</p><ol><li>The hacker submits a <code>ReportHackTx</code> transaction saying: “validator X got hacked. Please send bounty to this address”.</li><li>After hack confirmation, the validator and corresponding delegators will become inactive.</li><li><code>HackPunishmentRatio</code> (default 5%) of everyone’s atoms will get slashed.</li><li><code>HackRewardRatio</code> (default 5%) of everyone’s atoms will get rewarded to the hacker’s bounty address.</li><li>The validator recovers the remaining ATOM tokens by using his backup key.</li></ol><p id="3db8">This is an exceptional feature to ensure that validators do not have any security breaches.</p><p id="a2dc"><i>This article is for informational purposes only. It should not be considered Financial or Legal Advice. Not all information will be accurate. Consult a financial professional before making any major financial decisions.</i></p><p id="e1de">If <i>you enjoyed this content and feeling generous, please consider supporting me by donating to my ETH wallet:</i></p><p id="1507"><b><i>0x1779c21F79D3F1e63960990818B5bF03e89CbfFE</i></b></p><p id="a3da">If <i>you are interested in reading my similar posts in the future, please consider joining medium with my <a href="https://ehsan-yazdanparast.medium.com/membership"><b>referral link</b></a>. If you sign up using my link, I’ll earn a small commission and you will have unlimited access to the content from all medium writers. That way, you will support me and your other favorite writers on the platform. Thanks.</i></p><div id="951a" class="link-block"> <a href="https://ehsan-yazdanparast.medium.com/my-stories-by-subject-a50d550742c4"> <div> <div> <h2>My Medium Stories (Ordered By Topics)</h2> <div><h3>I will update this list constantly. Feel free to navigate through the list and read the ones you are interested in.</h3></div> <div><p>ehsan-yazdanparast.medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*useNrTMNsCwDYUy0gF5EtQ.png)"></div> </div> </div> </a> </div><div id="849f" class="link-block"> <a href="https://readmedium.com/5-things-you-need-to-know-about-yearn-finance-yfi-56017b2bcccd"> <div> <div> <h2>5 Things You Need to Know About yearn.finance (YFI)</h2> <div><h3>YFI governance token, vaults, Iron Bank, Partnership Program, and more.</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*JmEpLpIFEsTB5-b9qQxJxg.png)"></div> </div> </div> </a> </div></article></body>

7 Things You Need to Know About Cosmos (ATOM)

Tendermint consensus model, Hubs & Zones, Inter-Blockchain Communication, ATOM token, and more!

Cosmos: The Internet of Blockchains

Cosmos is one of the leaders of the “Blockchain 3.0” movement. Implementing scalable and sustainable “Interblockchain Communication Protocol” is the main focus of the project.

In this story, I am going to explain 7 things you better need to know about this project. For more info, you can also check the official documentation of the project here.

#1 — Tendermint

Tendermint is a consensus protocol and interface used for managing Cosmos Blockchain and building applications on top of it.

In the Tendermint consensus model, each node has voting power. This voting power is determined at genesis, or programmatically by the blockchain. For example, in PoS applications (e.g. Cosmos Hub), the voting power is determined by the amount of staked tokens.

Nodes with positive voting power are called validators. Validators are in charge of confirming blocks (hence building a chain of blocks). In each round of generating blocks, a validator (proposer) is chosen according to her voting power. She then proposes a block. Finally, the other validators vote to accept this newly created block or move on to the next round.

The Tendermint consensus model has been proven to have a very high throughput (transaction per second). For example, in an experiment conducted by Cosmos, up to 64 nodes were distributed across 7 datacenters on 5 continents. In the following image, you can see the tps vs. blocksize of different configurations.

TPS vs Block size using Tendermint Consensus ¹.

Tendermint consensus can process thousands of transactions per second with minimum commit latencies.

Here are some other cool features of Tendermint:

  • It offers “ Light Clients” which makes it suitable for mobile or IoT-based applications.
  • It Prevents common attacks thanks to the features such as long-range-nothing-at-stake double spends.
  • It is coded in a program called Application Blockchain Interface (ABCI). Using ABCI, blockchain applications can be programmed in ANY language.

#2 — Hubs and Zones

For making blockchain interoperability possible, Cosmos is using two concepts called “hubs” and “zones”.

Hubs are central ledgers of the whole Cosmos system. In simple words, hubs are the bridges between different blockchains (zones). For example, if you want to move tokens from one zone to another, a hub will supervise the whole process. This is done by a special IBC packet called a “coin packet”. The security of the hubs is guaranteed by a globally decentralized set of validators.

Zones are independent blockchains. From the Hub’s perspective, a zone is a multi-asset dynamic-membership multi-signature account that can send and receive tokens using IBC packets. Hubs are not in charge of verifying or executing transactions committed on other zones. It means it is the responsibility of users of each zone to send tokens to zones that they trust.

Simplified Hub and Zones Model

Finally, it is worth mentioning that each zone can become a hub itself. If that happens, we will end up with an acyclic graph.

#3 — Inter-blockchain Communication (IBC)

As mentioned in the last section, Cosmos is not just a single blockchain. It offers blockchain interoperability. In other words, using Hubs, the different blockchain can communicate with each other. In order to make this happen, two types of transactions are used:

  1. IBCBlockCommitTx: allows a blockchain to prove to any observer of its most recent block-hash.
  2. IBCPacketTx: allows a blockchain to prove to any observer that the given packet was indeed published by the sender’s application, via a Merkle-proof to the recent block-hash.

In the following image, you can see a simple communication scenario between two zones (Zone 1 and Zone 2) via a Hub.

Inter-blockchain Communication (IBC)

In the above scenario, Zone 1 sends IBCBlockCommit and IBCPacket transactions to the Hub. Once received, the Hub sends its own version of IBCBlockCommit and IBCPacket transactions towards Zone 2.

#4 — Use Cases

Cosmos blockchain offers several use-cases:

  • Distributed Exchange (aka the Cosmos DEX): Inter Blockchain Communication model of Cosmos will allow the users to move/swap their tokens between different zones (blockchains).
  • Bridging to other Cryptocurrencies: privileged zones can act as the source of a bridged token of other cryptocurrencies.
  • Ethereum Scaling: Ethereum contracts can be launched in different zones. Then, thanks to Tendermint’s high throughput, and IBC packet mechanics, higher performance on the Ethereum blockchain can be achieved.
  • Multi-Application Integration: Cosmos zones run arbitrary application logic. Therefore, they serve as blockchain-backed versions of enterprise and government systems, and can
  • Network Partition Mitigation: in the hubs/zones model, each zone can be run independently. Therefore, the network will be partitioned and voting power will be distributed at the zones level.
  • Federated Name Resolution System: Cosmos enables the name registration functionality at the zone level. Each zone can register its domain name (e.g. .com, .org), and start to govern the registration rules internally afterward.

#5 — ATOM Token

ATOM is the native token of the Cosmos blockchain. It has three main use cases:

  1. It is like a license for holders to vote on proposed changes.
  2. It is a staking token (through validation or delegation).
  3. It is used for paying transaction fees.

On Genesis day (Q4 2017), ICO of the ATOM happened and initial tokens were distributed as follows:

  • Interchain Foundation(ICF): 10%
  • All in Bits, Inc. (AIB): 10%
  • Initial Donors: 5%
  • Pre-Fundraiser Donors + Fundraiser Donors: 75%

Since genesis day’s fundraiser, the top validators started to validate and secure the Cosmos ledger, and delegators are able to delegate their ATOM tokens to validators. In return, both groups are receiving ATOM tokens as rewards. According to Cosmos:

Initially, 7% of atoms will be inflated every year and distributed back to the bonded and active atom holders (validators and delegators) for their work validating and securing the ledger. This value will adjust over time to incentivize at least 2/3 of the atoms to be bonded.

#6 — Validators

Initially (at genesis day), the Cosmos hub started to run with 100 validators. This number will increase at a rate of 13% per year for 10 years. Therefore, it is estimated that by the year 2030, the network will be secured by 300 validators.

Number of Validators of Cosmos Hub by Year

Anyone can become a validator at any time if the size of the current validator set is below the maximum allowed number of validators. Otherwise, the amount of proposed bonded ATOM tokens by the validator should be greater than the ATOMs held by the smallest validator. In the latter case, the smallest validator will be removed from the set, and all ATOM tokens of this validator (and her delegators’ ones) will enter the unbonding state.

Any malicious activity from validators (e.g. double-sign at the same height and round) will cause slashing of validators’ staked ATOM tokens.

#7 — Incentivizing Hackers

There is an interesting feature in the Cosmos Hub to secure the network. According to this policy, anyone can submit a transaction to the network saying that a specific validator has vulnerability issues. The process is as follows:

  1. The hacker submits a ReportHackTx transaction saying: “validator X got hacked. Please send bounty to this address”.
  2. After hack confirmation, the validator and corresponding delegators will become inactive.
  3. HackPunishmentRatio (default 5%) of everyone’s atoms will get slashed.
  4. HackRewardRatio (default 5%) of everyone’s atoms will get rewarded to the hacker’s bounty address.
  5. The validator recovers the remaining ATOM tokens by using his backup key.

This is an exceptional feature to ensure that validators do not have any security breaches.

This article is for informational purposes only. It should not be considered Financial or Legal Advice. Not all information will be accurate. Consult a financial professional before making any major financial decisions.

If you enjoyed this content and feeling generous, please consider supporting me by donating to my ETH wallet:

0x1779c21F79D3F1e63960990818B5bF03e89CbfFE

If you are interested in reading my similar posts in the future, please consider joining medium with my referral link. If you sign up using my link, I’ll earn a small commission and you will have unlimited access to the content from all medium writers. That way, you will support me and your other favorite writers on the platform. Thanks.

Cosmos
Web3
Technology
Innovation
Blockchain
Recommended from ReadMedium