You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
5. Now, clone raiko and check out the `tags/v1.7.3` branch and navigate to the `docker` folder. From here you can pull the images from our registry.
287
+
5. Now, clone raiko and check out the `tags/v1.8.0` branch and navigate to the `docker` folder. From here you can pull the images from our registry.
288
288
289
289
```
290
290
git clone https://github.com/taikoxyz/raiko.git
291
291
cd raiko/docker
292
-
git checkout tags/v1.7.3
292
+
git checkout tags/v1.8.0
293
293
```
294
294
295
-
> **_NOTE:_** For Taiko Alethia AND Hekla: You will need to modify your raiko `docker-compose.yml` to use the images you pull. If you are using a SGX2 machine, please use `1.7.3-edmm`. If you are using a SGX1 machine, please use `1.7.3`.
295
+
> **_NOTE:_** For Taiko Alethia AND Hekla: You will need to modify your raiko `docker-compose.yml` to use the images you pull. If you are using a SGX2 machine, please use `1.8.0-edmm`. If you are using a SGX1 machine, please use `1.8.0`.
296
296
297
297
In your `docker-compose.yml` file, search for `raiko:latest` and change all instances to `raiko:{TAG}`. Use the following commands to pull the respective images.
298
298
@@ -320,7 +320,7 @@ cp .env.sample .env
320
320
```
321
321
322
322
If you are running Raiko for Taiko Hekla, ensure `SGXGETH=true`, `NETWORK=taiko_a7` and `L1_NETWORK=holesky` in `.env`.
323
-
If you are running Raiko for Taiko Alethia, **delete`SGXGETH=true` line entirely**, and ensure`NETWORK=taiko_mainnet` and `L1_NETWORK=ethereum` in `.env`.
323
+
If you are running Raiko for Taiko Alethia, ensure`SGXGETH=true`,`NETWORK=taiko_mainnet` and `L1_NETWORK=ethereum` in `.env`.
324
324
325
325
8. Bootstrap Raiko with the following command:
326
326
@@ -336,17 +336,14 @@ ls ~/.config/raiko/config
336
336
337
337
You've now prepared your machine for running Raiko through Docker. Now, you need to perform On-Chain Remote Attestation to receive TTKOh from moderators and begin proving for Taiko!
338
338
339
-
> **_NOTE:_** If you are running Raiko for Taiko Alethia, you can ignore `bootstrap.gaiko.json`. You will only use `bootstrap.json` for the following steps.
340
-
341
339
## On-Chain RA
342
340
343
-
1. Clone [taiko-mono](https://github.com/taikoxyz/taiko-mono/tree/main), checkout the appropriate tag and navigate to the protocol directory.
341
+
1. Clone [taiko-mono](https://github.com/taikoxyz/taiko-mono/tree/main) and navigate to the protocol directory.
3. If you've followed the Raiko Docker guide, you will have bootstrapped raiko and obtained two bootstrap.json files. Both will look like the following:
366
+
3. If you've followed the Raiko Docker guide, you will have bootstrapped raiko and obtained two bootstrap.json files. (`bootstrap.json` and `bootstrap.gaiko.json`) Both will look like the following:
@@ -380,11 +377,9 @@ You can find it with `cat ~/.config/raiko/config/bootstrap.json` or `cat ~/.con
380
377
381
378
5. Call the script with `PRIVATE_KEY=0x{YOUR_PRIVATE_KEY} ./script/layer1/provers/config_dcap_sgx_verifier.sh --env {NETWORK} --quote {YOUR_QUOTE_HERE}`. "YOUR_QUOTE_HERE" comes from above step 5.
382
379
383
-
`NETWORK` will be `hekla-pacaya<sgxreth|sgxgeth>` or `mainnet` depending on which verifier you are registering to.
384
-
385
-
You will have to do this step twice for Hekla: once for SgxGeth and once for Pacaya. Please use the quote in `bootstrap.gaiko.json` to register for `hekla-pacaya-sgxgeth` and the quote from `bootstrap.json` to register for `hekla-pacaya-sgxreth`. Keep both instance IDs.
380
+
`NETWORK` will be `hekla-pacaya<sgxreth|sgxgeth>` or `mainnet-pacaya<sgxreth|sgxgeth>` depending on which verifier you are registering to.
386
381
387
-
For Taiko Alethia, you only need to do this step once. Copy the quote from`bootstrap.json`and use `--env mainnet`for the script.
382
+
You will have to do this step twice: once for SgxGeth and once for Pacaya. Please use the quote in`bootstrap.gaiko.json`to register for `<mainnet|hekla>-pacaya-sgxgeth` and the quote from `bootstrap.json` to register for `<mainnet|hekla>-pacaya-sgxreth`. Keep both instance IDs.
388
383
389
384
6. If you've been successful, you will get a SGX instance `id` which can be used to run Raiko!
390
385
@@ -492,7 +487,7 @@ Remove your previously autogenerated priv.key:
492
487
493
488
2. Checkout the relevant tag/branch
494
489
495
-
`git checkout tags/v1.7.3` (SGX1) or `git checkout tags/v1.7.3-edmm` (SGX2) for the upcoming Mainnet upgrade.
490
+
`git checkout tags/v1.8.0` for the upcoming Mainnet upgrade.
496
491
497
492
3. Copy the sample `.env` and make the following changes:
498
493
@@ -504,33 +499,38 @@ vi .env
504
499
- L1_NETWORK=ethereum
505
500
```
506
501
507
-
4. Build the image locally or pull the image from our registry:
502
+
4. Pull the image from our registry or build the image locally:
503
+
504
+
Pull the image from the registry, use `docker compose pull us-docker.pkg.dev/evmchain/images/raiko:{TAG}`
508
505
509
-
You can build the image with the following command: `docker compose build raiko`.
506
+
`TAG` should be `1.8.0` if you are using SGX1, `1.8.0-edmm` if you are using SGX2.
510
507
511
-
If you want to pull the image from the registry, use`docker compose pull us-docker.pkg.dev/evmchain/images/raiko:{TAG}`
508
+
If you prefer, you can build the image with the following command:`docker compose build raiko`.
512
509
513
510
5. Modify your docker-compose.yml file to use the image.
514
511
515
512
`vi docker-compose.yml`
516
-
set all instances of raiko image to raiko:1.7.3 or raiko:1.7.3-edmm
513
+
514
+
set all instances of raiko image to raiko:1.8.0 or raiko:1.8.0-edmm
517
515
518
516
6. Bootstrap your instance
519
517
520
518
`docker compose up init`
521
-
If there are no errors, you will use ~/.config/raiko/config/bootstrap.json to do the following steps. You can safely ignore ~/.config/raiko/config/bootstrap.gaiko.json.
519
+
520
+
If there are no errors, please use `ls ~/.config/raiko/config` to check that the files `bootstrap.json` and `bootstrap.gaiko.json` exist.
522
521
523
522
7. Navigate to `taiko-mono` and register your instance.
524
523
525
-
If you haven't done so yet, clone `taiko-mono`. Checkout `taiko-alethia-protocol-v2.3.0`.
524
+
If you haven't done so yet, clone `taiko-mono`. Checkout `main`.
0 commit comments