Skip to content

Commit ee29626

Browse files
committed
docs: how to update commitments when zkvm version change
1 parent 875e2bd commit ee29626

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

examples/validating-public-input/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ generate_sp1_fibonacci_proof:
1010
cargo run --release && \
1111
echo "Fibonacci proof, pub input and image ID generated in sp1 folder"
1212

13-
1413
submit_fibonacci_sp1_proof_devnet:
1514
@cd aligned-integration && \
1615
RUST_LOG=info cargo run --release -- --proving-system "SP1" --network "devnet" --rpc-url "http://localhost:8545"
@@ -44,3 +43,7 @@ deploy_fibonacci_validator:
4443

4544
deploy_fibonacci_validator_devnet:
4645
@. ./contracts/.env.devnet && . ./contracts/deploy.sh
46+
47+
get_program_id_commitment:
48+
@echo "Proof commitment for $(DATA_FILE_NAME) is:"
49+
@jq '.program_id_commitment' ./aligned-integration/batch_inclusion_data/$(DATA_FILE_NAME)

examples/validating-public-input/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ Contract Address: 0x90d6A3E189C70E1Cce16c29151077cB9Badb2448
8282
Block: 2963688
8383
Paid: 0.000727925005095475 ETH (727925 gas * 1.000000007 gwei)
8484
```
85+
8586
> [NOTE]
8687
> The `Contract Address` listed above corresponds to a current valid deployment of the examples contract on the `holesky` testnet.
8788
@@ -100,3 +101,11 @@ status 1 (success)
100101
transactionHash <TX_HASH>
101102
...
102103
```
104+
105+
5. If the process fails, it could be due to mismatched commitments when verifying. Ensure that the contract commitments are updated to match the values returned in the batcher's response under `aligned_verification_data`. For example, if the SP1 or Risc0 version has changed, you'll need to update the `programIdCommitment`. To regenerate the commitment, run:
106+
107+
```shell
108+
make get_program_id_commitment DATA_FILE_NAME=<DATA_FILE_NAME>
109+
```
110+
111+
And update the field `fibonacciProgramIdCommitmentSp1` or `fibonacciProgramIdCommitmentRisc0` in the contract with the new value.

0 commit comments

Comments
 (0)