Skip to content

Commit

Permalink
update setup docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hashcashier committed Jan 27, 2025
1 parent ce79b52 commit 6390096
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions bin/cli/src/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ use kailua_client::proof::{encode_seal, proof_file_name, read_proof_file};
use kailua_client::provider::OpNodeProvider;
use kailua_common::blobs::hash_to_fe;
use kailua_common::blobs::BlobFetchRequest;
use kailua_common::config::{config_hash, SET_BUILDER_ID};
use kailua_common::config::config_hash;
use kailua_common::journal::ProofJournal;
use kailua_common::precondition::{
divergence_precondition_hash, equivalence_precondition_hash, PreconditionValidationData,
Expand Down Expand Up @@ -331,7 +331,11 @@ pub async fn handle_proposals(
let expected_fpvm_image_id = parent_contract.imageId().stall().await.imageId_.0;
// patch the proof if in dev mode
#[cfg(feature = "devnet")]
let proof = maybe_patch_proof(proof, expected_fpvm_image_id, SET_BUILDER_ID.0)?;
let proof = maybe_patch_proof(
proof,
expected_fpvm_image_id,
kailua_common::config::SET_BUILDER_ID.0,
)?;
// verify that the zkvm receipt is valid
if let Some(receipt) = proof.as_zkvm_receipt() {
if let Err(e) = receipt.verify(expected_fpvm_image_id) {
Expand Down
4 changes: 2 additions & 2 deletions book/src/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ kailua-cli config --op-node-url [YOUR_OP_NODE_URL] --op-geth-url [YOUR_OP_GETH_U

Running the above command against the respective op-sepolia endpoints should produce the following output:
```
RISC0_VERSION: 1.2.0
FPVM_IMAGE_ID: 0x5A8D2FFD4A0E1B8EDBF4FD2D8B57AD0114AECBD8E3033ED4A0B1FF21F8438AA7
RISC0_VERSION: 1.2.1
FPVM_IMAGE_ID: 0x6882F4878D98ECD7483BC588B766C17DA329B1B1699631C4D0AFC9897A9A8A81
CONTROL_ROOT: 0x8CDAD9242664BE3112ABA377C5425A4DF735EB1C6966472B561D2855932C0469
CONTROL_ID: 0x04446E66D300EB7FB45C9726BB53C793DDA407A62E9601618BB43C5C14657AC0
SET_BUILDER_ID: 0x744CCA56CDE6933DEA72752C78B4A6CA894ED620E8AF6437AB05FAD53BCEC40A
Expand Down

0 comments on commit 6390096

Please sign in to comment.