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

Put kernel code in first MemBefore #178

Merged
merged 8 commits into from
Apr 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove kernel code hashing from
  • Loading branch information
hratoanina committed Apr 22, 2024
commit e4434d453f233674f74339ade4ec08e970dce770
12 changes: 0 additions & 12 deletions evm_arithmetization/src/cpu/kernel/asm/main.asm
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,6 @@ global init:
EXIT_KERNEL

global main:
// First, hash the kernel code
// Start with PUSH0 to avoid having a BytePacking operation at timestamp 0.
// Timestamp 0 is reserved for memory initialization.
%mload_global_metadata(@GLOBAL_METADATA_KERNEL_LEN)
PUSH 0
// stack: addr, len
KECCAK_GENERAL
// stack: hash
%mload_global_metadata(@GLOBAL_METADATA_KERNEL_HASH)
// stack: expected_hash, hash
%assert_eq

// Initialize accessed addresses and storage keys lists
%init_access_lists

Expand Down