当前位置:网站首页>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
边栏推荐
- 令人头痛的延时双删
- When using flash to store parameters, the code area of flash is erased, which leads to the interrupt of entering hardware error
- 【MATLAB】MATLAB 仿真模拟调制系统 — SSB 系统
- 每日刷题记录 (十二)
- 测试 CS4344 立体声DA转换器
- Cmake compilation option setting in ros2
- YoloV6实战:手把手教你使用Yolov6进行物体检测(附数据集)
- 软件设计文档示例模板 - 学习/实践
- Create ASM disk through DD
- Annex VI: defense work briefing docx
猜你喜欢

定制一个自己项目里需要的分页器

2022广东省赛——编码信息获取 解析flag

附件五:攻击过程简报.docx

Correct the classpath of your application so that it contains a single, compatible version of com. go

附件六:防守工作簡報.docx
![[Yugong series] go teaching course 002 go language environment installation in July 2022](/img/a8/79c48e426ce909db960d446f923795.png)
[Yugong series] go teaching course 002 go language environment installation in July 2022

VSCode的有用插件

Can closed data be deleted by DBCA? can

令人头痛的延时双删

RPC - grpc simple demo - learn / practice
随机推荐
Precautions for accompanying driving these 23 points should be paid attention to!
LeetCode136+128+152+148
6-4漏洞利用-SSH Banner信息获取
Asahi Kasei participated in the 5th China International Import Expo (5th ciie) for the first time
电子元器件商城与数据手册下载网站汇总
The five pictures tell you: why is there such a big gap between people in the workplace?
《Cross-view Transformers for real-time Map-view Semantic Segmentation》论文笔记
(pointer) write function void fun (int x, int *pp, int *n)
中職組網絡安全—內存取證
Drozer tool
[cloud native] those lines of code that look awesome but have a very simple principle
附件三:防守方评分标准.docx
关于solidworks standard无法获得许可 8544问题的总结
【MATLAB】MATLAB 仿真模拟调制系统 — AM 已调信号的功率谱与相干解调
Beipiao programmer, 20K monthly salary, 15W a year, normal?
[wechat applet] good looking carousel map component
【无标题】
Notes on the paper "cross view transformers for real time map view semantic segmentation"
Introduction and application of rampax in unity: optimization of dissolution effect
[go] database framework Gorm