Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7 from informalsystems/farhad/update-starter
Browse files Browse the repository at this point in the history
chore: update with latest upstream starter (a3ff620)
  • Loading branch information
soareschen authored Mar 12, 2024
2 parents 0ca6b94 + 72d1413 commit 26a8cce
Show file tree
Hide file tree
Showing 21 changed files with 298 additions and 212 deletions.
126 changes: 74 additions & 52 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ sov-sequencer-registry = { path = "./vendor/sovereign-sdk/module-system
sov-modules-stf-blueprint = { path = "./vendor/sovereign-sdk/module-system/sov-modules-stf-blueprint" }
sov-modules-rollup-blueprint = { path = "./vendor/sovereign-sdk/module-system/sov-modules-rollup-blueprint" }
sov-stf-runner = { path = "./vendor/sovereign-sdk/full-node/sov-stf-runner" }
sov-db = { path = "./vendor/sovereign-sdk/full-node/db/sov-db" }
sov-db = { path = "./vendor/sovereign-sdk/full-node/sov-db" }
sov-sequencer = { path = "./vendor/sovereign-sdk/full-node/sov-sequencer" }
sov-rollup-interface = { path = "./vendor/sovereign-sdk/rollup-interface" }
sov-risc0-adapter = { path = "./vendor/sovereign-sdk/adapters/risc0" }
Expand All @@ -40,8 +40,8 @@ sov-celestia-adapter = { path = "./vendor/sovereign-sdk/adapters/cele
sov-prover-storage-manager = { path = "./vendor/sovereign-sdk/full-node/sov-prover-storage-manager" }
sov-mock-zkvm = { path = "./vendor/sovereign-sdk/adapters/mock-zkvm" }

sov-ibc = { git = "https://github.com/informalsystems/sovereign-ibc.git", rev = "e67de8" }
sov-ibc-transfer = { git = "https://github.com/informalsystems/sovereign-ibc.git", rev = "e67de8" }
sov-ibc = { git = "https://github.com/informalsystems/sovereign-ibc.git", rev = "7e41c9b" }
sov-ibc-transfer = { git = "https://github.com/informalsystems/sovereign-ibc.git", rev = "7e41c9b" }

stf-starter = { path = "./crates/stf" }

Expand Down
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ $ make clean-db

#### 3. Start the rollup node:

```sh,test-ci
export SOV_PROVER_MODE=execute
```

This will compile and start the rollup node:

```shell,test-ci,bashtestmd:long-running,bashtestmd:wait-until=RPC
Expand Down Expand Up @@ -124,4 +128,12 @@ $ make test-bank-supply-of
```
$ curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"bank_supplyOf","params":{"token_address":"sov1zdwj8thgev2u3yyrrlekmvtsz4av4tp3m7dm5mx5peejnesga27svq9m72"},"id":1}' http://127.0.0.1:12345
{"jsonrpc":"2.0","result":{"amount":1000},"id":1}
```
```

## Enabling the prover
By default, demo-rollup disables proving (i.e. the default behavior is. If we want to enable proving, several options are available:

* `export SOV_PROVER_MODE=skip` Skips verification logic.
* `export SOV_PROVER_MODE=simulate` Run the rollup verification logic inside the current process.
* `export SOV_PROVER_MODE=execute` Run the rollup verifier in a zkVM executor.
* `export SOV_PROVER_MODE=prove` Run the rollup verifier and create a SNARK of execution.
4 changes: 2 additions & 2 deletions celestia_rollup_config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[da]
# The JWT used to authenticate with the celestia light client. Instructions for generating this token can be found in the README
celestia_rpc_auth_token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJBbGxvdyI6WyJwdWJsaWMiLCJyZWFkIiwid3JpdGUiLCJhZG1pbiJdfQ.cpgAm8Hms_DYhpaQADyWll5RP13nfTAsYROrfFilpLk"
celestia_rpc_auth_token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJBbGxvdyI6WyJwdWJsaWMiLCJyZWFkIiwid3JpdGUiLCJhZG1pbiJdfQ.Qysvnw7v_rFxyvX-5G4PFK9AiUAgYjteITxHfRtjycM"
# The address of the *trusted* Celestia light client to interact with
celestia_rpc_address = "http://127.0.0.1:26658"
# The largest response the rollup will accept from the Celestia node. Defaults to 100 MB
Expand All @@ -15,7 +15,7 @@ path = "../../rollup-starter-data"
# We define the rollup's genesis to occur at block number `start_height`. The rollup will ignore
# any blocks before this height
[runner]
start_height = 3
genesis_height = 3
da_polling_interval_ms = 1000

[runner.rpc_config]
Expand Down
70 changes: 42 additions & 28 deletions crates/provers/risc0/guest-celestia/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 26a8cce

Please sign in to comment.