Skip to content

Commit 024ba47

Browse files
authored
chore(docs): include prove_batch.sh example/test (#521)
* chore(docs): include prove_batch.sh example/test * Update README_Docker_and_RA.md
1 parent bf274d2 commit 024ba47

File tree

1 file changed

+55
-2
lines changed

1 file changed

+55
-2
lines changed

Diff for: docs/README_Docker_and_RA.md

+55-2
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ docker compose build raiko
296296
297297
If you do not wish to build the image locally, you can optionally pull them from our registry.
298298

299-
If you are using a SGX2 machine, please use `1.6.0-rc1-edmm`. If you are using a SGX1 machine, please use `1.6.0-rc1-non-edmm`.
299+
If you are using a SGX2 machine, please use `1.6.0-hotfix-edmm`. If you are using a SGX1 machine, please use `1.6.0-hotfix`.
300300

301301
```
302302
docker pull us-docker.pkg.dev/evmchain/images/raiko:{TAG}
@@ -537,6 +537,58 @@ The response should look like this:
537537

538538
If you received this response, then at this point, your prover is up and running: you can provide the raiko_host endpoint to your taiko-client instance for SGX proving!
539539

540+
## Verify that your Raiko instance can successfully prove batches (Pacaya)
541+
542+
As of the Pacaya fork (currently only in Hekla), you will need to check that your Raiko instance can prove batches.
543+
544+
Please make sure that you have done the On Chain RA step with the Pacaya addresses and exported the your `SGX_PACAYA_INSTANCE_ID` before running Raiko.
545+
546+
Use `./script/prove-batch.sh taiko_a7 native 1303526 3591029` to check readiness.
547+
548+
The initial response will be as follows:
549+
```
550+
- proving batch 1303526 @ 3591021 on taiko_a7 with native proof
551+
{"data":{"status":"registered"},"proof_type":"native","status":"ok"}
552+
```
553+
554+
You may then navigate to `raiko/docker` and check the logs with `docker compose logs raiko`. If you see the following log, your prover is functional and working as intended!
555+
556+
```
557+
raiko | 2025-03-31T22:41:16.762651Z INFO raiko_reqpool::pool: RedisPool.update_status: {"BatchProof":{"chain_id":167009,"batch_id":1303526,"l1_inclusion_height":3591029,"proof_type":"Native","prover_address":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8"}}, Success
558+
raiko | 2025-03-31T22:41:16.762696Z INFO raiko_reqpool::pool: RedisPool.add: {"BatchProof":{"chain_id":167009,"batch_id":1303526,"l1_inclusion_height":3591029,"proof_type":"Native","prover_address":"0x70997970C51812dc3A010C7d01b50e0d17dc79C8"}}, Success
559+
```
560+
561+
Alternatively, you may wait a minute or so and call `./script/prove-batch.sh taiko_a7 native 1303526 3591029` again: this time if the response is as follows:
562+
563+
```
564+
- proving batch 1303526 @ 3591029 on taiko_a7 with native proof
565+
{"data":{"proof":{"input":"0x779c2bc712311b754f7a71fd2065f337fbabd7473b4b231164ea1a51e39816d9","kzg_proof":null,"proof":null,"quote":null,"uuid":null}},"proof_type":"native","status":"ok"}
566+
```
567+
568+
Your Raiko instance is correctly configured and working for the Pacaya fork.
569+
570+
If you would like to use a curl request instead, try the following:
571+
572+
```
573+
curl --location --request POST 'http://localhost:8080/v3/proof/batch' \
574+
--header 'Content-Type: application/json' \
575+
--header 'Authorization: Bearer' \
576+
--data-raw '{
577+
"network": "taiko_a7",
578+
"l1_network": "holesky",
579+
"batches": [{"batch_id": 1303526, "l1_inclusion_block_number": 3591029}],
580+
"prover": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
581+
"graffiti": "0x0000000000000000000000000000000000000000000000000000000000000000",
582+
"proof_type": "NATIVE",
583+
"blob_proof_type": "proof_of_equivalence",
584+
"native" : {
585+
"json_guest_input": null
586+
}
587+
}'
588+
```
589+
590+
The responses should be the same as listed above.
591+
540592
## Change your Raiko instance's RPCs to your personal RPC (Optional but recommended)
541593

542594
If you've successfully set up your raiko instance as above, you may want to change the RPCs raiko uses to ones you trust / your own deployed L1 Node and Beacon Node. Doing so will prevent random outages on PublicNode from affecting your proving, which you will want to do when running a mainnet prover/proposer.
@@ -564,4 +616,5 @@ Now that we offer aggregation proving, it may be useful to test if the functiona
564616

565617
This will test the batch proving on block 799999 and 800000. If you see the log `Aggregate proof successful.` then it is functioning normally!
566618

567-
If you use blocks that are too old, it may hang and fail; please try to use more recent blocks.
619+
If you use blocks that are too old, it may hang and fail; please try to use more recent blocks.
620+

0 commit comments

Comments
 (0)