Skip to content

Commit

Permalink
zkevm: enable bytecode lookups
Browse files Browse the repository at this point in the history
  • Loading branch information
oclaw committed Jan 14, 2025
1 parent 76fcdb2 commit cca6d0d
Show file tree
Hide file tree
Showing 16 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ namespace nil {
current_state.bytecode_hash_hi(0),
current_state.bytecode_hash_lo(0)
};
// TODO(oclaw): bytecode check is disabled since hash algorithm for circuits is not finalized yet
// TODO(oclaw): bytecode check is to be adjusted between nil and placeholder
// https://github.com/NilFoundation/placeholder/issues/205
// lookup(tmp, "zkevm_bytecode");
lookup(tmp, "zkevm_bytecode");
}
}
};
Expand Down Expand Up @@ -161,4 +161,4 @@ namespace nil {
};
} // namespace bbf
} // namespace blueprint
} // namespace nil
} // namespace nil
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ namespace nil {
is_jump * current_state.bytecode_hash_hi(0),
is_jump * current_state.bytecode_hash_lo(0)
};
// TODO(oclaw): bytecode check is disabled since hash algorithm for circuits is not finalized yet
// TODO(oclaw): bytecode check is to be adjusted between nil and placeholder
// https://github.com/NilFoundation/placeholder/issues/205
// lookup(tmp, "zkevm_bytecode");
lookup(tmp, "zkevm_bytecode");
}
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ namespace nil {
current_state.bytecode_hash_lo(1)
};
}
// TODO(oclaw): bytecode check is disabled since hash algorithm for circuits is not finalized yet
// TODO(oclaw): bytecode check is to be adjusted between nil and placeholder
// https://github.com/NilFoundation/placeholder/issues/205
// lookup(tmp, "zkevm_bytecode");
lookup(tmp, "zkevm_bytecode");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,9 @@ namespace nil {
tmp[4] = context_object.relativize(evm_opcode_constraint * all_states[1].bytecode_hash_hi, -1);
tmp[5] = context_object.relativize(evm_opcode_constraint * all_states[1].bytecode_hash_lo, -1);

// TODO(oclaw): bytecode check is disabled since hash algorithm for circuits is not finalized yet
// TODO(oclaw): bytecode check is to be adjusted between nil and placeholder
// https://github.com/NilFoundation/placeholder/issues/205
// context_object.relative_lookup(tmp, "zkevm_bytecode", 1, max_zkevm_rows-1);
context_object.relative_lookup(tmp, "zkevm_bytecode", 1, max_zkevm_rows-1);
}
}
protected:
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�����확V@8a3fa26bb6955c3922c436ec46023545f94b1dc12f68aa2baffa99285afca291
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
�����֚�h@8a3fa26bb6955c3922c436ec46023545f94b1dc12f68aa2baffa99285afca291
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit cca6d0d

Please sign in to comment.