The biggest problem with the Ethereum state model is: the huge difference between average state growth and worst-case state growth.
This article is a latest discussion proposed by Vitalik in the Ethereum Researcher Forum, which is a recombination of the ideas on the practical implementation of EIP1559 proposed by the Ethereum research scientist Barnabé Monnot.
The following is the translation of the original text. The team has annotated some words and made some deletions.
Author: Vitalik Burerin
Special thanks to @barnabe for suggesting a similar idea early on.
As I discussed in detail in my previous Position Paper on Resource Pricing, Gas in Ethereum actually pays for three different resources:
1. Bandwidth (transaction data that must be downloaded)
2. Calculation (time to verify and execute a transaction)
SEC General Counsel Dan Berkovitz Resigns: Jinse Finance reported that the US Securities and Exchange Commission general counsel Dan Berkovitz will step down on January 31. Despite being known as a decentralized finance hardliner, he reportedly met and had dinner with FTX founder Sam Bankman-Fried during his previous stint at the CFTC. [2022/12/23 22:03:59]
3. Storage (history, but more importantly state statements such as account balances, nonces, contract codes, contract storage)
Plan Bai commented: "The Position Paper on Resource Pricing" is a draft of blockchain resource pricing, in which Vitalik deduced the corresponding pricing method through mathematical calculations.
The draft includes: price and quantity, social cost curve, primary and secondary auctions, adjustable fee schedules, storage maintenance fees, and why are fixed fees underused?
Blockchain company AMAXG launches NFT trading platform BIZA-UVIT: November 4 news, blockchain company AMAXG said on Thursday that it has entered the NFT token platform business. AMAXG said that it has recently launched the digital asset NFT trading platform BIZA-UVIT, and has established strategic partnerships with the Korean Federation of Arts and Cultural Organizations (FACO), the World Medical Beauty Exchange Association (GMAEA), and the Korean Blockchain Enterprise Promotion Association. FACO plans to digitize artworks and auction and sell them globally through BIZA-UVIT. GMAEA will use AMAXG's two-way artificial intelligence education platforms BIZA-Metaversity, BIZA-UVIT and decentralized person-to-person shopping mall BIZA Empire Mall. (The Korea Herald)[2021/11/4 21:25:02]
Unlike bandwidth and compute, which are ephemeral costs, storage is not like these two costs, it will exceed the ephemeral limit.
Vitalik Buterin’s Ethereum documentary film “Ethereum: The Infinite Garden” over-raised 1035.96 ETH within 3 days: According to news on July 19, Vitalik Buterin’s Ethereum documentary “Ethereum: The Infinite Garden” raised 1035.96 ETH in 3 days ETH (approximately $1.97 million), the documentary’s fundraising goal is 750 ETH. 95% of the funds raised will be used for film production budget, about 984.16 ETH; 2% will be donated to Carbonfund for carbon offset, about 20.72 ETH; 3% will be donated to GitcoinGrants to support the open source Ethereum project, about 31.08 ETH. According to the documentary's projected timeline, the film will launch in winter 2023. [2021/7/19 1:02:38]
There is a limit to how many calculations a node can perform or download data within the time of a block, and once the block is passed, the amount required for downloading and verification is reached. Most of the block is gone (only a few sync nodes need to process it in the future).
Vitalik pledged 562 SNX on Synthetix L2: Browser information shows that Vitalik pledged 562 SNX worth $9,700 on Synthetix’s Layer 2 yesterday. [2021/1/26 13:33:07]
And storage is an ongoing cost. If a single block state increases by 100MB, that block can be processed right now, but a series of blocks will render Ethereum unusable. The "burst" impact of state growth is negligible, but the long-term impact is most severe, as once established a very large state permanently burdens the network.
However, as the state becomes stateless (Bai plan note: the stateless Ethereum scheme), the long-term impact of (super-large) state will be greatly reduced: the state will not impose a permanent burden on the network, it will only burden about a year. Time, during that year, only a small fraction of nodes need to actually store that (huge) state. But this long-term (one-year) cost is still real and needs to be priced in.
Golden Finance Live Report Vitomir Jevremovic, CEO of VR ALL ART: Subverting the Art World with Virtual Reality and Blockchain Technology: Real-time reports from the front reporter of Golden Finance, the 2nd Global Fintech and Blockchain China Summit was held on April 12 at Held in Shanghai, VR ALL ART CEO Vitomir Jevremovic pointed out at the meeting that art has no borders, but the art market has borders. Due to the limitations of transportation distance and local market, there are challenges in the art market, and the liquidity of art investment is very poor . The characteristics of blockchain technology enable it to provide financial transaction payment support, ensure the unique identification, art certification and traceability of artworks on the chain, and promote the circulation of artworks. In addition, through VR technology, the combination of virtual reality and blockchain technology can also break the distance limit and provide users with the possibility to better browse the art world. [2018/4/12]
Average size vs worst case storage size
One of the shortcomings of modeling state in current (state) protocols (generally considered unsustainable) and improved protocols with state expiration is the large difference between average state growth and worst-case state growth.
Consider the current protocol. Today, the total size of the state is about 550 million objects, which is about 32GB (not including trie overhead). If we remove all not touched states from the previous year, the total can easily drop by more than half.
Now, what's the worst?
The creation of the contract code is charged at a fee of 200Gas per byte. Therefore, if a block is divided into 3 transactions and each transaction creates a contract, we can make 3 contracts of 20558 bytes for 12334800Gas+3*55000Gas, to increase the overhead of contract creation.
In this way, in a single block, the storage size can be increased by 20600*3=61800 bytes.
Assuming that the average block time is 13.1 seconds, there are 31556925/13.1=2408925 blocks per year. In general, the state can grow by 61800*2408925=148871600381.67938 bytes, which is about 138 GB.
This difference is about 10 times. (White Plan Note: The 16GB of data below is understood according to the context to be the current total state size of Ethereum in one year)
Very importantly, consumer hardware RAM can hold the actual size which may be 16GB (if not, we can adjust the gas price or state expiration to make it suitable), while 138GB cannot be stored.
It would be nice if we could make the worst case closer to the average case.
Two-track EIP-1559
A natural solution to this problem is to use EIP-1559 pricing for temporary and permanent costs, but with a different adjustment period.
For temporary costs, the price can be adjusted by more than 10% at a time. However, for permanent costs, it will make price adjustments much slower.
If we take the AMM cost curve mechanism as a basis, for storage we can consider a curve with a target rate of 1GB per month, and the cost increases depending on how much we exceed the target:
For example, storage costs can double for every GB over target. In this case, it may take around 3 days for the storage block price to double. If the storage grows beyond 10GB, the storage cost will be 1000 times the normal price, making it economically impossible to continue storing.
There are two ways to achieve this:
1. Purchase storage with Gas. That is, using SSTORE to create a new storage slot consumes Gas as it does now, but the amount of Gas consumed will be variable. The downside of this is that it creates (disguised) incentives for users to refill storage on weekends when gas prices are lower.
2. Purchase storage with ETH. In addition to Gas, transactions (and calls) need to provide another resource (we can call it mana), which will use a similar mechanism to Gas, but with different parameters. This has the disadvantage of complicating the calling rules and requiring the addition of a new CALL opcode.
Note that there is a hybrid option here:
3. Storage can be priced in ETH, but charged in Gas (so if the base fee doubles, the Gas required to fill a storage slot will automatically be halved). We can exclude ETH used for scaling storage from EIP 1559 Gas price update rules or even block limits.
4. Transform Gas into three concepts more comprehensively: Gas, Execution Point, and Storage Point. 1Gas=1wei; A transaction that allocates Gas simply means that it is converting some of its wei into a special form that can be used to pay for resources. This form works the same as Gas in terms of how it is passed between the call and the subcall.
However, AMM now manages two costs: execution point cost and storage point cost. When an execution process processes an opcode that currently consumes N gas, it will spend N execution points, which means N* execution_point_cost is required to pay Gas. Filling a storage slot requires 1 storage point, so storage_point_cost is required to charge Gas.
Finally, also note that refunds are expected to be removed from the state deadline roadmap. This is because of a technical reason: storage slots cannot "become empty" and qualify for a refund, so they can only be set to zero, and zero records must remain in that state until the period ends and the state can expire. This greatly reduces the complexity issues encountered in earlier attempts at storage rent.
Tags:
"Find New" is a blockchain project observation project launched by Jinse Finance. It covers the development of projects in various fields of the industry, and the specific design includes project overview.
The key to Kusama's scalable multi-chain architecture is that parachains connect to the network by renting a slot on the relay chain through a permissionless auction. As Polkadot's canary network.
Since the decentralized stablecoin protocol FEI completed the founding stage and launched the Ethereum mainnet, its stabilization mechanism failed to stabilize FEI at $1 as expected.
The biggest problem with the Ethereum state model is: the huge difference between average state growth and worst-case state growth.
Since the decentralized stablecoin protocol FEI completed the founding stage and launched the Ethereum mainnet, its stabilization mechanism failed to stabilize FEI at $1 as expected.
Layer 2 will not fail like the lightning network, but it is far worse than ETH2.0, and it is also bad news for minersEthereum finally broke through a new high on the evening of April 2, but on the other hand.
Recently, the algorithmic stable currency track has become lively, Basis is working hard to launch V2, and FEI has also begun to attract people's attention. Today.