Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add zkVM fault proof #24

Merged
merged 8 commits into from
Dec 10, 2024

Conversation

sm-stack
Copy link
Contributor

Added zkVM fault proof section at zk-fault-proof section. This inquires changes/addition such as:

  • Deprecation of ZK Trie.
  • Changes on output root, removing next_block_hash.
  • Changes on calculating public input (public value).
  • Addition of a separate doc to demonstrate zkVM prover.

Also reflected changes that we have made or will make, such as:

  • Removing 7-day timelock between queuing and executing the upgrade proposal.
  • Updating L1Block contract and fee vault addresses.
  • Removal of ValidatorRewardScalar and changes on fee distribution.
  • Deprecation of ETH-based validator system.
  • Slight interface changes on contracts.

One more PR regarding the MPT migration fork (based on spec section) will be followed.

@sm-stack sm-stack requested a review from a team as a code owner November 27, 2024 09:03
@sm-stack sm-stack requested review from a team and removed request for a team November 27, 2024 09:04
@sm-stack sm-stack self-assigned this Nov 27, 2024
@sm-stack sm-stack force-pushed the feat/add-zkvm-fault-proof branch from d93b900 to e74449b Compare December 2, 2024 00:42
Comment on lines 50 to 52
| ProtocolVault | 0x4200000000000000000000000000000000000006 | Bedrock | Yes | Yes |
| L1FeeVault (*deprecated*) | 0x4200000000000000000000000000000000000007 | Bedrock | Yes | Yes |
| ValidatorRewardVault | 0x4200000000000000000000000000000000000008 | Bedrock | Yes | Yes |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since "deprecated" is mentioned in the detail description below, it would be better to mark it here as well.

Suggested change
| ProtocolVault | 0x4200000000000000000000000000000000000006 | Bedrock | Yes | Yes |
| L1FeeVault (*deprecated*) | 0x4200000000000000000000000000000000000007 | Bedrock | Yes | Yes |
| ValidatorRewardVault | 0x4200000000000000000000000000000000000008 | Bedrock | Yes | Yes |
| ProtocolVault (*deprecated*) | 0x4200000000000000000000000000000000000006 | Bedrock | Yes | Yes |
| L1FeeVault (*deprecated*) | 0x4200000000000000000000000000000000000007 | Bedrock | Yes | Yes |
| ValidatorRewardVault (*deprecated*) | 0x4200000000000000000000000000000000000008 | Bedrock | Yes | Yes |

@@ -440,5 +376,4 @@ Colosseum contract should be deployed behind upgradable proxies.
| `BISECTION_TIMEOUT` | 3600 | seconds |
| `PROVING_TIMEOUT` | 28800 | seconds |
| `SEGMENTS_LENGTHS` | [9, 6, 10, 6] | array of integers |
| `MAX_TXS` | 100 | uint256 |
| `DUMMY_HASH` | 0xedf1ae3da135c124658e215a9bf53477facb442a1dcd5a92388332cb6193237f | bytes32 |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is a DUMMY_HASH still necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I'll delete it. Thanks!

@sm-stack sm-stack requested a review from Pangssu December 2, 2024 07:11
specs/zk-fault-proof/challenge.md Outdated Show resolved Hide resolved
specs/zk-fault-proof/challenge.md Outdated Show resolved Hide resolved
specs/zk-fault-proof/challenge.md Outdated Show resolved Hide resolved
specs/zk-fault-proof/challenge.md Show resolved Hide resolved
specs/zk-fault-proof/zkvm-prover.md Outdated Show resolved Hide resolved
specs/protocol/predeploys.md Outdated Show resolved Hide resolved
specs/protocol/predeploys.md Outdated Show resolved Hide resolved
specs/protocol/predeploys.md Show resolved Hide resolved
specs/protocol/system-config.md Show resolved Hide resolved
specs/glossary.md Outdated Show resolved Hide resolved
@@ -349,7 +341,7 @@ A trusted validator is an actor who is run by Lightscale. If validations are not

[validating-epoch]: glossary.md#validating-epoch

c of [L2] [blocks][block] where needs to be checkpointed.
Number of [L2][L2] [blocks][block] where needs to be checkpointed.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about this?

Suggested change
Number of [L2][L2] [blocks][block] where needs to be checkpointed.
The number of [L2][L2] [blocks][block] that need to be checkpointed.

Copy link

@0xbenyun 0xbenyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sm-stack sm-stack merged commit 701a222 into feat/zkvm-fault-proof Dec 10, 2024
2 checks passed
@sm-stack sm-stack deleted the feat/add-zkvm-fault-proof branch December 10, 2024 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants