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

Fix bytecode hashing for Type2 SMT #782

Merged
merged 4 commits into from
Nov 7, 2024
Merged

Fix bytecode hashing for Type2 SMT #782

merged 4 commits into from
Nov 7, 2024

Conversation

Nashtare
Copy link
Collaborator

@Nashtare Nashtare commented Nov 6, 2024

@0xaatif I took a shot at #779 because it was starting to collide with what I was doing on the type2 branch, please let me know what you think.

Also we'd like to move World trait and related structs to evm_arithmetization instead of the trace_decoder for easy reuse across case disjunction on the prover side. Do you have any objection? If not I could even add it to this PR.

@Nashtare Nashtare self-assigned this Nov 6, 2024
@github-actions github-actions bot added the crate: trace_decoder Anything related to the trace_decoder crate. label Nov 6, 2024
@0xaatif
Copy link
Contributor

0xaatif commented Nov 6, 2024

Also we'd like to move World trait and related structs to evm_arithmetization instead of the trace_decoder for easy reuse across case disjunction on the prover side. Do you have any objection? If not I could even add it to this PR.

No objection, @LindaGuiga has already run this past me :)
evm_arith is definitely the correct place for it if it's going to be used by both crates :)

Copy link
Contributor

@0xaatif 0xaatif left a comment

Choose a reason for hiding this comment

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

lgtm :)

@Nashtare Nashtare linked an issue Nov 6, 2024 that may be closed by this pull request
Copy link
Contributor

@LindaGuiga LindaGuiga left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

),
Either::Right(type2world) => {
let batches = match start {
Either::Left((type1world, mut code)) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we change code to code_hash? start only returns code hashes, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

start is Either<World, Hash2Code>

trace_decoder/src/core.rs Outdated Show resolved Hide resolved
* Move world into evm_arithmetization

* Rustdoc
@github-actions github-actions bot added the crate: evm_arithmetization Anything related to the evm_arithmetization crate. label Nov 7, 2024
@Nashtare Nashtare merged commit 3b1019c into develop Nov 7, 2024
22 checks passed
@Nashtare Nashtare deleted the decoder/codehash branch November 7, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate: evm_arithmetization Anything related to the evm_arithmetization crate. crate: trace_decoder Anything related to the trace_decoder crate.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Type2 accounts' codehash should be computed with Poseidon
3 participants