Skip to content

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.

Copy link
Contributor

@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 added 2 commits February 8, 2024 11:19
Apply logging changes
Update op-geth version
@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
@pcw109550 pcw109550 mentioned this pull request Feb 15, 2024
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