当前位置:网站首页>Zkevm (12) state proof of appliedzkp
Zkevm (12) state proof of appliedzkp
2022-07-04 04:58:00 【mutourend】
1. introduction
State Proof Can help EVM Proof Check all random read-write access records The effectiveness of the , By first pressing unique index Will these records grouping , Then press access order Sort . take access order be called ReadWriteCounter, Would be right access records technology , At the same time for each record Provide a unique identification . When generated state proof after , Will be generated BusMapping As lookup table Share with EVM proof.
2. Random Read-Write Data
State proof Will maintain EVM proof Of random accessible data Read and write part of .
stay state proof The operations recorded in are :
Memory: With byte array Method call memory.Stack: With RLC-encoded word array Method call stack.Storage: Put the... Of the account number storage As a key-value mapping.CallContext: by call The context of .Account: For account number state(nonce, balance, code hash).TxRefund:refund to tx sender Amount of (value).TxAccessListAccount: by account access list Of state.TxAccessListAccountStorage: by account storage access list Of state.AccountDestructed: For account destruction Of state.
Each of the above operations uses different parameters to epitomize . Specific view RW Table.
all table Of key Spliced together to form the data Unique index of . Every record With a ReadWriteCounter relation , these records First group by its unique index , Then press ReadWriteCounter Incremental sort . Known to the previous record Of access, Every target Each has its own format and update rules , Such as Memory Medium values Sure 8-bit To express .
3. Circuit Constraints
Constraints are mainly divided into two categories :
- 1) Global constraints that affect all operations : Such as key Alphabetical order of .
- 2) Specific constraints on each operation : For each type of operation selector-like Express , To enable additional constraints for this operation only .
Used to guarantee proper ordering/transition of values Constraints , With the help of fixed lookup table, use range checks of the difference between the consecutive cells. As a result of lookup table To prove correct ordering, Each column must be sorted , Therefore, you need to define the maximum value it contains ( To the corresponding fixed lookup table Of size). same table Inside 2 A continuous cell There will be a difference , Reverse sorting will result in this difference wrap around For a very large value ( because field Domain calculation ), So that the result is not table Inside .
Reference material
[1] State Proof
边栏推荐
- Deep understanding of redis -- bloomfilter
- Yolov6 practice: teach you to use yolov6 for object detection (with data set)
- cmake
- Headache delayed double deletion
- 在代码中使用度量单位,从而生活更美好
- 全国职业院校技能大赛(中职组)网络安全竞赛试题—解析
- 【MATLAB】MATLAB 仿真模拟调制系统 — AM 已调信号的功率谱与相干解调
- Sécurité du réseau dans les écoles professionnelles secondaires - preuve de mémoire
- How do good test / development programmers practice? Where to go
- Dp83848+ network cable hot plug
猜你喜欢
随机推荐
Download kicad on Alibaba cloud image station
简单g++和gdb调试
@Feignclient comments and parameters
Annex V: briefing on the attack process docx
【MATLAB】通信信号调制通用函数 — 傅里叶逆变换
LeetCode136+128+152+148
如何构建属于自己的知识引擎?社群开放申请
测试 CS4344 立体声DA转换器
中科磐云—2022广东木马信息获取解析
[cloud native] those lines of code that look awesome but have a very simple principle
Flutter 调用高德地图APP实现位置搜索、路线规划、逆地理编码
The second case analysis of the breakthrough of defense system from the perspective of the red team
STM32F1与STM32CubeIDE编程实例-74HC595驱动4位7段数码管
Zhongke Panyun - 2022 Guangxi reverse analysis ideas
关于solidworks standard无法获得许可 8544问题的总结
Annexe VI: exposé sur les travaux de défense. Docx
Annex I: power of attorney for 202x XXX attack and defense drill
1. Mx6u-alpha development board (simulating STM32 drive development experiment)
DCDC电源电流定义
"Don't care too much about salary when looking for a job", this is the biggest lie I've ever heard


![[wechat applet] good looking carousel map component](/img/66/4ae6a72fff419c7ed1ca015eb94c03.jpg)





