Skip to content

Commit

Permalink
fix: prefer block hash instead of number for hint (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
meyer9 authored Oct 24, 2024
1 parent 9dbc6b0 commit 3e12955
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions specs/fault-proof/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
- [`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)
- [`l2-account-proof <blockhash_and_address>`](#l2-account-proof-blockhash_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 @@ -444,10 +444,10 @@ The L2 Output is the preimage of a

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

#### `l2-account-proof <blocknumber_and_address>`
#### `l2-account-proof <blockhash_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.
Requests the host send account proof for a certain block number and address. `<blockhash_and_address>` is hex
encoded: 32-byte block hash + 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.
Expand Down

0 comments on commit 3e12955

Please sign in to comment.