optimism icon indicating copy to clipboard operation
optimism copied to clipboard

cannon: Add basic types for MTCannon

Open mbaxter opened this issue 1 year ago • 1 comments

Description

Add basic types required for Multithreaded Cannon:

  • Add MTState
  • Add ThreadContext
  • Update StepWitness to reflect upcoming changes

There are a number of TODOs and details left to be figured out that will be addressed in https://github.com/ethereum-optimism/client-pod/issues/903. The purpose of this PR is to provide some basic types to facilitate parallelization of the remaining MTCannon work.

Tests Mirrored a few existing tests from state_test.go into statemt_test.go. These provide some basic validation of MTState (de)serialization and witness hashing.

Metadata

Fixes https://github.com/ethereum-optimism/client-pod/issues/952

mbaxter avatar Jul 09 '24 17:07 mbaxter