diff --git a/emmarin/cl/Cargo.toml b/emmarin/cl/Cargo.toml index a489931..f466036 100644 --- a/emmarin/cl/Cargo.toml +++ b/emmarin/cl/Cargo.toml @@ -4,7 +4,9 @@ members = [ "cl", "ledger", "ledger_proof_statements", - "ledger_validity_proof", + "ledger_risc0_proof", + "bundle_risc0_proof", + "risc0_proofs", "risc0_images", ] diff --git a/emmarin/cl/bundle_risc0_proof/Cargo.toml b/emmarin/cl/bundle_risc0_proof/Cargo.toml index 1d08878..ba3bd56 100644 --- a/emmarin/cl/bundle_risc0_proof/Cargo.toml +++ b/emmarin/cl/bundle_risc0_proof/Cargo.toml @@ -1,11 +1,17 @@ [package] -name = "nomos_mantle_bundle_risc0_proof" +name = "bundle_risc0_proof" version = "0.1.0" edition = "2021" -[build-dependencies] -risc0-build = { version = "1.0" } +[dependencies] +risc0-zkvm = { version = "1.0", default-features = false, features = ['std'] } +cl = { path = "../cl" } +risc0_images = { path = "../risc0_images" } +hex = "0.4" -[package.metadata.risc0] -methods = ["bundle"] +[patch.crates-io] +# add RISC Zero accelerator support for all downstream usages of the following crates. +sha2 = { git = "https://github.com/risc0/RustCrypto-hashes", tag = "sha2-v0.10.8-risczero.0" } +crypto-bigint = { git = "https://github.com/risc0/RustCrypto-crypto-bigint", tag = "v0.5.5-risczero.0" } +curve25519-dalek = { git = "https://github.com/risc0/curve25519-dalek", tag = "curve25519-4.1.2-risczero.0" } diff --git a/emmarin/cl/bundle_risc0_proof/build.rs b/emmarin/cl/bundle_risc0_proof/build.rs deleted file mode 100644 index 08a8a4e..0000000 --- a/emmarin/cl/bundle_risc0_proof/build.rs +++ /dev/null @@ -1,3 +0,0 @@ -fn main() { - risc0_build::embed_methods(); -} diff --git a/emmarin/cl/bundle_risc0_proof/bundle/Cargo.toml b/emmarin/cl/bundle_risc0_proof/bundle/Cargo.toml deleted file mode 100644 index cca979a..0000000 --- a/emmarin/cl/bundle_risc0_proof/bundle/Cargo.toml +++ /dev/null @@ -1,19 +0,0 @@ -[package] -name = "bundle" -version = "0.1.0" -edition = "2021" - -[workspace] - -[dependencies] -risc0-zkvm = { version = "1.0", default-features = false, features = ['std'] } -cl = { path = "../../cl" } -risc0_images = { path = "../../risc0_images" } -hex = "0.4" - - -[patch.crates-io] -# add RISC Zero accelerator support for all downstream usages of the following crates. -sha2 = { git = "https://github.com/risc0/RustCrypto-hashes", tag = "sha2-v0.10.8-risczero.0" } -crypto-bigint = { git = "https://github.com/risc0/RustCrypto-crypto-bigint", tag = "v0.5.5-risczero.0" } -curve25519-dalek = { git = "https://github.com/risc0/curve25519-dalek", tag = "curve25519-4.1.2-risczero.0" } diff --git a/emmarin/cl/bundle_risc0_proof/bundle/src/main.rs b/emmarin/cl/bundle_risc0_proof/src/bin/bundle.rs similarity index 100% rename from emmarin/cl/bundle_risc0_proof/bundle/src/main.rs rename to emmarin/cl/bundle_risc0_proof/src/bin/bundle.rs diff --git a/emmarin/cl/bundle_risc0_proof/src/lib.rs b/emmarin/cl/bundle_risc0_proof/src/lib.rs deleted file mode 100644 index 1bdb308..0000000 --- a/emmarin/cl/bundle_risc0_proof/src/lib.rs +++ /dev/null @@ -1 +0,0 @@ -include!(concat!(env!("OUT_DIR"), "/methods.rs")); diff --git a/emmarin/cl/gen_risc0_images.sh b/emmarin/cl/gen_risc0_images.sh index b18d8df..0f5e38f 100755 --- a/emmarin/cl/gen_risc0_images.sh +++ b/emmarin/cl/gen_risc0_images.sh @@ -3,10 +3,9 @@ set -e # Order of these proofs is important, we sequence them topologically by composition order proofs=$(cat <