---
eip: 8096
label: EIP-8096
title: Increase Gas Cost of Point Evaluation
status: Draft
type: Standards Track
category: Core
created: 2025-12-02
requires: 4844
official: https://eips.ethereum.org/EIPS/eip-8096
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8096.md
canonical: https://eips.huatuo.xyz/zh/eip-8096/
lang: zh
tldr: 将 EIP-4844 KZG 点求值预编译的 gas 成本从 50,000 翻倍到 100,000，因为基准测试表明它定价偏低，否则会拖累区块 gas limit 的提升。
tags: [gas, precompile, kzg, repricing, core]
---

# EIP-8096: Increase Gas Cost of Point Evaluation

> Increases cost of point evaluation precompile

**TL;DR:** 将 EIP-4844 KZG 点求值预编译的 gas 成本从 50,000 翻倍到 100,000，因为基准测试表明它定价偏低，否则会拖累区块 gas limit 的提升。

## 它解决什么问题？

[EIP-4844](/eip-4844/)（proto-danksharding）在地址 `0x0A` 添加了一个验证 KZG 证明的预编译：给定 blob 的带版本哈希、一个点 `z`、声称的值 `y` 和一个证明，它检查所承诺的多项式在 `z` 处的取值确实是 `y`。Rollup 用它在 EVM 内部证明关于 blob 数据的事实。

它的价格固定为 50,000 gas。各客户端团队对这个预编译做基准测试后发现，相对于实际工作量，这个价格太低了。这对扩容很重要：只有当*每一个*操作的最坏情况都能装进一个区块的时间预算时，区块 gas limit 才能被安全提高。一个塞满了定价偏低的点求值的区块，会成为可能出现的最慢区块之一，从而限制了 gas limit 能提高到多少。

## 它如何运作

这项改动只是一个数字：

| | 之前 | 之后 |
| --- | --- | --- |
| 点求值预编译（`0x0A`） | 50,000 gas | 100,000 gas |

输入、输出和验证逻辑完全不变。只有每次调用收取的 gas 会变化，从该 EIP 激活的分叉开始生效。

这是一项更大范围工作的一部分，目的是为成本已与实际资源消耗不符的操作重新定价，与 [EIP-7883](/eip-7883/) 中对 ModExp 的提价以及 [EIP-7904](/eip-7904/) 中更广泛的计算分析本着同样的精神。

## 示例代码

一个调用该预编译的 rollup 风格合约。转发的 gas 必须覆盖新价格：

```solidity
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

library PointEvaluation {
    address constant PRECOMPILE = address(0x0A);
    uint256 constant GAS_COST = 100_000; // was 50_000 before EIP-8096

    /// input = versionedHash (32) | z (32) | y (32) | commitment (48) | proof (48)
    function verify(bytes memory input) internal view returns (bool ok) {
        require(input.length == 192, "bad input");
        (ok, ) = PRECOMPILE.staticcall{gas: GAS_COST}(input);
    }
}
```

在链下 gas 预算中估算其影响：

```ts
const POINT_EVAL_GAS_OLD = 50_000n;
const POINT_EVAL_GAS_NEW = 100_000n;
const proofsPerBatch = 6n;
console.log("extra gas per batch:", (POINT_EVAL_GAS_NEW - POINT_EVAL_GAS_OLD) * proofsPerBatch);
```

## 需要注意

- **状态：Draft。** 新的成本以及它将随哪个分叉发布尚未最终确定。
- 对于在该调用上硬编码了约 50,000 gas 补贴额度的合约，这是向后不兼容的：激活后这些调用会耗尽 gas。请转发足够的 gas，或避免硬编码补贴额度。
- 每个批次验证大量点求值的 rollup 会看到更高的 L1 验证成本；这项改动不涉及 blob gas 本身。
- 没有任何东西变得更便宜，因此该 EIP 不会引入新的攻击面；其动机是消除一个限制 gas limit 提升的最坏情况区块。


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-8096
