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
  • 10 public

10 public · Changes

Page history
chore: update 10-public doc authored Jul 11, 2024 by gzxu's avatar gzxu
Show whitespace changes
Inline Side-by-side
Showing with 31 additions and 24 deletions
+31 -24
  • zkevm-docs/10-public.markdown zkevm-docs/10-public.markdown +31 -24
  • No files found.
zkevm-docs/10-public.markdown
View page @ f2f0b3de
......@@ -10,31 +10,38 @@
```
- tag 指该行数据的类别, 其具体类型为:
```rust
pub enum Tag {
pub enum Tag {
#[default]
ChainId
BlockCoinbase,
BlockTimestamp,
Nil,
ChainId,
BlockNumber,
BlockDifficulty,
BlockGasLimit,
BlockBaseFee,
BlockHash,
TxStatus,
// block coinbase and timestamp
BlockCoinbaseAndTimestamp,
// block gas limit, and the BaseFee
BlockGasLimitAndBaseFee,
// the total number of txs and logs in a block, and the block difficulty
BlockTxLogNumAndDifficulty,
// TxIsCreateAndStatus : include tx is create and call data gas cost, and tx status
TxIsCreateAndStatus,
// combine From and Value together to reduce number of lookups
TxFromValue,
// combine To and CallDataLength together to reduce number of lookups
TxToCallDataSize,
TxIsCreate,
TxGasLimit,
TxGasPrice,
TxCalldata, //TODO make sure this equals copy tag PublicCalldata
// tx gas limit and tx gas price
TxGasLimitAndGasPrice,
TxCalldata,
TxLog,
TxLogSize,
TxLogData,
// bytecode size
CodeSize,
}
// bytecode hash
CodeHash,
}
```
- block_tx_idx 指交易id;当该行数据为BlockHash的时候指的是最近的block number
- block_tx_idx 指该条目的idx,在block相关的条目,表示该block在chunk的idx。在交易相关的条目,等于block_idx * 2^32 + tx_idx,tx_idx表示表示该tx在block的idx。当tag=BlockHash, 表示允许获取该条目的max_block_idx.
## 多功能列 Versatile columns
为了减少列的使用,缩减电路规模,设计了多功能的列。在不同的行数据类别下,这些列存放不同的数据。目前设计有4个多功能列,代码里呈现为:
......
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号