当前位置:网站首页>Plookup table in appliedzkp zkevm (8)
Plookup table in appliedzkp zkevm (8)
2022-06-26 10:44:00 【mutourend】
1. introduction
appliedzkp zkevm use Halo2 Of lookup table As a primitive, Come on check table One of the lines in is really some adviced values.
Such as , following table Of a、b、c Column , among a、b As a “0,1,2” The possible combination of ,c To be right a、b Column logic AND operation :
| a | b | c |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 0 | 2 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
| 1 | 2 | 0 |
| 2 | 0 | 0 |
| 2 | 1 | 0 |
| 2 | 2 | 2 |
You can use this table To check circuit Some of them x、y Variable AND Operational constraints , To prove "x"、“y”、"x & y" In response to table One of the lines .
zkevm There is 2 Types of table:
- 1)Fixed Table
So-called Fixed Table, Means the fixed table Rows in proving time“ Before ” It has been determined that .
above AND operation table Namely fixed table. - 2)Variable Table(Dynamic Table)
So-called Variable Table, Means the variable table Rows in proving time " when " determine .
Variable Table bring Prover You can create your own table, Such as Prover can witness a key-value mapping by a variable table. Be careful , Additional checks are required to ensure that mapping key Uniqueness .
2. zkevm EVM circuit Medium tables
zkevm Of EVM circuit A variety of dynamic and fixed tables, among dynamic table The validity of the content is determined by the circuit To prove .
zkevm Medium dynamic tables Yes :
- 1)tx_table: from tx circuit prove .
- 2)rw_table: from state circuit prove .
- 3)bytecode_table: from bytecode circuit prove .
- 4)block_table: from block circuit prove .
- 5)mpt_table: from MPT(Merkle Particia Trie)circuit Provide .
zkevm Medium fixed tables Yes :
- 1)execution_state.responsible_opcode(): take execution_state mapping (map) To Generate this execution state Of opcode. So-called execution_state, Is when opcode Status of successful operation . This mapping may combine multiple similar opcode Merge into one execution state, Such as LT/GT/EQ All corresponding CMP state .
- 2)invalid_opcode(): by invalid opcodes set.
- 3)state_write_opcode(): For the meeting write state A group of opcodes.
- 4)stack_underflow_pairs: It will cause underflow Of opcodes set and stack pointer value.
- 5)stack_overflow_pairs: It will cause overflow Of opcodes set and stack pointer value.
Reference material
边栏推荐
- Développeur, quelle est l'architecture des microservices?
- VS或Qt编译链接过程中出现“无法解析的外部符号”的原因:
- MySQL第六次作业-查询数据-多条件
- RDB persistence validation test
- Renesas electronics launched a complete intelligent sensor solution for Internet of things applications
- What is a botnet
- MySQL第四章总结
- What is in the method area - class file, class file constant pool, runtime constant pool
- 8- creating leecode algorithm with pictures and texts - algorithm solution of minimum stack and LRU caching mechanism
- MySQL project 8 summary
猜你喜欢

Cmake / set command
![Installing MySQL under Linux [details]](/img/38/77be56c3ef3923ce4c4e5df4a96f41.png)
Installing MySQL under Linux [details]

基础-MySQL

MySQL 11th job - view application

MySQL 8th job

Call API interface to generate QR code of wechat applet with different colors

Little red book - Summary of internal sales spike project

Vscode environment setup: synchronous configuration

MySQL 10th job - View

How to start the learning journey of webrtc native cross platform development?
随机推荐
MySQL第八次作业
Linux下安装Mysql【详细】
MySQL Chapter 5 Summary
Global and Chinese market of cryogenic bulk tanks 2022-2028: Research Report on technology, participants, trends, market size and share
Developers, what is the microservice architecture?
118. Yanghui triangle
磁带库简单记录1
用同花顺手机炒股是安全的吗?如何用同花顺炒股
Write data to local file
Global and Chinese market for change and configuration management software 2022-2028: Research Report on technology, participants, trends, market size and share
Global and Chinese market for baked potato chips 2022-2028: Research Report on technology, participants, trends, market size and share
Function run time
[echart] II. User manual and configuration item reading notes
35 qlineedit control synthesis example
看我在Map<String, String>集合中,存入Integer类型数据
See how I store integer data in the map < string, string > set
Hcia-dhcp experiment
MySQL第五章总结
Global and Chinese markets of children's electronic thermometers 2022-2028: Research Report on technology, participants, trends, market size and share
Solution to the problem of compilation error due to repeated third-party package names