diff --git a/bin/host/README.md b/bin/host/README.md index 0912cabe9..835e52266 100644 --- a/bin/host/README.md +++ b/bin/host/README.md @@ -1,10 +1,53 @@ # `kona-host` -The host binary's primary role is to serve the client program responses to requests over the [Preimage Oracle ABI][preimage-spec]. +kona-host is a CLI application that runs the [pre-image server][p-server] and [client program][client-program]. ## Modes -| Mode | Description | -| -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `server` | Starts with the preimage server only, expecting the client program to have been invoked by the host process. This mode is particularly purposed to be activated by the FPVM running the client program | -| `native` | Starts both the preimage oracle and client program in a native process, bypassing the verifiable FPVM environment. This mode is useful for upfront witness generation as well as testing. | +| Mode | Description | +| -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `server` | Starts with the preimage server only, expecting the client program to have been invoked by the host process. This mode is intended for use by the FPVM when running the client program. | +| `native` | Starts both the preimage oracle and client program in a native process. This mode is useful for witness generation as well as testing. | + +## Usage + +``` +Usage: kona-host [OPTIONS] --l1-head --l2-head --l2-output-root --l2-claim --l2-block-number + +Options: + -v, --v... + Verbosity level (0-2) + --l1-head + Hash of the L1 head block. Derivation stops after this block is processed + --l2-head + Hash of the L2 block committed to by `--l2-output-root` + --l2-output-root + Agreed L2 Output Root to start derivation from + --l2-claim + Claimed L2 output root at block # `--l2-block-number` to validate + --l2-block-number + Number of the L2 block that the claim commits to + --l2-node-address + Address of L2 JSON-RPC endpoint to use (eth and debug namespace required) [aliases: l2] + --l1-node-address + Address of L1 JSON-RPC endpoint to use (eth and debug namespace required) [aliases: l1] + --l1-beacon-address + Address of the L1 Beacon API endpoint to use [aliases: beacon] + --data-dir + The Data Directory for preimage data storage. Default uses in-memory storage [aliases: db] + --exec + Run the specified client program natively as a separate process detached from the host + --server + Run in pre-image server mode without executing any client program. If not provided, the host will run the client program in the host process + --l2-chain-id + The L2 chain ID of a supported chain. If provided, the host will look for the corresponding rollup config in the superchain registry + --rollup-config-path + Path to rollup config. If provided, the host will use this config instead of attempting to look up the config in the superchain registry + -h, --help + Print help + -V, --version + Print version +``` + +[p-server]: https://specs.optimism.io/fault-proof/index.html#pre-image-oracle +[client-program]: https://specs.optimism.io/fault-proof/index.html#fault-proof-program