Private RPC in Under 1 Millisecond: Why Verifiable PIR Works on POA and Breaks on Ethereum L1
Read privacy is still missing from most blockchains. Vitalik Buterin's
Plinko PIR tutorial (opens in a new tab)
and the Ethereum Foundation PSE
private-reads research (opens in a new tab)
both point to single-server PIR as the path forward. We benchmarked POA's live
Subtree-Cut Verifiable PIR stack from 439 accounts up to 10,000,000
accounts. The numbers show why the same primitive fits inside a 24 MiB personal
container on POA while hitting hard state-model limits on Ethereum Mainnet.
https://rpc.poa.net (p50 over WAN).1. The HintInit Wall: POA vs Ethereum Mainnet (Log Scale)
In client-preprocessing PIR
(Plinko, ePrint 2024/318 (opens in a new tab);
see also Vitalik Buterin's
L1 privacy roadmap (opens in a new tab)),
HintInit must run strictly on the client. Outsourcing preprocessing to
the RPC operator exposes the secret hint seed and breaks read privacy. Below we
compare POA's measured Subtree-Cut stack against an Ethereum Mainnet
Reth snapshot from
plinko-rs (opens in a new tab)
at block 23,876,768. That snapshot holds 1,834,095,877 state
entries (351.7M accounts plus 1.482B storage slots). Ethereum state has grown
further since then, making these numbers a lower bound.
Bytes a client must stream once to construct private hints. POA 1M (0.54 GiB, verified) vs Ethereum Mainnet block 23,876,768 (164 GB, unverified).
PoaAccountRecord, committed directly under consensus
accounts_root.
2. Live Production E2E: Private RPC Feels Identical to Plain RPC
Local microbenchmarks hide network jitter. We ran 25 sequential keep-alive JSON-RPC
calls per method over Cloudflare against live Chain 77 (block 95, 439 accounts). We
compared plain https://rpc.poa.net (no read privacy) against a local
2d-pir-rpc-adapter talking to live https://pir.poa.net over
Direct HTTPS and over
RFC 9458 OHTTP (opens in a new tab)
(HPKE encryption plus Binary HTTP framing).
Every PIR lookup verified membership or non-membership against consensus block 95 stateRoot.
https://rpc.poa.net (no privacy)
PIR Direct HTTPS (https://pir.poa.net)
PIR + OHTTP (https://pir.poa.net/pir/v1/ohttp)
Even at 1,000,000 accounts, local PIR + Keccak-256 SMT verification is under 0.7% of WAN RTT.
3. Interactive Scale Explorer: 439 to 10,000,000 Accounts (EPYC 9375F)
Every scale point below ran POA's exact 2D consensus record layout
(POA_ACCOUNT_RECORD_BYTES = 233, PoaAccountSmt 256-bit
Keccak-256, 2-level FlatB PIR with kappa = 32,
Q = 256) on a single AMD EPYC 9375F host. Select any network size to
inspect its geometry, container fit, latency, and delta efficiency.
Click a scale point to highlight it across all three curves and inspect exact hardware measurements.
| Accounts | D / B | DB Size | Hint+Cap | Init 1T / 32T | p50 (prep/srv/ver) | Up / Reply | Srv 32T | 100-Acct Delta |
|---|
4. Why State Model Decides Everything: 1-RTT Proof vs Deep Trie
In his
Plinko tutorial (opens in a new tab),
Vitalik shows that fetching Merkle branches through PIR multiplies costs by
3 + sqrt(2) ~ 4.414x on a binary tree. The Ethereum Foundation PSE
COSIC analysis (opens in a new tab)
estimates ~48x PIR read overhead on today's hexary RLP MPT versus ~9x on a binary
tree. Ethereum has since moved from the earlier Unified Binary Tree
(EIP-7864 (opens in a new tab))
to the Partitioned Binary Tree
(EIP-8297 (opens in a new tab)).
Offline state migration runs through
EIP-8347 (opens in a new tab).
PBT shrinks proofs and removes RLP, yet full EVM state still exceeds 1.83B entries
plus chunked bytecode. State also grows 30 to 50 GB/year
(The Verge (opens in a new tab),
The Purge (opens in a new tab)).
POA avoids those bottlenecks by design.
Hexary MPT Today, Zoned PBT (EIP-8297) Next
Today, reading USDC traverses the account trie to the USDC contract, then a
16-way RLP storage trie. Under future
EIP-8297 PBT (opens in a new tab),
zones group each contract's storage under one key_hash(address)
subtree. ERC-20 USDC balances still sit in the storage zone, not in each user's
account leaf. Private L1 reads still require a binary-tree zkVM sidecar
(Andy Guzman, EthBoulder 2026 (opens in a new tab))
or an unverified flat index with 91 GB of mappings.
Native USDC in 233-Byte Record + Subtree-Cut
Cutting the 256-bit Keccak-256 accounts_root SMT at depth
D turns every prefix subtree into one fixed-size PIR bucket. One PIR
query returns all accounts under that prefix; the client folds the bucket in
0.1 to 2.2 ms and checks equality against public
TopCap[p] anchored to consensus
stateRoot.
5. Engineering Findings & Next Optimizations
Running the exact production code at 1M and 10M accounts surfaced four concrete engineering conclusions. We track the three code optimizations in 2d#119 (opens in a new tab):
Two Practical Ways to Run Verifiable PIR
Hint generation and lookup verification always stay on the client side. POA web
apps and SDKs can run plinko::subtree directly in the browser via
zero-import wasm32-unknown-unknown (1.6 to 11 MiB in IndexedDB for
439 to 100k accounts). For external wallets such as MetaMask and Rabby, users
deploy a personal 2d-pir-rpc-adapter container on Railway, Fly.io,
or local Docker (see the Private RPC guide).
Layout Auto-Sizer Optimization
fit_layout_for_accounts in server_sync.rs currently
scales D first and rounds B up to a power of two. At 1M
accounts that selects D=18, B=16 (954 MiB DB, 8 MiB TopCap) instead
of recommended_bucket_capacity's D=16, B=37 (539 MiB DB,
2 MiB TopCap: 1.8x smaller download and 4x smaller TopCap).
Persistent PLNKSMTV Checkpoints Past 100k
Memory stays compact even at 10M accounts (75 MiB checkpoint), well inside a 512
MiB container. Cold 1-vCPU HintInit crosses 62 seconds at 1M
accounts. Persisting the PLNKSMTV checkpoint and retired-hint WAL on
a volume lets sleeping Railway containers wake in ~100 ms and catch up via 4.87
KiB deltas (3 ms).
Why Server p99 Jumps at 10M (33.5 ms vs 1.11 ms p50)
With 2-level PIR at kappa = 32, about 3.1% of queries miss Level 0
and fall back to Level 1, which scans smaller blocks and performs more XOR work.
Raising kappa to 64 halves the fallback rate to 1.56% at minimal
extra hint memory.
6. Reproduce Every Number Yourself
Both benchmarks live in
poanetwork/2d (opens in a new tab)
under native/pir_rpc_adapter (commit 4e412590, PR #129).
The scale sweep ran on AMD EPYC 9375F (32C/64T, Linux, x86-64 AES-NI hardware
acceleration, Rust --release). The live E2E run executed from a macOS
arm64 client over WAN to Cloudflare against Chain 77 block 95 (n = 25
keep-alive queries per mode).
# Verify public PIR origin health + epochs
curl -sS https://pir.poa.net/healthz
curl -sS https://pir.poa.net/pir/v1/2d/epochs
# Build local adapter (commit 4e412590) and run live Direct + OHTTP comparison
cargo build --release \
--manifest-path native/pir_rpc_adapter/Cargo.toml \
--bin 2d-pir-rpc-adapter
python3 native/pir_rpc_adapter/scripts/bench_live_e2e.py \
--queries 25
# Build PoaAccountRecord + PoaAccountSmt scale benchmark (commit 4e412590)
cargo build --release \
--manifest-path native/pir_rpc_adapter/Cargo.toml \
--bin bench_poa_pir
BIN=./native/pir_rpc_adapter/target/release/bench_poa_pir
for n in 439 10000 100000 1000000; do
"$BIN" --num-keys "$n" --build-threads 32
done
# 10M accounts (4.15 GiB DB, skips 1T HintInit)
"$BIN" --num-keys 10000000 --build-threads 32 --skip-1t-init
References & Further Reading
Primary cryptographic papers, Ethereum research, and open-source implementations referenced in this benchmark:
-
Plinko: Single-Server PIR with Efficient Updates via Invertible PRFs (ePrint 2024/318) (opens in a new tab)
Alexander Hoover, Sarvar Patel, Giuseppe Persiano, Kevin Yeo. Core client-preprocessing PIR scheme with O(1) incremental updates.
-
Vitalik Buterin: Plinko PIR tutorial (November 2025) (opens in a new tab)
Accessible walkthrough of Plinko PIR, Ethereum state sizing, and the 3 + sqrt(2) binary-tree Merkle branch multiplier.
-
Vitalik Buterin: A maximally simple L1 privacy roadmap (opens in a new tab)
Frames RPC read privacy (PIR / ORAM) alongside on-chain write privacy as core pillars of the Ethereum privacy stack.
-
EF PSE: Applied Cryptography for Privacy in Ethereum (COSIC) (opens in a new tab)
Quantifies private-read overhead (~48x on Ethereum hexary MPT vs ~9x on a Unified Binary Tree) and stateless GPU PIR tradeoffs.
-
EIP-8297: Partitioned Binary Tree & EIP-8347 Migration (opens in a new tab)
Current Ethereum binary state tree proposal superseding EIP-7864 UBT (opens in a new tab). Paired with offline migration (EIP-8347 (opens in a new tab)) and decentralized-state zone tradeoffs (opens in a new tab).
-
Vitalik Buterin: The Verge & The Purge (October 2024) (opens in a new tab)
Why Ethereum's hexary MPT and 30 to 50 GB/year state growth complicate client verification (Part 5: The Purge (opens in a new tab)).
-
Andy Guzman (PSE): The Ethereum privacy stack (EthBoulder 2026) (opens in a new tab)
Explains how wallet RPC queries leak behavioral metadata and discusses verifiable MPT-to-UBT sidecars for private reads.
-
RFC 9458: Oblivious HTTP & TreePIR (ePrint 2023/204) (opens in a new tab)
OHTTP transport decoupling client IPs from PIR origins, plus puncturable-PRF comparison (TreePIR (opens in a new tab)).
-
plinko-rs: Rust Plinko, Subtree-Cut Verifiable PIR & plinko-rpc (opens in a new tab)
Open-source Rust library, zero-import
wasm32smoke tests, and Ethereum Mainnet block 23,876,768 scale measurements (docs/protocol_overview.md). -
POA Private RPC (Verifiable PIR) Documentation
Deployment guide for personal Railway, Fly.io, and Docker containers against live
https://pir.poa.netandhttps://rpc.poa.net.
Questions, reproductions, and peer review
Ran bench_poa_pir on your own machine, spotted an edge case, or want
to propose a benchmark scenario? Leave a comment in the GitHub discussion thread
or share this report.