-
Notifications
You must be signed in to change notification settings - Fork 0
feat: execution layer integration #20
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
Open
qj0r9j0vc2
wants to merge
53
commits into
main
Choose a base branch
from
feat/el-integration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
feat: add EVM configuration and receipts modules
…nto feat/el-database # Conflicts: # crates/execution/Cargo.toml # crates/execution/src/lib.rs # crates/execution/src/types.rs
feat: add database and state management modules
Add CipherBftPrecompileProvider implementing the PrecompileProvider trait for stateful precompiles with context access. Handles both standard Ethereum precompiles and custom staking precompile at address 0x100.
- Update SpecId import path to revm::primitives::hardfork::SpecId - Add DBErrorMarker trait implementation for DatabaseError - Fix PrecompileError import (was PrecompileErrors) - Update module exports to use PrecompileProvider pattern - Replace StakingPrecompileAdapter with create_staking_precompile export
Add migration notes documenting that revm 33 removed Env/BlockEnv/CfgEnv types. Most methods in CipherBftEvmConfig are broken and need comprehensive refactor to use Context-based API. Estimated ~600 LOC changes required.
feat: migrate to revm 33.1.0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Integrates EVM-based execution layer into CipherBFT consensus using Revm 33 and Alloy 1.x.
Key Components
Core Infrastructure
transact_one()for journal state preservationValidator Management
Consensus Integration
Implementation Details
transact_one()to maintain nonce/balance across transactionsTesting
Documentation
crates/execution/DESIGN.md: Architecture and component detailscrates/execution/DESIGN_ko.md: Korean versionRelated