STARK Stylus Verifier

10-18x Gas Savings on Arbitrum

Arbitrum APAC Mini Hackathon 2026

STARK Verification, 18x Cheaper

Poseidon hash and Merkle path verification implemented in Rust for Arbitrum Stylus. Experience the gas savings compared to Solidity in real-time.

Stylus (Rust/WASM)
Solidity (EVM)
18x Savings

Connect Your Wallet

Connect your wallet to verify Merkle proofs and compare gas costs between Stylus and Solidity

Gas Comparison
Stylus vs Solidity gas consumption by Merkle tree depth
18x
Depth 8
18x
Depth 16
18x
Depth 32
Stylus (Rust/WASM)
Solidity (EVM)
Showing expected benchmark data • Run verifications to see live results
Benchmark Results
Detailed gas measurements comparing Stylus vs Solidity implementations

ExpectedMini STARK Verifier

OperationStylusSoliditySavings
Poseidon Hash (single)(OpenZeppelin 2025)11,887220,24418.5x
Merkle Verify (depth 8)13,000240,00018x
Merkle Verify (depth 16)26,000480,00018x
Merkle Verify (depth 32)52,000960,00018x
Batch Poseidon (10 hashes)118,8702,202,44018.5x

ProjectedFull STARK Verifier

ComponentStylusSoliditySavings
Poseidon hashes (full verifier)160,0003,000,00018x
Field arithmetic100,0001,000,00010x
Merkle paths52,000960,00018x
Full STARK Verifier (projected)312,0005,000,000~16x

Average Gas Savings

Stylus delivers consistent 10-18x improvements for crypto operations

~18x

Why Stylus Wins for STARK

64

64-bit Registers

Native 64-bit operations vs EVM's 256-bit overhead. Perfect for field arithmetic.

Native Loops

No gas metering overhead per iteration. Poseidon's 65 rounds execute natively.

0

Zero Precompile

STARK operations have no EVM precompiles. Stylus provides the missing efficiency.

Tech Stack

Arbitrum StylusRustSolidityNext.js 16thirdweb v5Poseidon BN254Foundryshadcn/ui