当前位置:网站首页>appliedzkp的zkevm(12)State Proof
appliedzkp的zkevm(12)State Proof
2022-07-04 03:59:00 【mutourend】
1. 引言
State Proof可帮助EVM Proof检查所有random read-write access records的有效性,通过首先按唯一index将这些records分组,然后按access order进行排序。将access order称为ReadWriteCounter,会对access records技术,同时为每个record提供唯一标识。当生成state proof之后,也会生成BusMapping作为lookup table 分享给EVM proof。
2. Random Read-Write Data
State proof会维护 EVM proof的random accessible data的读写部分。
在state proof中记录的操作有:
Memory:以byte array的方式调用memory。Stack:以RLC-encoded word array的方式调用stack。Storage:将账号的storage看成是key-value mapping。CallContext:为call的上下文。Account:为账号的state(nonce, balance, code hash)。TxRefund:refund给tx sender的金额(value)。TxAccessListAccount:为account access list 的state。TxAccessListAccountStorage:为account storage access list的state。AccountDestructed:为某account destruction的state。
以上每个操作都使用不同的参数来缩影。具体见RW Table。
所有table的key拼接在一起形成该data的唯一索引。每个record都与一个ReadWriteCounter关联,这些records首先通过其唯一索引分组,然后按ReadWriteCounter递增排序。已知对前一record的access,每个target都有其自身的格式和更新规则,如 Memory中的values可以8-bit来表示。
3. Circuit Constraints
约束主要分为两类 :
- 1)可影响所有操作的全局约束:如key的字母排序。
- 2)对每个操作的特定约束:每种操作类型采用selector-like表示,以启用仅用于该操作的额外约束。
用于保证proper ordering/transition of values的约束,借助fixed lookup table,采用range checks of the difference between the consecutive cells。由于采用lookup table来证明correct ordering,每列都必须排序,因此需要定义其包含的最大值(将对应fixed lookup table的size)。同一table内2个连续的cell将有差值,反向排序将时该差值wrap around为一个非常大的值(由于field域计算),使得该结果不在table内。
参考资料
[1] State Proof
边栏推荐
- 1. Mx6u-alpha development board (LED drive experiment in C language version)
- 【MATLAB】通信信号调制通用函数 — 插值函数
- Zhengzhou zhengqingyuan Culture Communication Co., Ltd.: seven marketing skills for small enterprises
- Annexe VI: exposé sur les travaux de défense. Docx
- 关于solidworks standard无法获得许可 8544问题的总结
- 【MATLAB】MATLAB 仿真数字带通传输系统 — ASK、 PSK、 FSK 系统
- 【MATLAB】通信信号调制通用函数 — 低通滤波器
- Exploration and practice of eventbridge in the field of SaaS enterprise integration
- Rhcsa 06 - suid, sgid, sticky bit (to be added)
- Rhcsa 08 - automount configuration
猜你喜欢

分享一些我的远程办公经验

Redis: operation command for collecting set type data

Redis: hash type data operation command

浅谈JVM的那些事

Technology Management - learning / practice

附件六:防守工作簡報.docx

ADB tools

The "functional art" jointly created by Bolang and Virgil abloh in 2021 to commemorate the 100th anniversary of Bolang brand will debut during the exhibition of abloh's works in the museum

6-4漏洞利用-SSH Banner信息获取
![[security attack and Defense] how much do you know about serialization and deserialization?](/img/cd/cc7d53b818e9a45dec22eada11bb24.png)
[security attack and Defense] how much do you know about serialization and deserialization?
随机推荐
Use units of measure in your code for a better life
Eig launched Grupo Cerro, a renewable energy platform in Chile
【无标题】
CRS-4013: This command is not supported in a single-node configuration.
【MATLAB】MATLAB 仿真模拟调制系统 — VSB 系统
Rhcsa 03 - Basic permissions for documents
DCDC电源电流定义
"Don't care too much about salary when looking for a job", this is the biggest lie I've ever heard
PostgreSQL 正式超越 MySQL,这家伙也太强了吧!
MySQL JDBC programming
Correct the classpath of your application so that it contains a single, compatible version of com. go
GUI application: socket network chat room
RPC - gRPC简单的demo - 学习/实践
Formatted text of Kivy tutorial (tutorial includes source code)
【Go】数据库框架gorm
Many founders of technology companies provided enterpriser first with a round C financing of up to US $158million to help it invest in the next generation of global innovators
GUI 应用:socket 网络聊天室
MySQL 索引和事务
rac删除损坏的磁盘组
FT2000+下LPC中断绑核使用说明