Skip to content

Opoch - a STARK/FRI proof-of-computation for sequential SHA-256 hash …#69

Open
ravish-oo wants to merge 1 commit intopolybase:mainfrom
ravish-oo:add-opoch-benchmark
Open

Opoch - a STARK/FRI proof-of-computation for sequential SHA-256 hash …#69
ravish-oo wants to merge 1 commit intopolybase:mainfrom
ravish-oo:add-opoch-benchmark

Conversation

@ravish-oo
Copy link

This PR adds OPOCHto the zk-benchmarks suite. OPOCH is a STARK-based proof system specialized for SHA-256 hash chain computation, using FRI (Fast Reed-Solomon IOP) over the Goldilocks field.

What's Added

  • opoch/ - New benchmark folder with benchy-based benchmarks
  • Updated .github/workflows/benchmarks.yml to include OPOCH in CI

Benchmarks

SHA256 Hash Chain Proving - Proves N iterations of h_{i+1} = SHA256(h_i)

  • N=64, N=256, N=1024, N=4096

SHA256 Chain Verify - Verification-only benchmark (OPOCH's key strength)

  • N=64, N=1024, N=4096

Results (Apple M-series, local)

Proving

N Time Proof Size Compressed
64 6.9s 321 bytes 186 bytes
256 27.6s 321 bytes 186 bytes
1024 110s 321 bytes 188 bytes
4096 440s 321 bytes 188 bytes

Verification

N Time Proof Size
64 7.8 µs 321 bytes
1024 21 µs 321 bytes
4096 19 µs 321 bytes

Key Differentiators

  • Constant proof size: 321 bytes regardless of N (vs 40KB-200KB for other zkVMs)
  • Compressed size: 186 bytes with zstd
  • Sub-millisecond verification: ~8-20 µs (vs 2-15 ms for other frameworks)
  • Verification scales O(1): Time nearly constant regardless of computation size
  • No Groth16 wrapper needed: Native STARK proofs are already small

Technical Details

  • Proof System: STARK with FRI-based polynomial commitment
  • Field: Goldilocks (64-bit prime field)
  • Security: 128-bit (68 FRI queries, 8x blowup factor)
  • Architecture: Segment proofs → Level-1 aggregation → Level-2 aggregation

Checklist

  • Follows existing benchmark structure (Cargo.toml, benches/bench.rs, src/lib.rs)
  • Uses benchy crate with standard metrics (proof_size_bytes, compressed_proof_size_bytes)
  • Added to CI workflow
  • Tested locally with cargo bench

Repo: https://github.com/chetannothingness/opoch-hash

@vercel
Copy link

vercel bot commented Feb 4, 2026

@ravish-oo is attempting to deploy a commit to the Polybase Team on Vercel.

A member of the Team first needs to authorize it.

@ravish-oo
Copy link
Author

@timmyjose - cna u pls check this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant