# Private RPC in Under 1 Millisecond: Why Verifiable PIR Works on POA and Breaks on Ethereum L1

- **Authors:** Igor53627, Gemini 4 Neon
- **Published:** 2026-12-01
- **Reading time:** 11 min read
- **Canonical URL:** https://poa.net/engineering/verifiable-pir-benchmarks/
- **Source revision:** `poanetwork/2d` commit `4e412590` (PR #129), `native/pir_rpc_adapter`
- **Live endpoints measured:** https://pir.poa.net and https://rpc.poa.net (Chain ID 77, Block 95, macOS arm64 client over WAN, `n = 25` keep-alive queries per mode)
- **Server hardware:** AMD EPYC 9375F (32C/64T, Linux, x86-64 AES-NI hardware acceleration, Rust `--release`)
- **Record schema:** `PoaAccountRecord` (233 bytes) + `PoaAccountSmt` (256-bit Keccak-256)

Read privacy is still missing from most blockchains. Vitalik Buterin's [Plinko PIR tutorial](https://vitalik.eth.limo/general/2025/11/25/plinko.html) and the Ethereum Foundation PSE [COSIC private-reads presentation](https://reads.ethereum.foundation/presentations/cosic-applied-crypto/index.html) 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.

## Headline Numbers

- **Live crypto + SMT overhead:** `< 1 ms` (202.8 ms Direct PIR and 209.1 ms RFC 9458 OHTTP vs 198.0 ms plain `https://rpc.poa.net`, p50 over WAN).
- **Live client adapter RSS:** `24.1 MiB` (25.1 MiB with OHTTP); even at 10,000,000 accounts, hints + `TopCap` take `75.0 MiB` (6.8x below Railway's 512 MiB limit).
- **Single-server throughput:** `52,000 req/s` at 1,000,000 accounts (`7,593 req/s` at 10,000,000) on one 32-thread AMD EPYC 9375F node.
- **HintInit download gap vs Ethereum Mainnet (block 23,876,768):** `291x` smaller at 1M POA accounts (`539 MiB` verified vs `153.1 GiB` / `164.4 GB` unverified on Ethereum Mainnet); still `36.9x` smaller at 10M POA accounts (`4.15 GiB`).

## 1. The HintInit Wall: POA vs Ethereum Mainnet

In client-preprocessing PIR ([Plinko, ePrint 2024/318](https://eprint.iacr.org/2024/318)), `HintInit` must run strictly on the client. Outsourcing preprocessing to the RPC operator reveals the secret hint seed and breaks privacy. Below we compare POA's measured `Subtree-Cut` stack against an Ethereum Mainnet Reth snapshot from `plinko-rs` at block 23,876,768 (`1,834,095,877` entries: `351,681,953` accounts + `1,482,413,924` storage slots). Ethereum state has grown further since that snapshot, making these figures a lower bound:

| System / Scale | HintInit Download | Client 1-vCPU Time | Client Memory (Hint + TopCap) | USDC Balance Verification |
|---|---|---|---|---|
| POA 439 (Live Chain 77) | 466.5 KiB | 30.9 ms | 1.57 MiB (24.1 MiB RSS) | Yes, 1 RTT SMT proof |
| POA 100k accounts | 72.8 MiB | 6.67 s | 11.23 MiB | Yes, 1 RTT SMT proof |
| POA 1M accounts | 538.9 MiB | 61.8 s | 26.54 MiB | Yes, 1 RTT SMT proof |
| POA 10M accounts | 4.15 GiB | ~12.5 min (est 1T) | 74.96 MiB | Yes, 1 RTT SMT proof |
| ETH Accounts-Only (351.7M, Subtree-Cut D=20) | 25.7 GiB | ~6.8 hours | ~340 MiB | No (ERC-20 USDC lives in storage slots) |
| ETH Full State (1.83B, hypothetical binary SMT D=20..24) | 123.6 to 175.0 GiB | ~35.7 hours (Keccak fold) | ~0.6 to 2.2 GiB | Not in Ethereum consensus (hexary RLP MPT) |
| ETH Index PIR (1.83B x 40 B, `plinko-rs` measured) | 164.4 GB (73.4 + 91 GB map) | ~300 core-hours | 1.07 GiB (+91 GB map) | No cryptographic verification |

**The Ethereum USDC Trap:** Even an accounts-only cut on Ethereum (351.7M accounts, 25.7 GiB to download, ~6.8 hours on 1 vCPU) still cannot prove a USDC or USDT balance. ERC-20 balances live in the 1.482-billion-slot storage trie. On POA, USDC is a native field inside `PoaAccountRecord`, committed directly under consensus `accounts_root`.

## 2. Live Production E2E (Chain 77, Block 95, keep-alive, n=25 per method)

| Mode | Cold Start | RSS | `eth_getBalance` hit p50 / p95 | `eth_getTransactionCount` hit p50 / p95 | Non-membership proof p50 / p95 |
|---|---|---|---|---|---|
| Plain `https://rpc.poa.net` (no privacy) | n/a | n/a | 198.0 ms / 259.4 ms | 195.2 ms / 257.0 ms | 193.1 ms / 270.7 ms |
| `2d-pir-rpc-adapter` -> `https://pir.poa.net` (Direct) | 3.69 s | 24.1 MiB | 202.8 ms / 301.4 ms | 239.8 ms / 313.9 ms | 218.4 ms / 283.0 ms |
| `2d-pir-rpc-adapter` -> OHTTP (`https://pir.poa.net/pir/v1/ohttp`) | 3.28 s | 25.1 MiB | 209.1 ms / 335.7 ms | 198.9 ms / 364.7 ms | 207.2 ms / 353.7 ms |

With an external third-party OHTTP relay in a separate region, expect one extra network hop (+15 to 50 ms). Pure PIR + SMT + OHTTP compute overhead stays under 1 ms.

## 3. Scale Sweep on AMD EPYC 9375F (`PoaAccountRecord = 233 B`, `kappa = 32`, `Q = 256`)

Every scale point below ran POA's exact 2D consensus record layout (`PoaAccountRecord = 233 B`, `PoaAccountSmt` 256-bit Keccak-256).

| Accounts | D / B | database.bin | Hint + TopCap | HintInit 1T / 32T | Online p50 (prep / srv / ver) | Upload / Reply | Server 32T | 100-Acct Delta (1T) |
|---|---|---|---|---|---|---|---|---|
| 439 (Live) | 8 / 8 | 466.5 KiB | 1.57 MiB | 30.9 ms / 12.3 ms | 2.3 / 0.8 / 123 us | 10 B / 3.64 KiB | 20.8M/s | 4.29 KiB (36.5x, 532 us) |
| 10,000 | 11 / 16 | 7.29 MiB | 4.38 MiB | 651 ms / 62.5 ms | 3.3 / 3.6 / 301 us | 28 B / 7.29 KiB | 4.16M/s | 4.74 KiB (74.5x, 922 us) |
| 100,000 | 14 / 20 | 72.84 MiB | 11.23 MiB | 6.67 s / 319 ms | 19.7 / 86.9 / 415 us | 224 B / 9.11 KiB | 131.5k/s | 4.83 KiB (93.4x, 2.16 ms) |
| 1,000,000 | 16 / 37 | 538.94 MiB | 26.54 MiB | 61.83 s / 3.28 s | 38 / 350 / 984 us | 512 B / 16.84 KiB | 52.0k/s | 4.87 KiB (173x, 2.99 ms) |
| 10,000,000 | 18 / 73 | 4.15 GiB | 74.96 MiB | ~12.5 min / 26.96 s | 75 us / 1.11 / 2.24 ms | 1.12 KiB / 33.22 KiB | 7.59k/s | 4.87 KiB (341x, 6.18 ms) |

## 4. Why State Model Decides Everything

Vitalik Buterin's [Plinko tutorial](https://vitalik.eth.limo/general/2025/11/25/plinko.html) shows that PIR Merkle branches multiply costs by `3 + sqrt(2)` (~4.4x) on a binary tree. The EF PSE [COSIC presentation](https://reads.ethereum.foundation/presentations/cosic-applied-crypto/index.html) reports ~48x PIR overhead on Ethereum's hexary MPT versus ~9x on a binary tree.

Ethereum's execution layer has moved past the earlier Unified Binary Tree ([EIP-7864](https://eips.ethereum.org/EIPS/eip-7864)) to the Partitioned Binary Tree ([EIP-8297](https://eips.ethereum.org/EIPS/eip-8297), with offline migration in [EIP-8347](https://eips.ethereum.org/EIPS/eip-8347)). PBT shrinks proofs and drops RLP, yet full EVM state still exceeds 1.83B entries plus chunked bytecode. PBT also groups each contract's storage under one `key_hash(address)` subtree, so ERC-20 USDC balances still live in the storage zone rather than inside each user's account leaf.

POA commits native USDC balances directly in a flat 256-bit Keccak-256 binary SMT (`accounts_root`). Cutting that tree at depth `D` packs each prefix subtree into one fixed-size PIR bucket, delivering membership and non-membership proofs in 1 RTT.

## 5. Engineering Findings & Tracked Optimizations

- **Client-side execution only:** POA web apps and SDKs can embed zero-import `wasm32-unknown-unknown` `plinko::subtree` directly in the browser (1.6 to 11 MiB in IndexedDB for 439..100k accounts). MetaMask and Rabby users deploy a personal `2d-pir-rpc-adapter` container ([Private RPC docs](https://docs.poa.net/architecture/pir-rpc/)).
- **Layout auto-sizer optimization ([2d#119](https://github.com/poanetwork/2d/issues/119)):** Switching `fit_layout_for_accounts` from power-of-two `B` rounding to `recommended_bucket_capacity` shrinks 1M `database.bin` from 954 MiB to 539 MiB (1.8x) and `TopCap` from 8 MiB to 2 MiB (4x).
- **Persistent `PLNKSMTV` checkpoints ([2d#119](https://github.com/poanetwork/2d/issues/119)):** Persisting checkpoints and retired-hint WAL lets sleeping Railway containers wake in ~100 ms and catch up via 4.87 KiB deltas (3 ms) past 100k accounts.
- **Tail `p99` tuning ([2d#119](https://github.com/poanetwork/2d/issues/119)):** Raising `kappa` from 32 to 64 halves Level-1 fallback probability from 3.1% to 1.56%.

## 6. Reproduce

Source revision: `poanetwork/2d` commit `4e412590` (PR #129), under `native/pir_rpc_adapter`. Scale sweeps ran on AMD EPYC 9375F (32C/64T, Linux, x86-64 AES-NI hardware acceleration, Rust `--release`). Live E2E queries ran from a macOS arm64 client over WAN to Cloudflare against Chain 77 block 95 (`n = 25` keep-alive queries per mode).

```bash
# 1. Live E2E comparison against production Chain 77
curl -sS https://pir.poa.net/healthz
curl -sS https://pir.poa.net/pir/v1/2d/epochs
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

# 2. Full scale sweep (439 .. 10M real 233-byte accounts)
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
"$BIN" --num-keys 10000000 --build-threads 32 --skip-1t-init
```

## References

- [Plinko: Single-Server PIR with Efficient Updates via Invertible PRFs (ePrint 2024/318)](https://eprint.iacr.org/2024/318)
- [Vitalik Buterin: Plinko PIR tutorial (2025-11-25)](https://vitalik.eth.limo/general/2025/11/25/plinko.html)
- [Vitalik Buterin: A maximally simple L1 privacy roadmap](https://ethereum-magicians.org/t/a-maximally-simple-l1-privacy-roadmap/23459)
- [EF PSE: Applied Cryptography for Privacy in Ethereum (COSIC)](https://reads.ethereum.foundation/presentations/cosic-applied-crypto/index.html)
- [EIP-8297: Partitioned Binary Tree](https://eips.ethereum.org/EIPS/eip-8297), [EIP-8347: Offline State Migration to the PBT](https://eips.ethereum.org/EIPS/eip-8347), and [EIP-7864 (earlier UBT draft)](https://eips.ethereum.org/EIPS/eip-7864)
- [Vitalik Buterin: The Verge](https://vitalik.eth.limo/general/2024/10/23/futures4.html) and [The Purge](https://vitalik.eth.limo/general/2024/10/26/futures5.html)
- [Andy Guzman (PSE): The Ethereum privacy stack (EthBoulder 2026)](https://ethereum.org/videos/ethereum-privacy-stack-andy-guzman)
- [RFC 9458: Oblivious HTTP](https://www.rfc-editor.org/rfc/rfc9458) and [TreePIR (ePrint 2023/204)](https://eprint.iacr.org/2023/204)
- [plinko-rs repository](https://github.com/poanetwork/plinko-rs), [2d repository](https://github.com/poanetwork/2d), and [POA Private RPC docs](https://docs.poa.net/architecture/pir-rpc/)
- **Discussion:** https://github.com/poanetwork/2d/issues/67
