Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

cannon: Implement dclo|dclz #14454

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

pcw109550
Copy link
Contributor

Description

Implements dclo and dclz instruction for offchain/onchain cannon implementation. We need these instructions because for executing kona compiled down to mips64r1. There were attempts(#14405) to support kona to be executed as mips64r2, but this causes more diff for cannon. The point here is to introduce as small diff as possible, while making cannon capable of executing kona in mips64, so mips64r1 is enough.

There are contract diffs, so I decided to bump patch version to 1.0.1, but not sure this is the right version to update. For example at #13429 single instruction was added to onchain FPVM, and the version was bumped to 1.0.0-beta.8 from 1.0.0-beta.7. Anyway ran semver lock to update codehashes.

Tests

Added unit tests for testing both offchain/onchain implementation and comparing them.

Validated that kona at commit op-rs/kona@161547c compiled to mips64r1 calculates expected state hash using preimage https://github.com/op-rs/kona/blob/main/bin/client/testdata/holocene-op-sepolia-22012816-witness.tar.zst with cannon with this PR applied.

Metadata

@pcw109550 pcw109550 requested review from a team as code owners February 20, 2025 11:00
@pcw109550 pcw109550 requested review from tynes and ajsutton February 20, 2025 11:00
@Inphi
Copy link
Contributor

Inphi commented Feb 20, 2025

/ci authorize a162409

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants