Skip to content

Commit

Permalink
simplify risc0 host (#1411)
Browse files Browse the repository at this point in the history
Co-authored-by: yaziciahmet <[email protected]>
Co-authored-by: Ahmet Yazıcı <[email protected]>
  • Loading branch information
3 people authored Nov 4, 2024
1 parent 74f5ed1 commit 85efd0d
Show file tree
Hide file tree
Showing 32 changed files with 353 additions and 898 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,6 @@ jobs:
run: make test
env:
RUST_BACKTRACE: 1
BONSAI_API_URL: ${{ secrets.BONSAI_API_URL }} # TODO: remove this once we don't use the client on tests
BONSAI_API_KEY: ${{ secrets.BONSAI_API_KEY }} # TODO: remove this once we don't use the client on tests
RISC0_DEV_MODE: 1 # This is needed to generate mock proofs and verify them
TEST_BITCOIN_DOCKER: 1
CI_TEST_MODE: 1
Expand Down
33 changes: 6 additions & 27 deletions Cargo.lock

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

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ members = [
"crates/primitives",
"crates/prover-services",
"crates/pruning",
"crates/risc0-bonsai",
"crates/risc0",
"crates/sequencer",
"crates/sequencer-client",
"crates/soft-confirmation-rule-enforcer",
# "crates/sp1",
# Sovereign sdk
"crates/sovereign-sdk/rollup-interface",
"crates/sovereign-sdk/adapters/risc0",
"crates/sovereign-sdk/adapters/mock-da",
"crates/sovereign-sdk/adapters/mock-zkvm",
# Full Node
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# The release tag of https://github.com/ethereum/tests to use for EF tests
EF_TESTS_URL := https://github.com/chainwayxyz/ef-tests/archive/develop.tar.gz
EF_TESTS_DIR := crates/evm/ethereum-tests
CITREA_E2E_TEST_BINARY := $(CURDIR)/target/debug/citrea
PARALLEL_PROOF_LIMIT := 1

.PHONY: help
Expand Down
2 changes: 1 addition & 1 deletion bin/citrea/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ citrea-fullnode = { path = "../../crates/fullnode" }
citrea-light-client-prover = { path = "../../crates/light-client-prover", features = ["native"] }
citrea-primitives = { path = "../../crates/primitives" }
citrea-risc0 = { package = "risc0", path = "./provers/risc0" }
citrea-risc0-bonsai-adapter = { path = "../../crates/risc0-bonsai", features = ["native"] }
citrea-risc0-adapter = { path = "../../crates/risc0", features = ["native"] }
citrea-sequencer = { path = "../../crates/sequencer" }
# citrea-sp1 = { path = "../../crates/sp1", features = ["native"] }
citrea-stf = { path = "../../crates/citrea-stf", features = ["native"] }
Expand Down
30 changes: 15 additions & 15 deletions bin/citrea/provers/risc0/batch-proof-bitcoin/Cargo.lock

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

2 changes: 1 addition & 1 deletion bin/citrea/provers/risc0/batch-proof-bitcoin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ risc0-zkvm-platform = { version = "1.1.2" }
anyhow = "1.0.68"
bitcoin-da = { path = "../../../../../crates/bitcoin-da", default-features = false }
citrea-primitives = { path = "../../../../../crates/primitives" }
citrea-risc0-adapter = { path = "../../../../../crates/risc0" }
citrea-stf = { path = "../../../../../crates/citrea-stf" }
sov-modules-api = { path = "../../../../../crates/sovereign-sdk/module-system/sov-modules-api", default-features = false }
sov-modules-stf-blueprint = { path = "../../../../../crates/sovereign-sdk/module-system/sov-modules-stf-blueprint" }
sov-risc0-adapter = { path = "../../../../../crates/sovereign-sdk/adapters/risc0" }
sov-rollup-interface = { path = "../../../../../crates/sovereign-sdk/rollup-interface" }
sov-state = { path = "../../../../../crates/sovereign-sdk/module-system/sov-state" }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
use bitcoin_da::spec::RollupParams;
use bitcoin_da::verifier::BitcoinVerifier;
use citrea_primitives::{TO_BATCH_PROOF_PREFIX, TO_LIGHT_CLIENT_PREFIX};
use citrea_risc0_adapter::guest::Risc0Guest;
use citrea_stf::runtime::Runtime;
use citrea_stf::StfVerifier;
use sov_modules_api::default_context::ZkDefaultContext;
use sov_modules_stf_blueprint::StfBlueprint;
use sov_risc0_adapter::guest::Risc0Guest;
use sov_rollup_interface::da::DaVerifier;
use sov_state::ZkStorage;

Expand Down
30 changes: 15 additions & 15 deletions bin/citrea/provers/risc0/batch-proof-mock/Cargo.lock

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

2 changes: 1 addition & 1 deletion bin/citrea/provers/risc0/batch-proof-mock/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ risc0-zkvm = { version = "1.1.2", default-features = false }
risc0-zkvm-platform = { version = "1.1.2" }

anyhow = "1.0"
citrea-risc0-adapter = { path = "../../../../../crates/risc0" }
citrea-stf = { path = "../../../../../crates/citrea-stf" }
sov-mock-da = { path = "../../../../../crates/sovereign-sdk/adapters/mock-da", default-features = false }
sov-modules-api = { path = "../../../../../crates/sovereign-sdk/module-system/sov-modules-api", default-features = false }
sov-modules-stf-blueprint = { path = "../../../../../crates/sovereign-sdk/module-system/sov-modules-stf-blueprint" }
sov-risc0-adapter = { path = "../../../../../crates/sovereign-sdk/adapters/risc0" }
sov-state = { path = "../../../../../crates/sovereign-sdk/module-system/sov-state" }

[patch.crates-io]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use citrea_stf::StfVerifier;
use sov_mock_da::MockDaVerifier;
use sov_modules_api::default_context::ZkDefaultContext;
use sov_modules_stf_blueprint::StfBlueprint;
use sov_risc0_adapter::guest::Risc0Guest;
use citrea_risc0_adapter::guest::Risc0Guest;
use sov_state::ZkStorage;

risc0_zkvm::guest::entry!(main);
Expand Down
30 changes: 15 additions & 15 deletions bin/citrea/provers/risc0/light-client-proof-bitcoin/Cargo.lock

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

Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ anyhow = "1.0.68"
bitcoin-da = { path = "../../../../../crates/bitcoin-da", default-features = false }
citrea-light-client-prover = { path = "../../../../../crates/light-client-prover", default-features = false }
citrea-primitives = { path = "../../../../../crates/primitives" }
citrea-risc0-adapter = { path = "../../../../../crates/risc0" }
sov-modules-api = { path = "../../../../../crates/sovereign-sdk/module-system/sov-modules-api", default-features = false }
sov-modules-stf-blueprint = { path = "../../../../../crates/sovereign-sdk/module-system/sov-modules-stf-blueprint" }
sov-risc0-adapter = { path = "../../../../../crates/sovereign-sdk/adapters/risc0" }
sov-rollup-interface = { path = "../../../../../crates/sovereign-sdk/rollup-interface" }
sov-state = { path = "../../../../../crates/sovereign-sdk/module-system/sov-state" }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use bitcoin_da::spec::RollupParams;
use bitcoin_da::verifier::BitcoinVerifier;
use citrea_light_client_prover::circuit::run_circuit;
use citrea_primitives::{TO_BATCH_PROOF_PREFIX, TO_LIGHT_CLIENT_PREFIX};
use sov_risc0_adapter::guest::Risc0Guest;
use citrea_risc0_adapter::guest::Risc0Guest;
use sov_rollup_interface::da::DaVerifier;
use sov_rollup_interface::zk::ZkvmGuest;

Expand Down
Loading

0 comments on commit 85efd0d

Please sign in to comment.