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
  • 6 bytecode

6 bytecode · Changes

Page history
chore: update bytecode doc authored Jan 05, 2024 by qingyun Ma's avatar qingyun Ma
Show whitespace changes
Inline Side-by-side
Showing with 3 additions and 3 deletions
+3 -3
  • zkevm-docs/6-bytecode.markdown zkevm-docs/6-bytecode.markdown +3 -3
  • No files found.
zkevm-docs/6-bytecode.markdown
View page @ 14d3cc01
...@@ -44,7 +44,7 @@ pub struct Row { ...@@ -44,7 +44,7 @@ pub struct Row {
- value_hi:cnt >= 16的Bytecode的最终累加值,即最终的acc_hi - value_hi:cnt >= 16的Bytecode的最终累加值,即最终的acc_hi
- value_lo:cnt < 15的Bytecode的最终累加值,即最终的acc_lo - value_lo:cnt < 15的Bytecode的最终累加值,即最终的acc_lo
注:Opcode的 cnt、is_high、acc_hi、acc_lo、value_hi、value_lo值都为0 注:Opcode(非PUSH)的 cnt、is_high、acc_hi、acc_lo、value_hi、value_lo值都为0
假如有如下指令: 假如有如下指令:
...@@ -186,7 +186,7 @@ cnt_prev!=0, cnt=0,value_hi=acc_hi, value_lo=acc_lo ...@@ -186,7 +186,7 @@ cnt_prev!=0, cnt=0,value_hi=acc_hi, value_lo=acc_lo
## Lookup约束 ## Lookup约束
每一个byte都应该在fixed电路中Lookup到,即每一个字节大小都应该在0~255范围内 每一个byte都应该在fixed电路中Lookup到,即每一个字节大小都应该在0~255范围内(是否真的有必要进行Lookup,因为bytecode列是从instance_bytecode来的,是公共数据)
Lookup Fixed table, 约束Bytecode是否为正确的Opcode Lookup Fixed table, 约束Bytecode是否为正确的Opcode, <tag=Bytecode, bytecode, is_push, cnt>
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号