Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
zkevm-circuits
zkevm-circuits
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

  • zkp
  • zkevm-circuitszkevm-circuits
  • Wiki
    • Zkevm docs
  • 11 fixed

11 fixed · Changes

Page history
correct fixed doc authored Jan 26, 2024 by geruiwang's avatar geruiwang
Hide whitespace changes
Inline Side-by-side
Showing with 8 additions and 8 deletions
+8 -8
  • zkevm-docs/11-fixed.markdown zkevm-docs/11-fixed.markdown +8 -8
  • No files found.
zkevm-docs/11-fixed.markdown
View page @ ef90b81f
......@@ -20,10 +20,10 @@ pub struct Row {
#[derive(Clone, Copy, Debug, Default, Serialize)]
pub enum Tag {
#[default]
U16,
And,
Or,
Xor,
U16,
Bytecode,
}
......@@ -33,7 +33,7 @@ pub enum Tag {
**tag**字段的不同场景
1. 数据标识,对LogicAnd、LogicOr、LogicXor、Bytecode等类型,使用下列定义Tag::And、Or、Xor、Bytecode
2. 对于10bit、16bit的范围的数据,Tag列未使用<br/>
2. 对于10bit、16bit的范围的数据,Tag列未使用,填入U16作为Tag默认值<br/>
**value_0**字段
1. And, Or, Xor操作中需要两个操作数,标识左边的操作数
2. Bytecode类型中标识 evm opcode
......@@ -66,12 +66,12 @@ pub enum Tag {
| Bytecode | PUSH1 | 1 | 0|
| Bytecode | PUSH30 | 30 | 1|
| Bytecode | ...| ...| ...|
| | 256 (不必从0开始) | U10_TAG | 1|
| | ... | U10_TAG| ... |
| | 1279 | U10_TAG| 1024|
| | 1280 | | |
| | .... | | |
| | 65535 | | |
| U16 | 256 (不必从0开始) | U10_TAG | 1|
| U16 | ... | U10_TAG| ... |
| U16 | 1279 | U10_TAG| 1024|
| U16 | 1280 | | |
| U16 | .... | | |
| U16 | 65535 | | |
## 使用
......
Clone repository
  • basics
    • evm
    • halo2
  • code notes
    • binary_number_with_real_selector
    • how to use macro
    • simple_lt
    • simple_lt_word
  • Home
  • image
  • zkevm docs
    • 1 introduction
    • 10 public
    • 11 fixed
    • 12 exp
    • 13 keccak
    • 14 comparisons
    • 15 differences
View All Pages

Copyright © 2024 ChainWeaver Org. All Rights Reserved. 版权所有。

京ICP备2023035722号-3

京公网安备 11010802044225号