header-langage
简体中文
繁體中文
English
Scan to Download the APP
Partnered With:

Analysis: What impact will the Arrow Glacier hard fork have on difficulty bomb execution time?

Read this article in 3 Minutes
This article is an exercise for predicting the impact of EIP 4345

Article on Smart Contracts and ERC Standards  
Original source:Yu star,Vernacular blockchain


In real life, we often see ERC in various industry reports, so what is ERC? Let's talk about it today.


01 Intelligent contract


Before WE get to ERC, let me tell you a little bit about smart contracts, which were first introduced by Nick In 1994. Saab offered. He defines a smart contract as a computerized transaction agreement that enforces the terms of a contract.


一文科普智能合约以及 ERC 标准是什么?


Smart contracts come from vending machines in our lives. When customers put money into a vending machine, the machine goes to work. What does a smart contract look like? The wisdom of the etheric fang contracts, for example, the wisdom of the each etheric fang contract has its own account, is equivalent to the vending machine has its own ID, when external accounts with some tips to call his selected intelligent contract, is equivalent to start the automatic control switch, intelligent contract will automatically according to the definition of your own code.


But unlike vending machines, the code of a smart contract can't be changed once it's created, and it can't be opened by a worker to put items in, as vending machines do.


The immutable nature of a smart contract makes it a natural fit for scenarios of contract terms, which can effectively reduce malicious tampering and human intervention. For example, a bank-like smart contract could be written on Ethereum, and then people could deposit and withdraw money through that contract. In this way, there will be no bank staff due to error or malicious changes resulting in the balance of the unequal situation.


In fact, the money deposited in the "bank" smart contract is not necessarilyETHBecause ethereum smart contracts it also allows contract developers to define their owncurrency, are the various Ethereum-based tokens we know, such asUSDTBNB, etc.


In this way, it seems that smart contracts have provided a new idea for people from all walks of life. Everyone is thinking whether they can develop some new projects and issue their own tokens based on smart contracts. Smart contracts can, of course, but they have to be done according to the rules. So it has its own set of standards to effectively prevent all sorts of miscellaneous tokens, data, etc., from appearing on the platform.


02 ERC standard


一文科普智能合约以及 ERC 标准是什么?



ERC stands for Ethereum Request for Comment, which represents the Ethereum version of the Request for comments. ERC contains technical and organizational considerations and standards. This standard was actually proposed not only by ethereum officials, but also by some Ethereum enthusiasts.


Taking the aforementioned smart contract for banks as an example, it is not difficult to imagine that it will have the following functions and instructions:


  1. Need to record the balance of each customer;


  2. Need to have the function of money transfer, that is, including saving and withdrawing money;


  3. Make sure each customer can check their balance.


After careful consideration, these functions and instructions seem to be required by every "bank" contract and Token contract, therefore, for better compatibilityThe walletCompatible,exchangeEthereum issued token protocol standards like ERC20 and ERC721.


O such as cat, dog COINS are based on standard ERC20 issue, then they will provide users with a few select button (that is, the interface function), the select button for users to check balances, transfer tokens, and so on, but the cat, dog money o the underlying implementation check balances and transfer functions such as ways of different tokens.


In addition to the Token contract, there are some ERC standards including but not limited to the design of packet, some interface definition rules, etc. Some of these standard protocols come from the Ethereum founding team, and some come from the ideas of ethereum enthusiasts and contributors. In general, it's all about creating a better Ethereum environment together.


Therefore, interested partners can also put forward their own proposals based on some shortcomings or innovations in ethereum smart contracts and make their own contributions.


The original link


Welcome to join the official BlockBeats community:

Telegram Subscription Group: https://t.me/theblockbeats

Telegram Discussion Group: https://t.me/BlockBeats_App

Official Twitter Account: https://twitter.com/BlockBeatsAsia

举报 Correction/Report
Choose Library
Add Library
Cancel
Finish
Add Library
Visible to myself only
Public
Save
Correction/Report
Submit