Disclaimer: This article aims to convey more market information and does not constitute any investment advice. The article only represents the author's viewpoint and does not represent the official stance of Mars Finance
Disclaimer: This article aims to convey more market information and does not constitute any investment advice. The article only represents the author's viewpoint and does not represent the official stance of Mars Finance.
Editor: Remember to follow me
Source: Blockchain Research Society
Original title: Popular Science of Panax notoginseng | Comparison of similarities and differences between ETH and EOS
Basic similarities and differences between ETH and EOS
ETH and EOS can both run DAPP, what is their biggest difference?
If you are a student who focuses on price, you may say that ETH is many times more expensive than EOS.
If you are a technology focused student, you may say: ETH is blockchain 2.0 technology, and EOS is blockchain 3.0 technology.
The consensus mechanism of Ethereum will transition from POW to POS, and EOS will use the DPOS consensus mechanism.
POS: Proof of Stake, also known as equity certificate, generates interest through holding coins and rewards validators/nodes.
POS is like depositing money in a bank, where the bank calculates interest based on the amount and duration of digital currency you deposit. in general,
That is: holding currency with interest. The more coins you hold, the more you receive.
DPOS: DelegatedProof of Stake, also known as Share Authorization Certificate. The principle of DPOS is the same as that of POS, except for selecting some "director representatives".The principle is to have each coin holder vote, resulting in a certain number of representatives (super nodes or mining pools), which are verified and accounted for by these super nodes on behalf of the coin holders. And the rights of these super nodes are equal.
For example, EOS will generate 21 super nodes and 100 backup nodes.
DPOS is like a board of directors voting, where coin holders cast a certain number of nodes (directors). According to the established schedule, representatives take turns generating blocks. If representatives fail to exercise their power effectively (such as generating blocks), they will be removed and the network will select new super nodes to replace them. All representatives will receive a certain percentage of transaction fees as compensation.
ETH is more decentralized than EOS?
Because EOS will generate blocks from 21 super nodes, although it improves efficiency, it has been questioned by many as weakly centralized. Because the bookkeeper of PoS is randomly selected! Of course, the more tokens you lock in, the higher your chances of being selected as the bookkeeper!
The super node for DPos accounting is generated by voting. However, the Great God BM said: DPOS is currently the most suitable consensus algorithm: it is technological democracy, and its concept is exactly representative democracy in reality, an elite system constrained by the people. We'll wait and see!
ETH uses Solidity, EOS uses C++
Solidity is similar to JavaScript.
In JavaScript, a high-level programming language used by the vast majority of websites around the world and supported by mainstream browsers around the world.
Solidity is currently the main programming language for Ethereum, making it very convenient to write smart contracts.
However, researchers from Cornell University pointed out that Solidity was one of the reasons why DAO was hacked in 2016. Technically, DAO did execute on EVM as scheduled, but Solidity introduced security vulnerabilities into the contract. The designers of Solidity overlooked these vulnerabilities, and the development community was not aware of them.
Solidity developers have many web development programmers. Because the WebAPP upgrade iteration is fast, there was an error, modify, upgrade, and fix it! So sometimes, they are often not so rigorous. However, smart contracts cannot be modified, and the fast iterative style of web development is not very suitable for smart contract development.
So what is the main C++programming language used by EOS?
C++is a widely used and universal computer programming language. In the 1980s, it was invented in Bell Labs by Dr. Bjarne Stroustrup. It has a long history and a large group of C++programmers. All children in the computer department need to learn C++language.
The C++language is more powerful and efficient than web languages such as JavaScript. Programmers are also given greater responsibilities, such as having to allocate memory themselves, release memory, and so on.
Nowadays, C++is mainly active in hardware related embedded fields, graphics and image processing fields, operating system fields, and so on. For example, in embedded development, once the hardware is sold and updated, it is not as convenient as upgrading a WebAPP! So C++programmers will be more careful to prevent bugs from appearing.
Disclaimer: The content of this article is sourced from the internet. The copyright of the text, images, and other materials belongs to the original author. The platform reprints the materials for the purpose of conveying more information. The content of the article is for reference and learning only, and should not be used for commercial purposes. If it infringes on your legitimate rights and interests, please contact us promptly and we will handle it as soon as possible! We respect copyright and are committed to protecting it. Thank you for sharing.(Email:[email protected])