Tech/EIPs/#8058
EIP 8058카테고리 · 코어유형 · 표준 트랙상태 · 초안

Contract Bytecode Deduplication Discount

EIP-8058은 이더리움 네트워크에 이미 존재하는 컨트랙트 바이트코드와 동일한 코드를 배포할 때 가스 할인을 제공하는 코어 Draft 제안입니다. 중복 바이트코드 저장을 줄여 상태 팽창을 억제합니다.

Problem: Duplicate Bytecode

The same smart contract bytecode is often deployed multiple times on Ethereum — for example, token contracts, proxy implementations, and libraries that many projects deploy independently. Each deployment stores the full bytecode in the state, even if identical bytecode already exists. EIP-8058 proposes a discount for deployments that match already-existing bytecode.

Deduplication Discount Mechanism

When a contract is deployed with bytecode that matches an existing contract's code, the deployer receives a gas discount on the deployment cost. In the ideal case, the EVM would reference the existing bytecode rather than duplicating it in storage. The exact discount and the mechanism for bytecode comparison need to be specified.

State Savings

By incentivizing reuse of existing bytecode, EIP-8058 could significantly reduce the amount of duplicate data stored in Ethereum's state. This is complementary to proposals like EIP-170 (contract size limit) and code merklization efforts. Reducing state size benefits all full nodes by lowering storage requirements.

Implementation Challenges

Implementing bytecode deduplication requires changes to how the EVM handles contract creation. Ensuring that deduplicated contracts are correctly isolated and that security properties (like self-destruct behavior) are preserved is non-trivial. The proposal is in Draft status while these implementation challenges are being researched.

공식 EIP 문서open_in_new