The process of Ethereum PoS to PoW will affect the interests of miners. As the merger date is approaching, many topics about forks have emerged in the community. One topic has attracted the attention of Odaily Planet Daily, that is: Ethereum forks may lead to reentry attacks, putting users at risk of losing NFTs . The user in the picture above pointed out that if the user does nothing, his NFT may be lost due to a replay attack. In response to this, different opinions also appeared in the comment area, such as that if the user does nothing, he can protect his assets. Which of the two views is right or wrong? If a fork occurs, will the user's NFT be at risk? How should one protect his assets? Odaily Planet Daily will answer the above questions by analyzing the causes. Reentrancy attacks and EIP-155Let us first review two knowledge points, one is the reentry attack and the other is EIP-155. In blockchain, a reentry attack specifically refers to a situation in which, during a network hard fork, a transaction signed by a user on the original chain can be copied by the user or others without permission on other forked chains to obtain more assets. For example, Xiao Ming has several CryptoPunks on a PoW chain. After the PoW chain forks into a PoS chain, Xiao Ming will have the same number of CryptoPunks on both chains. At this time, Xiao Ming signed a transaction on the PoW chain to sell several CryptoPunks. In theory, this transaction can be copied again on the B chain without Xiao Ming's permission. If Xiao Ming copied this transaction himself, Xiao Ming would get an extra profit from selling NFTs (which also cheated the buyer by "adding more" in disguise); if the transaction was copied by others, Xiao Ming would lose his assets on the PoS chain in vain. EIP-155 is a protocol used to prevent reentrancy attacks. Simply put, if different forked networks and test networks follow the protocol consensus and set a unique [CHAIN_ID] for themselves, reentrancy attacks can be avoided. Who protects users? How can users protect themselves?After understanding the principles of reentrancy attacks and EIP-155, we have made it clear what we should do if a fork occurs after the Ethereum merger. First of all, we need to collect some information: does Ethereum's forked chain follow the EIP-155 protocol? If the forked chain follows the EIP-155 protocol (depending on the changes to the code made by the fork leader), then the user's transactions on different blockchains are not replicable and the user does not need to do anything . If the forked chain does not follow the EIP-155 protocol (not very particular), then reentrancy attacks are feasible, and any transaction signed by the user may be copied on other forked chains. If you want to maximize your benefits, you should copy each transaction on other chains (preferably through automated contracts); if you choose to embrace (genuine) Ethereum, do not sign any transactions on forked chains. |
Reporter: Meng Fanxia and Liu Sihong Source: Beij...
Whether a person is prone to losing money can be ...
How does a man with a bulbous nose look like? By ...
As society becomes more and more advanced, the re...
We will meet all kinds of people in our lives, am...
Everyone hopes to be blessed with good fortune an...
In addition to one's own eight-character nume...
Many people have moles on their faces, and differ...
Although New Year's Eve comes once a year and...
According to the Binance announcement on August 6...
On the evening of December 19, Bitcoin suddenly f...
Different moles represent different meanings, and...
1. If her complexion is radiant, she is not far f...
Blockchain technology will quickly spread in the ...
The woman with three white eyes is insidious and ...