Skip to content

Conversation

@pmikolajczyk41
Copy link
Member

@pmikolajczyk41 pmikolajczyk41 commented Dec 9, 2025

This PR reverts part of the changes introduced in #580. Both are part of NIT-4123, where we care that every single Keccak 256 hash function used in replay.wasm can be intercepted and outsourced to external utility (either native implementation or SP1 precompile). According to @tsahee only core/vm, core/types and trie directories lie in our field of interest (I will confirm it soon). Since upstream maintainers won't accept this kind of changes, we drop unification in other places to keep the diff between our fork and upstream as small as possible.

To ensure that neither of the remaining 'incorrect' keccaking affects replay.wasm I added panic in all these places: 3fb364d (branch https://github.com/OffchainLabs/go-ethereum/tree/pmikolajczyk/detect-keccaking) and run system tests in block_validator_test.go. No panics.

companion nitro PR: OffchainLabs/nitro#4123

@joshuacolvin0
Copy link
Member

I would prefer a PR to completely revert #580, then a new PR to add what we want. Much easier to review that way

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