Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Unofficial Scroll ZK EVM Code Review
Search
Cheng JIANG
September 15, 2023
Research
0
110
Unofficial Scroll ZK EVM Code Review
Cheng JIANG
September 15, 2023
Tweet
Share
More Decks by Cheng JIANG
See All by Cheng JIANG
XCM_V2概览与去中心化的Liquid_Staking方案.pdf
alexcj96
0
98
Dive into Scroll ZkEVM
alexcj96
0
120
Other Decks in Research
See All in Research
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
390
姫路市 -都市OSの「再実装」-
hopin
0
1.7k
生成AI による論文執筆サポート・ワークショップ 論文執筆・推敲編 / Generative AI-Assisted Paper Writing Support Workshop: Drafting and Revision Edition
ks91
PRO
0
150
R&Dチームを起ち上げる
shibuiwilliam
1
200
学習型データ構造:機械学習を内包する新しいデータ構造の設計と解析
matsui_528
6
3.8k
Upgrading Multi-Agent Pathfinding for the Real World
kei18
0
440
それ、チームの改善になってますか?ー「チームとは?」から始めた組織の実験ー
hirakawa51
0
900
2026 東京科学大 情報通信系 研究室紹介 (大岡山)
icttitech
0
700
[SITA2025 Workshop] 空中計算による高速・低遅延な分散回帰分析
k_sato
0
120
英語教育 “研究” のあり方:学術知とアウトリーチの緊張関係
terasawat
1
500
社内データ分析AIエージェントを できるだけ使いやすくする工夫
fufufukakaka
1
960
An Open and Reproducible Deep Research Agent for Long-Form Question Answering
ikuyamada
0
340
Featured
See All Featured
How to Ace a Technical Interview
jacobian
281
24k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
780
Ruling the World: When Life Gets Gamed
codingconduct
0
170
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
73k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
200
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
We Have a Design System, Now What?
morganepeng
55
8k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.1k
The agentic SEO stack - context over prompts
schlessera
0
690
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
120
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
230
A Soul's Torment
seathinner
5
2.4k
Transcript
Unofficial Scroll ZK EVM Code Review https://linktr.ee/alexcj96
Summary - Why ZK EVM works? - Architecture - Tech
stack comparaison - Arithmetization - Trace generation - Gate configuration - Circuit tools - Some opcode gadgets - Public input circuit - Synthesize - Combining with halo2 - Observation
Why ZK EVM works? ❖ EVM is a State Machine
❖ Public-key cryptography ➢ Verify txs all represent users' intention ❖ Blockchain consensus ➢ Verifier ➢ Previous state root ❖ MPT ➢ Verify initial state ➢ Verify new root ❖ ZK ➢ Succinctness ➢ Lookup Arguments ❖ Ethereum as a DA Layer
Architecture
Tech stack comparaison
Arithmetization
Trace generation - flow (scroll has simplified this)
Trace generation - types (simplified)
Gate configuration - flow
Gate configuration - gadgets Add cb constraints etc
Gate configuration - lookup
Circuit tools - cell manager
Circuit tools - constraint builder
Circuit tools - constraint builder
Circuit tools - utils
Some opcode gadgets - AddSub
Some opcode gadgets - ReturnRevert (simplified)
Public input circuit
Public input circuit
Synthesize
Combining with halo2
Combining with halo2
Observation - Scroll doesn’t support self destruct EVM opcode -
Scroll’s MPT tree uses poseidon circuit - Scroll uses chain_id and block_number to calculate block_hash!!! - Scroll still uses SuperCircuit which is very zk-unfriendly - Don’t read PSE’s code, it’s not production ready!!! - …
Thanks!