Ethereum: Why are the balances stored in the block circuit?
When managing assets and events on Ethereum network, the question often arises as to why balances are not stored directly in the block circuit. In this article, we are examining the reasons for this design solution and how to add new balances with each event.
Current approach: a brief overview
Currently, when the user is preparing an event on Ethereum network, it happens:
- The sender’s account is required to pick up their balance.
- Then the sender may send ether (ETH) or other property at the recipient’s address.
- Once the event is processed, the new sender balance will be updated.
Although this approach has benefits, it also has some drawbacks. Here are some reasons why balances are not stored directly in the block circuit:
* Changed: Ethereum network increases and consumers can increase the time and expenses of surgery processing directly in each block.
* Security: If the attacker manipulates the consumer’s account balance, it may acquire control. By maintaining the balance to the block circuit, the attacker is much harder to use this vulnerability.
* Lack of efficiency:
As mentioned earlier, the entire Blockchain can be time consuming and expensive to determine the user’s balance.
Option: Includes new balances with each event
Now imagine the script when the balances are stored right in each block. This is called “Block -based accounting”.
Here happens:
- Once the event is maintained, a new sender residue (including all events or waiting taxes) will be calculated and included in the block.
- The updated balance will be sent to all network nodes.
This approach has several benefits:
* Improved scaling replacement: No inquiries balance circuits are required to balance the processing time of events can significantly shorten.
* Improved safety:
Using a block accounting, it is much harder for the attackers to manipulate the user’s balance without affecting other themselves blocks.
* Effective use of network resources: By storing balances directly in each block, the network can maintain calculated resources and reduce the amount of processed data.
Conclusion
While keeping residues in the block chain may seem as an effective solution, it is presented with some disadvantages. In this article, we have investigated why balances are not stored directly on Ethereum. However, when considering alternative methods such as accounting accounting, it becomes clear that there are ways to improve scaling, safety and efficiency.
As the Ethereum network continues to develop, developers and users need to constantly update the latest development and possible solutions. Who knows? Maybe one day we will see the future where the balances will be stored right in each block!
Related articles
- Ethereum 2.0: What do you need to know “
- “How to use Ethereum Smart Agreement”
- “The advantages of distributed finance (Defi) on Ethereum network”