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

feat: Cannon-compatible binary #8

Merged
merged 12 commits into from
Feb 8, 2024
Merged

feat: Cannon-compatible binary #8

merged 12 commits into from
Feb 8, 2024

Conversation

ImTei
Copy link
Collaborator

@ImTei ImTei commented Feb 5, 2024

Description

Implement Asterisc binary with Cannon-compatible commands:

  • load-elf
  • witness
  • run

Almost every code is based on Cannon's implementation with minor fixes.

If the codes are related to VM or its other functionalities, I just copied and reused those codes from Cannon to minimize dependencies on Cannon and keep it as an alternative implementation. Otherwise if the codes are just utilities unrelated to VM, they are imported as dependencies.

For the special case, flags of each command are directly imported from Cannon as a dependency because the interface of Asterisc binary must be compatible with Cannon for op-challenger integration.

This PR depends on modification on Optimism monorepo(ethereum-optimism/optimism#9350). The dependency is temporarily set to the working branch for now, and it will be changed to the develop branch once the optimism PR is merged.

Tests

Tested each command for minimal.go. More test cases could be added in future PRs, and this may be further tested and modified as we work on the op-challenger integration.

@ImTei ImTei marked this pull request as ready for review February 7, 2024 06:31
Copy link
Collaborator

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

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

LGTM. Just added a couple of notes about related PRs.

rvgo/cmd/log.go Show resolved Hide resolved
rvgo/cmd/run.go Outdated Show resolved Hide resolved
Copy link
Member

@clabby clabby left a comment

Choose a reason for hiding this comment

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

This looks good to me. Approving pending the monorepo changes being merged + updating the dependency :)

@ImTei
Copy link
Collaborator Author

ImTei commented Feb 8, 2024

@ajsutton Thank you for the updates about Canon changes. I have updated optimism dependency to the latest develop branch and applied log library changes and blob preimage key handling.

@ImTei ImTei requested review from ajsutton and clabby February 8, 2024 02:24
Copy link
Collaborator

@ajsutton ajsutton left a comment

Choose a reason for hiding this comment

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

Nice. :)

@ajsutton ajsutton added this pull request to the merge queue Feb 8, 2024
Merged via the queue into master with commit 51138bc Feb 8, 2024
1 check passed
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.

3 participants