From f36472fd7bdfb4aaf1acf1c54a09ce1762f9e3a9 Mon Sep 17 00:00:00 2001 From: Julian Meyer Date: Tue, 26 Nov 2024 17:58:42 -0800 Subject: [PATCH] Update hint docs to include payload witness hint (#461) --- specs/fault-proof/index.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/specs/fault-proof/index.md b/specs/fault-proof/index.md index b1d35a458..0bdfaca47 100644 --- a/specs/fault-proof/index.md +++ b/specs/fault-proof/index.md @@ -34,7 +34,7 @@ - [`l2-code `](#l2-code-codehash) - [`l2-state-node `](#l2-state-node-nodehash) - [`l2-output `](#l2-output-outputroot) - - [`l2-execution-witness `](#l2-execution-witness-blocknumber) + - [`l2-payload-witness `](#l2-payload-witness-payload_attributes) - [`l2-account-proof `](#l2-account-proof-blockhash_and_address) - [Precompile Accelerators](#precompile-accelerators) - [Fault Proof VM](#fault-proof-vm) @@ -440,16 +440,17 @@ Requests the host to prepare the L2 Output at the l2 output root ``. The L2 Output is the preimage of a [computed output root](../protocol/proposals.md#l2-output-commitment-construction). -#### `l2-execution-witness ` +#### `l2-payload-witness ` -Requests the host to prepare all preimages used in the execution of the block at `` height. +Requests the host to prepare all preimages used in the building of the payload specified by ``. +`` is a JSON object with the fields `parentBlockHash` and `payloadAttributes`. #### `l2-account-proof ` Requests the host send account proof for a certain block hash 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`, +`l2-payload-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