KZG point evaluation for EIP-4844 blob verification
This page is a placeholder. All examples on this page are currently AI-generated and are not correct. This documentation will be completed in the future with accurate, tested examples.
Overview
Address:0x000000000000000000000000000000000000000aIntroduced: Cancun (EIP-4844)
EIP:EIP-4844The Point Evaluation precompile verifies KZG (Kate-Zaverucha-Goldberg) polynomial commitment proofs for EIP-4844 blob transactions. It proves that a blob (up to 128KB of data) committed to by a KZG commitment evaluates to a specific value at a random point, without revealing the full blob data. This enables Proto-Danksharding, the critical stepping stone to full Ethereum sharding.EIP-4844 introduced “blobs” - large data attachments to transactions that are stored by consensus nodes but not by execution layer. Rollups can post transaction batches as blobs (~128KB each) for ~10x cheaper than calldata, while the KZG proof ensures data availability. This precompile is the cryptographic verification that makes blob trust guarantees possible.Without this precompile, rollups would remain economically constrained by expensive calldata (~16 gas/byte). With it, Ethereum scales to support global rollup activity at acceptable costs, making the “world computer” vision practical.
Gas Cost
Fixed:50,000 gasCost is constant regardless of input validity. This covers the expensive BLS12-381 pairing operation.
Input Format
Exactly 192 bytes required:
Offset | Length | Description-------|--------|-------------0 | 32 | versioned_hash (SHA-256(commitment) with version prefix)32 | 32 | z (evaluation point, BLS field element)64 | 32 | y (claimed evaluation value, BLS field element)96 | 48 | commitment (KZG commitment, BLS12-381 G1 point)144 | 48 | proof (KZG proof, BLS12-381 G1 point)
Total input length: Exactly 192 bytesVersioned hash validation:
Must equal SHA256(commitment) with first byte set to 0x01
Version byte 0x01 indicates EIP-4844 blob commitment
Invalid proofs that pass format validation return 64 zero bytes (not an error).
Use Cases
Production Applications (Post-Cancun):
Optimism (OP Stack): Posts transaction batches as blobs instead of calldata. Reduces L1 data costs by ~90%. Each blob contains ~1000-2000 L2 transactions compressed. The Point Evaluation precompile verifies each blob’s KZG proof to ensure data availability.
Arbitrum One: Migrated to blobs post-Cancun. Blob-based batches cost ~0.01 ETH vs ~0.10 ETH for calldata equivalents. Processes 40+ TPS on L2 while keeping L1 costs manageable.
Base (Coinbase L2): Uses blobs exclusively for data posting. Handles 10M+ transactions/day with blob-based data availability, keeping fees under $0.01 per transaction.
zkSync Era: Posts compressed transaction data and zk-proofs as blobs. Combines proof verification with blob data availability for maximum efficiency.
Polygon zkEVM: Blob-based batch submission. Each blob contains validity proofs + transaction data for an entire batch.
Starknet: Posts STARK proofs and transaction data as blobs. Cairo VM state transitions verified on L1 using blob data.
Why This Matters:Before EIP-4844 (pre-Cancun), rollups paid ~16 gas/byte for calldata. A 128KB batch cost ~2M gas ≈ 0.05-0.2 ETH depending on gas prices.After EIP-4844 (post-Cancun), same data as blob costs ~50K gas (this precompile) + blob gas (separate fee market). Typical cost: 0.001-0.01 ETH for 128KB.Result: 10-20x cost reduction enables rollups to scale from ~10 TPS to 100+ TPS while maintaining decentralization and security.Future: Full DankshardingProto-Danksharding (EIP-4844) is step 1. Future upgrades will add:
Data availability sampling (DAS): Clients verify data by sampling random chunks
More blobs per block: From 3-6 blobs to 64+ blobs (8MB+ per block)
KZG multi-proofs: This precompile will verify multiple evaluation points efficiently
Target: 1MB/second sustainable data throughput (enough for global rollup adoption)
Implementation Details
Zig: Uses c-kzg-4844 library with BLS12-381 pairing
What is a Polynomial Commitment?A polynomial commitment scheme lets you commit to a polynomial p(x) with a short commitment C, then later prove p(z) = y for any point z without revealing the polynomial. Think of it like a sealed envelope containing a graph - you can prove the graph passes through specific points without opening the envelope.KZG (Kate-Zaverucha-Goldberg) Scheme:
Trusted Setup: A multi-party ceremony generates powers of a secret τ:
[1]₁, [τ]₁, [τ²]₁, ..., [τ⁴⁰⁹⁵]₁ (in elliptic curve group G1)
The secret τ is discarded - nobody knows it
Ethereum’s KZG ceremony had 140,000+ participants in 2023
Commitment: To commit to polynomial p(x) = a₀ + a₁x + a₂x² + ... + aₙxⁿ:
Verification (this precompile): Check using pairing:
e(C - [y]₁, [1]₂) = e(π, [τ]₂ - [z]₂)
This is a single BLS12-381 pairing operation (~50,000 gas)
If equation holds, proof is valid
Why This Works:The pairing check verifies: q(τ) * (τ - z) = p(τ) - yThis is only true if q(x) * (x - z) = p(x) - y, which means p(z) = y. Since nobody knows τ, you can’t fake a proof without actually knowing p(x).Security: Breaking KZG requires either:
Solving discrete log on BLS12-381 (~128-bit security)
All trusted setup participants colluding (impossibly unlikely with 140,000+ participants)
Why BLS12-381 Instead of BN254?
Higher security: ~128-bit vs ~100-bit security
Longer term: BN254 security degrades over time, BLS12-381 more future-proof
Standardization: BLS12-381 is industry standard (Zcash, Filecoin, Ethereum 2.0)
EIP-4844 Blob Structure and Encoding
Blob Anatomy:Each blob is 131,072 bytes (128 KB) of raw data, encoded as a polynomial for KZG commitment:
Raw size: 131,072 bytes (128 KB)
Encoded as: 4096 field elements × 32 bytes each = 131,072 bytes
Field elements: Values in BLS12-381 scalar field Fr (255-bit prime)
Polynomial degree: 4095 (degree n-1 for n points)
Commitment: Single 48-byte BLS12-381 G1 point
Proof size: 48 bytes per evaluation point
Encoding Process:
Split blob data into 4096 chunks of 32 bytes each
Interpret each chunk as a field element in Fr (must be < BLS modulus)
These 4096 values become coefficients of a degree-4095 polynomial