Blockchain Ethereum will be suitable for cloning contract functions

As of Thursday, EIP 1167: Minimal Proxy Contract, created by Peter Murray, Nate Welch and Joe Messerman, has entered the "final consultation phase." This Ethernet improvement proposal will be publicly consulted in the next two weeks. Assuming everything goes well afterwards, the code will be finalized. If rejected by the community, the EIP will re-enter the draft status.

Blockchain Ethereum will be suitable for cloning contract functions

The EIP is suitable for the function of cloning contracts and aims to reduce the gas price in the cloning contracts. Specifically, EIP 1167 allows any number of cloned contracts to redirect calls to a known address (called the master contract) and convince users that the master contract behaves in the same way as the redirect contract. The trustworthiness of the code depends on its immutability: once deployed on the main contract, the code cannot be changed, and the main contract is irreplaceable. If the main contract terminates by itself, all cloned contracts will also stop working.

The clone contract's dependence on the master contract and the immutability of the master contract may promote user trust, but it is also a critical weakness. This may remind you of the Parity incident. Although this is not directly related to cloning contracts, it does illustrate the potential dangers of relying on centralized contracts. At that time, all Parity's multi-wallets were linked to a library contract, so when the library contract was terminated due to a loophole, 587 wallets connected to the library contract, a total of 513,774.16 ether coins, were frozen.

Social coders and authors of Giveth Bowen Sanders explained to ETHNews that through this EIP, the clone contract will no longer be a copy of the main contract, but a "minimal proxy" (so this is also the name of the EIP), and this clone contract will allow coding Staff simplify cumbersome contracts and perform key functions. Then, the minimum agent relies on the main contract to obtain full functionality. Sanders explained:

"[In fact] thousands of contracts are often cloned, which also wastes a lot of unnecessary space and inflates the data segment of the blockchain. Although some contracts need to be cloned for use and security, such as ConsenSys Or Gnosis multi-signature wallet, but some cloned contracts can reuse the original contract and proxy contract in many cases, which will save a lot of space."

Another main function of the EIP is that it specifies the creation of a contract that allows a third party (such as Etherscan) to query the bytecode of the redirection (clone) contract and determine the location of the main contract.

At the technical level, EIP 1167 will standardize the "minimum bytecode of known redirect calls." If it is finally determined, it will affect all developers who try to build a cloned minimal proxy contract system, and these contracts will redirect calls to the original master contract.

Absolute Linear Encoders

Absolute Linear Encoders,Custom Absolute Encoder,Rotary Encoder Magnetic,Miniature Absolute Encoder

Yuheng Optics Co., Ltd.(Changchun) , https://www.yuhengcoder.com