Skip to content

Commit

Permalink
Add execution witness and account proof hint types (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
meyer9 authored Oct 24, 2024
1 parent 3497244 commit 9dbc6b0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions specs/fault-proof/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
- [`l2-code <codehash>`](#l2-code-codehash)
- [`l2-state-node <nodehash>`](#l2-state-node-nodehash)
- [`l2-output <outputroot>`](#l2-output-outputroot)
- [`l2-execution-witness <blocknumber>`](#l2-execution-witness-blocknumber)
- [`l2-account-proof <blocknumber_and_address>`](#l2-account-proof-blocknumber_and_address)
- [Precompile Accelerators](#precompile-accelerators)
- [Fault Proof VM](#fault-proof-vm)
- [Fault Proof Interactive Dispute Game](#fault-proof-interactive-dispute-game)
Expand Down Expand Up @@ -438,6 +440,18 @@ Requests the host to prepare the L2 Output at the l2 output root `<outputroot>`.
The L2 Output is the preimage of a
[computed output root](../protocol/proposals.md#l2-output-commitment-construction).

#### `l2-execution-witness <blocknumber>`

Requests the host to prepare all preimages used in the execution of the block at `<blocknumber>` height.

#### `l2-account-proof <blocknumber_and_address>`

Requests the host send account proof for a certain block number and address. `<blocknumber_and_address>` is hex
encoded: 8-byte BE block number + 20-byte address.

`l2-execution-witness` and `l2-account-proof` hints are preferred over the more granular `l2-code` and `l2-state-node`,
and they should be sent before the more granular hints to ensure proper handling.

### Precompile Accelerators

Precompiles that are too expensive to be executed in a fault-proof VM can be executed
Expand Down

0 comments on commit 9dbc6b0

Please sign in to comment.