diff --git a/Cargo.lock b/Cargo.lock index a03768bd..61485c16 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "abscissa_core" @@ -21,7 +21,7 @@ dependencies = [ "semver 1.0.23", "serde", "termcolor", - "toml", + "toml 0.5.11", "tracing", "tracing-log 0.1.4", "tracing-subscriber 0.3.18", @@ -63,17 +63,18 @@ dependencies = [ [[package]] name = "addr2line" -version = "0.22.0" +version = "0.24.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e4503c46a5c0c7844e948c9a4d6acd9f50cccb4de1c48eb9e291ea17470c678" +checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" dependencies = [ "cpp_demangle", "fallible-iterator 0.3.0", - "gimli 0.29.0", + "gimli 0.31.1", "memmap2", - "object 0.35.0", + "object 0.36.7", "rustc-demangle", "smallvec", + "typed-arena", ] [[package]] @@ -246,7 +247,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aa64d80ae58ffaafdff9d5d84f58d03775f66c84433916dc9a64ed16af5755da" dependencies = [ "serde", - "winnow", + "winnow 0.6.20", ] [[package]] @@ -328,9 +329,12 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.93" +version = "1.0.99" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c95c10ba0b00a02636238b814946408b1322d5ac4760326e6fb8ec956d85775" +checksum = "b0674a1ddeecb70197781e945de4b3b8ffb61fa939a5597bcf48503737663100" +dependencies = [ + "backtrace", +] [[package]] name = "approx" @@ -358,46 +362,66 @@ checksum = "69f7f8c3906b62b754cd5326047894316021dcfe5a194c8ea52bdd94934a3457" [[package]] name = "ark-bn254" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a22f4561524cd949590d78d7d4c5df8f592430d221f7f3c9497bbafd8972120f" +checksum = "d69eab57e8d2663efa5c63135b2af4f396d66424f88954c21104125ab6b3e6bc" dependencies = [ "ark-ec", - "ark-ff 0.4.2", - "ark-std 0.4.0", + "ark-ff 0.5.0", + "ark-r1cs-std", + "ark-std 0.5.0", ] [[package]] name = "ark-crypto-primitives" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f3a13b34da09176a8baba701233fdffbaa7c1b1192ce031a3da4e55ce1f1a56" +checksum = "1e0c292754729c8a190e50414fd1a37093c786c709899f29c9f7daccecfa855e" dependencies = [ + "ahash", + "ark-crypto-primitives-macros", "ark-ec", - "ark-ff 0.4.2", + "ark-ff 0.5.0", "ark-relations", - "ark-serialize 0.4.2", + "ark-serialize 0.5.0", "ark-snark", - "ark-std 0.4.0", + "ark-std 0.5.0", "blake2", "derivative", "digest 0.10.7", + "fnv", + "merlin", "sha2 0.10.8", ] +[[package]] +name = "ark-crypto-primitives-macros" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7e89fe77d1f0f4fe5b96dfc940923d88d17b6a773808124f21e764dfb063c6a" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.88", +] + [[package]] name = "ark-ec" -version = "0.4.2" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "defd9a439d56ac24968cca0571f598a61bc8c55f71d50a89cda591cb750670ba" +checksum = "43d68f2d516162846c1238e755a7c4d131b892b70cc70c471a8e3ca3ed818fce" dependencies = [ - "ark-ff 0.4.2", + "ahash", + "ark-ff 0.5.0", "ark-poly", - "ark-serialize 0.4.2", - "ark-std 0.4.0", - "derivative", - "hashbrown 0.13.2", - "itertools 0.10.5", + "ark-serialize 0.5.0", + "ark-std 0.5.0", + "educe", + "fnv", + "hashbrown 0.15.1", + "itertools 0.13.0", + "num-bigint 0.4.6", + "num-integer", "num-traits", "zeroize", ] @@ -440,6 +464,26 @@ dependencies = [ "zeroize", ] +[[package]] +name = "ark-ff" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a177aba0ed1e0fbb62aa9f6d0502e9b46dad8c2eab04c14258a1212d2557ea70" +dependencies = [ + "ark-ff-asm 0.5.0", + "ark-ff-macros 0.5.0", + "ark-serialize 0.5.0", + "ark-std 0.5.0", + "arrayvec", + "digest 0.10.7", + "educe", + "itertools 0.13.0", + "num-bigint 0.4.6", + "num-traits", + "paste", + "zeroize", +] + [[package]] name = "ark-ff-asm" version = "0.3.0" @@ -460,6 +504,16 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "ark-ff-asm" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62945a2f7e6de02a31fe400aa489f0e0f5b2502e69f95f853adb82a96c7a6b60" +dependencies = [ + "quote", + "syn 2.0.88", +] + [[package]] name = "ark-ff-macros" version = "0.3.0" @@ -485,42 +539,74 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "ark-ff-macros" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09be120733ee33f7693ceaa202ca41accd5653b779563608f1234f78ae07c4b3" +dependencies = [ + "num-bigint 0.4.6", + "num-traits", + "proc-macro2", + "quote", + "syn 2.0.88", +] + [[package]] name = "ark-groth16" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20ceafa83848c3e390f1cbf124bc3193b3e639b3f02009e0e290809a501b95fc" +checksum = "88f1d0f3a534bb54188b8dcc104307db6c56cdae574ddc3212aec0625740fc7e" dependencies = [ "ark-crypto-primitives", "ark-ec", - "ark-ff 0.4.2", + "ark-ff 0.5.0", "ark-poly", "ark-relations", - "ark-serialize 0.4.2", - "ark-std 0.4.0", + "ark-serialize 0.5.0", + "ark-std 0.5.0", ] [[package]] name = "ark-poly" -version = "0.4.2" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d320bfc44ee185d899ccbadfa8bc31aab923ce1558716e1997a1e74057fe86bf" +checksum = "579305839da207f02b89cd1679e50e67b4331e2f9294a57693e5051b7703fe27" dependencies = [ - "ark-ff 0.4.2", - "ark-serialize 0.4.2", - "ark-std 0.4.0", - "derivative", - "hashbrown 0.13.2", + "ahash", + "ark-ff 0.5.0", + "ark-serialize 0.5.0", + "ark-std 0.5.0", + "educe", + "fnv", + "hashbrown 0.15.1", +] + +[[package]] +name = "ark-r1cs-std" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "941551ef1df4c7a401de7068758db6503598e6f01850bdb2cfdb614a1f9dbea1" +dependencies = [ + "ark-ec", + "ark-ff 0.5.0", + "ark-relations", + "ark-std 0.5.0", + "educe", + "num-bigint 0.4.6", + "num-integer", + "num-traits", + "tracing", ] [[package]] name = "ark-relations" -version = "0.4.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00796b6efc05a3f48225e59cb6a2cda78881e7c390872d5786aaf112f31fb4f0" +checksum = "ec46ddc93e7af44bcab5230937635b06fb5744464dd6a7e7b083e80ebd274384" dependencies = [ - "ark-ff 0.4.2", - "ark-std 0.4.0", + "ark-ff 0.5.0", + "ark-std 0.5.0", "tracing", "tracing-subscriber 0.2.25", ] @@ -541,33 +627,45 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "adb7b85a02b83d2f22f89bd5cac66c9c89474240cb6207cb1efc16d098e822a5" dependencies = [ - "ark-serialize-derive", "ark-std 0.4.0", "digest 0.10.7", "num-bigint 0.4.6", ] +[[package]] +name = "ark-serialize" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f4d068aaf107ebcd7dfb52bc748f8030e0fc930ac8e360146ca54c1203088f7" +dependencies = [ + "ark-serialize-derive", + "ark-std 0.5.0", + "arrayvec", + "digest 0.10.7", + "num-bigint 0.4.6", +] + [[package]] name = "ark-serialize-derive" -version = "0.4.2" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae3281bc6d0fd7e549af32b52511e1302185bd688fd3359fa36423346ff682ea" +checksum = "213888f660fddcca0d257e88e54ac05bca01885f258ccdf695bafd77031bb69d" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.88", ] [[package]] name = "ark-snark" -version = "0.4.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84d3cc6833a335bb8a600241889ead68ee89a3cf8448081fb7694c0fe503da63" +checksum = "d368e2848c2d4c129ce7679a7d0d2d612b6a274d3ea6a13bad4445d61b381b88" dependencies = [ - "ark-ff 0.4.2", + "ark-ff 0.5.0", "ark-relations", - "ark-serialize 0.4.2", - "ark-std 0.4.0", + "ark-serialize 0.5.0", + "ark-std 0.5.0", ] [[package]] @@ -590,6 +688,22 @@ dependencies = [ "rand 0.8.5", ] +[[package]] +name = "ark-std" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "246a225cc6131e9ee4f24619af0f19d67761fff15d7ccc22e42b80846e69449a" +dependencies = [ + "num-traits", + "rand 0.8.5", +] + +[[package]] +name = "arraydeque" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d902e3d592a523def97af8f317b08ce16b7ab854c1985a0c671e6f15cebc236" + [[package]] name = "arrayref" version = "0.3.9" @@ -696,6 +810,15 @@ dependencies = [ "tungstenite", ] +[[package]] +name = "atomic-polyfill" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cf2bce30dfe09ef0bfaef228b9d414faaf7e563035494d7fe092dba54b300f4" +dependencies = [ + "critical-section", +] + [[package]] name = "attestation-report" version = "0.1.0" @@ -711,7 +834,7 @@ dependencies = [ "pem 2.0.1", "serde", "serde_json", - "serde_with", + "serde_with 2.3.3", "sgx_types", "tokio", "webpki 0.22.4", @@ -739,12 +862,6 @@ dependencies = [ "syn 2.0.88", ] -[[package]] -name = "auto_ops" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7460f7dd8e100147b82a63afca1a20eb6c231ee36b90ba7272e14951cb58af59" - [[package]] name = "autocfg" version = "1.4.0" @@ -877,7 +994,7 @@ version = "0.69.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "271383c67ccabffb7381723dea0672a673f292304fcb45c01cc648c7a8d58088" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.9.3", "cexpr", "clang-sys", "itertools 0.12.1", @@ -891,20 +1008,40 @@ dependencies = [ "syn 2.0.88", ] +[[package]] +name = "bindgen" +version = "0.72.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f72209734318d0b619a5e0f5129918b848c416e122a3c4ce054e03cb87b726f" +dependencies = [ + "bitflags 2.9.3", + "cexpr", + "clang-sys", + "itertools 0.13.0", + "log", + "prettyplease", + "proc-macro2", + "quote", + "regex", + "rustc-hash 2.1.0", + "shlex", + "syn 2.0.88", +] + [[package]] name = "bit-set" -version = "0.5.3" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" dependencies = [ "bit-vec", ] [[package]] name = "bit-vec" -version = "0.6.3" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" [[package]] name = "bitcoin" @@ -935,9 +1072,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.6.0" +version = "2.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" +checksum = "34efbcccd345379ca2868b2b2c9d3782e9cc58ba87bc7d79d5b53d9c9ae6f25d" [[package]] name = "bitvec" @@ -984,17 +1121,29 @@ dependencies = [ "generic-array", ] +[[package]] +name = "blst" +version = "0.3.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fd49896f12ac9b6dcd7a5998466b9b58263a695a3dd1ecc1aaca2e12a90b080" +dependencies = [ + "cc", + "glob", + "threadpool", + "zeroize", +] + [[package]] name = "bonsai-sdk" -version = "1.2.4" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "758a880c4d654ade8df6e786b663b542a9e31b351591c79a433830217d45f10a" +checksum = "21055e2f49cbbdbfe9f8f96d597c5527b0c6ab7933341fdc2f147180e48a988e" dependencies = [ "duplicate", "maybe-async", "reqwest 0.12.9", "serde", - "thiserror 1.0.69", + "thiserror 2.0.16", ] [[package]] @@ -1148,9 +1297,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.8.0" +version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da" +checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a" dependencies = [ "serde", ] @@ -1205,16 +1354,16 @@ dependencies = [ [[package]] name = "cargo_metadata" -version = "0.18.1" +version = "0.19.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d886547e41f740c616ae73108f6eb70afe6d940c7bc697cb30f13daec073037" +checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba" dependencies = [ "camino", "cargo-platform", "semver 1.0.23", "serde", "serde_json", - "thiserror 1.0.69", + "thiserror 2.0.16", ] [[package]] @@ -1276,6 +1425,35 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e4de3bc4ea267985becf712dc6d9eed8b04c953b3fcfb339ebc87acd9804901" +[[package]] +name = "circom-witnesscalc" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba3fb734f91de7e7002678ea3238fddfd4ee7afd33e9ed975176f4a94794a55a" +dependencies = [ + "anyhow", + "ark-bn254", + "ark-ff 0.5.0", + "ark-serialize 0.5.0", + "bindgen 0.72.0", + "byteorder", + "indicatif", + "libc", + "memmap2", + "num-bigint 0.4.6", + "num-traits", + "prost 0.13.5", + "prost-build", + "rand 0.8.5", + "ruint", + "serde", + "serde_json", + "tempfile", + "thiserror 2.0.16", + "winnow 0.7.13", + "wtns-file", +] + [[package]] name = "clang-sys" version = "1.8.1" @@ -1375,6 +1553,15 @@ version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "afb84c814227b90d6895e01398aee0d8033c00e7466aca416fb6a8e0eb19d8a7" +[[package]] +name = "cobs" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fa961b519f0b462e3a3b4a34b64d119eeaca1d59af726fe450bbba07a9fc0a1" +dependencies = [ + "thiserror 2.0.16", +] + [[package]] name = "color-eyre" version = "0.6.3" @@ -1433,7 +1620,7 @@ dependencies = [ "encode_unicode", "lazy_static", "libc", - "unicode-width", + "unicode-width 0.1.14", "windows-sys 0.52.0", ] @@ -1532,17 +1719,10 @@ dependencies = [ ] [[package]] -name = "crossbeam" -version = "0.8.4" +name = "critical-section" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1137cd7e7fc0fb5d3c5a8678be38ec56e819125d8d7907411fe24ccb943faca8" -dependencies = [ - "crossbeam-channel 0.5.13", - "crossbeam-deque", - "crossbeam-epoch", - "crossbeam-queue", - "crossbeam-utils 0.8.20", -] +checksum = "790eea4361631c5e7d22598ecd5723ff611904e3344ce8720784c93e3d83d40b" [[package]] name = "crossbeam-channel" @@ -1582,15 +1762,6 @@ dependencies = [ "crossbeam-utils 0.8.20", ] -[[package]] -name = "crossbeam-queue" -version = "0.3.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f58bbc28f91df819d0aa2a2c00cd19754769c2fad90579b3592b1c9ba7a3115" -dependencies = [ - "crossbeam-utils 0.8.20", -] - [[package]] name = "crossbeam-utils" version = "0.7.2" @@ -1813,7 +1984,7 @@ checksum = "e8566979429cf69b49a5c740c60791108e86440e8be149bbea4fe54d2c32d6e2" [[package]] name = "dcap-collaterals" version = "0.1.0" -source = "git+https://github.com/datachainlab/zkdcap?rev=v0.0.3#v0.0.3" +source = "git+https://github.com/datachainlab/zkdcap?rev=9d6fab9b7ca5621e58958515228a616f37f89a6d#9d6fab9b7ca5621e58958515228a616f37f89a6d" dependencies = [ "anyhow", "chrono", @@ -1828,7 +1999,7 @@ dependencies = [ [[package]] name = "dcap-pcs" version = "0.1.0" -source = "git+https://github.com/datachainlab/zkdcap?rev=v0.0.3#v0.0.3" +source = "git+https://github.com/datachainlab/zkdcap?rev=9d6fab9b7ca5621e58958515228a616f37f89a6d#9d6fab9b7ca5621e58958515228a616f37f89a6d" dependencies = [ "anyhow", "dcap-quote-verifier", @@ -1843,7 +2014,7 @@ dependencies = [ [[package]] name = "dcap-quote-verifier" version = "0.1.0" -source = "git+https://github.com/datachainlab/zkdcap?rev=v0.0.3#v0.0.3" +source = "git+https://github.com/datachainlab/zkdcap?rev=9d6fab9b7ca5621e58958515228a616f37f89a6d#9d6fab9b7ca5621e58958515228a616f37f89a6d" dependencies = [ "alloy-sol-types", "anyhow", @@ -1860,7 +2031,7 @@ dependencies = [ [[package]] name = "dcap-types" version = "0.1.0" -source = "git+https://github.com/datachainlab/zkdcap?rev=v0.0.3#v0.0.3" +source = "git+https://github.com/datachainlab/zkdcap?rev=9d6fab9b7ca5621e58958515228a616f37f89a6d#9d6fab9b7ca5621e58958515228a616f37f89a6d" dependencies = [ "anyhow", "chrono", @@ -1953,6 +2124,37 @@ dependencies = [ "syn 2.0.88", ] +[[package]] +name = "derive_builder" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "507dfb09ea8b7fa618fcf76e953f4f5e192547945816d5358edffe39f6f94947" +dependencies = [ + "derive_builder_macro", +] + +[[package]] +name = "derive_builder_core" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d5bcf7b024d6835cfb3d473887cd966994907effbe9227e8c8219824d06c4e8" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.88", +] + +[[package]] +name = "derive_builder_macro" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab63b0e2bf4d5928aff72e83a7dace85d7bba5fe12dcc3c5a572d78caffd3f3c" +dependencies = [ + "derive_builder_core", + "syn 2.0.88", +] + [[package]] name = "derive_more" version = "0.99.18" @@ -1970,7 +2172,16 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4a9b99b9cbbe49445b21764dc0625032a89b145a2642e67603e1c936f5458d05" dependencies = [ - "derive_more-impl", + "derive_more-impl 1.0.0", +] + +[[package]] +name = "derive_more" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "093242cf7570c207c83073cf82f79706fe7b8317e98620a47d5be7c3d8497678" +dependencies = [ + "derive_more-impl 2.0.1", ] [[package]] @@ -1985,6 +2196,18 @@ dependencies = [ "unicode-xid", ] +[[package]] +name = "derive_more-impl" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bda628edc44c4bb645fbe0f758797143e4e07926f7ebf4e9bdfbd3d2ce621df3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.88", + "unicode-xid", +] + [[package]] name = "dialoguer" version = "0.10.4" @@ -2020,11 +2243,11 @@ dependencies = [ [[package]] name = "directories" -version = "5.0.1" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a49173b84e034382284f27f1af4dcbbd231ffa358c0fe316541a7337f376a35" +checksum = "16f5094c54661b38d03bd7e50df373292118db60b585c08a411c6d840017fe7d" dependencies = [ - "dirs-sys 0.4.1", + "dirs-sys 0.5.0", ] [[package]] @@ -2038,11 +2261,11 @@ dependencies = [ [[package]] name = "dirs" -version = "5.0.1" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44c45a9d03d6676652bcb5e724c7e988de1acad23a711b5217ab9cbecbec2225" +checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e" dependencies = [ - "dirs-sys 0.4.1", + "dirs-sys 0.5.0", ] [[package]] @@ -2062,20 +2285,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b1d1d91c932ef41c0f2663aa8b0ca0342d444d842c06914aa0a7e352d0bada6" dependencies = [ "libc", - "redox_users", + "redox_users 0.4.6", "winapi", ] [[package]] name = "dirs-sys" -version = "0.4.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c" +checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab" dependencies = [ "libc", "option-ext", - "redox_users", - "windows-sys 0.48.0", + "redox_users 0.5.2", + "windows-sys 0.59.0", ] [[package]] @@ -2085,7 +2308,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d" dependencies = [ "libc", - "redox_users", + "redox_users 0.4.6", "winapi", ] @@ -2134,12 +2357,13 @@ checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" [[package]] name = "duplicate" -version = "1.0.0" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de78e66ac9061e030587b2a2e75cc88f22304913c907b11307bca737141230cb" +checksum = "97af9b5f014e228b33e77d75ee0e6e87960124f0f4b16337b586a6bec91867b1" dependencies = [ - "heck 0.4.1", - "proc-macro-error", + "heck 0.5.0", + "proc-macro2", + "proc-macro2-diagnostics", ] [[package]] @@ -2157,7 +2381,7 @@ dependencies = [ "flex-error", "lcp-types", "serde", - "serde_with", + "serde_with 2.3.3", "sgx_types", "store", ] @@ -2238,6 +2462,18 @@ dependencies = [ "sha2 0.10.8", ] +[[package]] +name = "educe" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d7bc049e1bd8cdeb31b68bbd586a9464ecf9f3944af3958a7a9d0f8b9799417" +dependencies = [ + "enum-ordinalize", + "proc-macro2", + "quote", + "syn 2.0.88", +] + [[package]] name = "either" version = "1.13.0" @@ -2289,6 +2525,18 @@ dependencies = [ "zeroize", ] +[[package]] +name = "embedded-io" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef1a6892d9eef45c8fa6b9e0086428a2cca8491aca8f787c534a3d6d0bcb3ced" + +[[package]] +name = "embedded-io" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edd0f118536f44f5ccd48bcb8b111bdc3de888b58c74639dfb034a357d0f206d" + [[package]] name = "enclave-api" version = "0.1.0" @@ -2355,6 +2603,26 @@ dependencies = [ "syn 2.0.88", ] +[[package]] +name = "enum-ordinalize" +version = "4.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fea0dcfa4e54eeb516fe454635a95753ddd39acda650ce703031c6973e315dd5" +dependencies = [ + "enum-ordinalize-derive", +] + +[[package]] +name = "enum-ordinalize-derive" +version = "4.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d28318a75d4aead5c4db25382e8ef717932d0346600cacae6357eb5941bc5ff" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.88", +] + [[package]] name = "env_filter" version = "0.1.2" @@ -2425,12 +2693,12 @@ dependencies = [ [[package]] name = "errno" -version = "0.3.9" +version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" +checksum = "778e2ac28f6c47af28e4907f13ffd1e1ddbd400980a9abd7c8df189bf578a5ad" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -2487,6 +2755,17 @@ dependencies = [ "bytes", ] +[[package]] +name = "fastrlp" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce8dba4714ef14b8274c371879b175aa55b16b30f269663f19d576f380018dc4" +dependencies = [ + "arrayvec", + "auto_impl", + "bytes", +] + [[package]] name = "ff" version = "0.12.1" @@ -2559,6 +2838,12 @@ dependencies = [ "static_assertions", ] +[[package]] +name = "fixedbitset" +version = "0.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d674e81391d1e1ab681a28d99df07927c6d4aa5b027d7da16ba32d1d21ecd99" + [[package]] name = "flate2" version = "1.0.35" @@ -2747,6 +3032,30 @@ dependencies = [ "slab", ] +[[package]] +name = "gdbstub" +version = "0.7.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b686b198dfaa4109ebd0443d2841bc521e4b4b2915f1d84b3bb50332a8cdc1ae" +dependencies = [ + "bitflags 2.9.3", + "cfg-if 1.0.0", + "log", + "managed", + "num-traits", + "paste", +] + +[[package]] +name = "gdbstub_arch" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22dde0e1b68787036ccedd0b1ff6f953527a0e807e571fbe898975203027278f" +dependencies = [ + "gdbstub", + "num-traits", +] + [[package]] name = "generic-array" version = "0.14.7" @@ -2782,6 +3091,18 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "getrandom" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4" +dependencies = [ + "cfg-if 1.0.0", + "libc", + "r-efi", + "wasi 0.14.2+wasi-0.2.4", +] + [[package]] name = "gimli" version = "0.28.1" @@ -2790,11 +3111,12 @@ checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" [[package]] name = "gimli" -version = "0.29.0" +version = "0.31.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40ecd4077b5ae9fd2e9e169b102c6c330d0605168eb0e8bf79952b256dbefffd" +checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" dependencies = [ "fallible-iterator 0.3.0", + "indexmap 2.6.0", "stable_deref_trait", ] @@ -2804,7 +3126,7 @@ version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3fda788993cc341f69012feba8bf45c0ba4f3291fcc08e214b4d5a7332d88aff" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.9.3", "libc", "libgit2-sys", "log", @@ -2902,6 +3224,15 @@ version = "1.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b43ede17f21864e81be2fa654110bf1e793774238d86ef8555c37e6519c0403" +[[package]] +name = "hash32" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0c35f58762feb77d74ebe43bdbc3210f09be9fe6742234d573bacc26ed92b67" +dependencies = [ + "byteorder", +] + [[package]] name = "hashbrown" version = "0.12.3" @@ -2933,6 +3264,7 @@ version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3a9bfc1af68b1726ea47d3d5109de126281def866b33970e10fbab11b5dafab3" dependencies = [ + "allocator-api2", "foldhash", "serde", ] @@ -2946,6 +3278,15 @@ dependencies = [ "hashbrown 0.14.5", ] +[[package]] +name = "hashlink" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7382cf6263419f2d8df38c55d7da83da5c18aef87fc7a7fc1fb1e344edfe14c1" +dependencies = [ + "hashbrown 0.15.1", +] + [[package]] name = "hdpath" version = "0.6.3" @@ -2979,6 +3320,20 @@ dependencies = [ "http 0.2.12", ] +[[package]] +name = "heapless" +version = "0.7.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdc6457c0eb62c71aac4bc17216026d8410337c4126773b9c5daba343f17964f" +dependencies = [ + "atomic-polyfill", + "hash32", + "rustc_version 0.4.1", + "serde", + "spin 0.9.8", + "stable_deref_trait", +] + [[package]] name = "heck" version = "0.4.1" @@ -3516,7 +3871,7 @@ dependencies = [ "serde_json", "sha2 0.10.8", "signature 1.6.4", - "strum", + "strum 0.24.1", "subtle-encoding", "tendermint 0.28.0", "tendermint-light-client", @@ -3526,7 +3881,7 @@ dependencies = [ "tiny-bip39", "tiny-keccak", "tokio", - "toml", + "toml 0.5.11", "tonic 0.8.3", "tracing", "uuid 1.11.0", @@ -3665,7 +4020,7 @@ dependencies = [ "subtle-encoding", "tendermint-rpc", "tokio", - "toml", + "toml 0.5.11", "tonic 0.8.3", "tracing", "tracing-subscriber 0.3.18", @@ -3860,6 +4215,12 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "include_bytes_aligned" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ee796ad498c8d9a1d68e477df8f754ed784ef875de1414ebdaf169f70a6a784" + [[package]] name = "indenter" version = "0.3.3" @@ -3874,6 +4235,7 @@ checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" dependencies = [ "autocfg", "hashbrown 0.12.3", + "serde", ] [[package]] @@ -3887,6 +4249,19 @@ dependencies = [ "serde", ] +[[package]] +name = "indicatif" +version = "0.17.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "183b3088984b400f4cfac3620d5e076c84da5364016b4f49473de574b2586235" +dependencies = [ + "console", + "number_prefix", + "portable-atomic", + "unicode-width 0.2.1", + "web-time", +] + [[package]] name = "integration-test" version = "0.1.0" @@ -3912,7 +4287,7 @@ dependencies = [ "log", "ocall-handler", "once_cell", - "prost-types", + "prost-types 0.11.9", "remote-attestation", "store", "tempfile", @@ -3964,6 +4339,15 @@ dependencies = [ "either", ] +[[package]] +name = "itertools" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57" +dependencies = [ + "either", +] + [[package]] name = "itertools" version = "0.12.1" @@ -3973,6 +4357,15 @@ dependencies = [ "either", ] +[[package]] +name = "itertools" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" +dependencies = [ + "either", +] + [[package]] name = "itoa" version = "1.0.13" @@ -4056,7 +4449,7 @@ dependencies = [ "rusqlite", "serde", "serde_json", - "serde_with", + "serde_with 2.3.3", "sgx_types", ] @@ -4173,16 +4566,16 @@ dependencies = [ "prost 0.11.9", "serde", "serde_json", - "serde_with", + "serde_with 2.3.3", "sgx_types", "time", ] [[package]] name = "libc" -version = "0.2.164" +version = "0.2.175" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "433bfe06b8c75da9b2e3fbea6e5329ff87748f0b144ef75306e674c3f6f7c13f" +checksum = "6a82ae493e598baaea5209805c49bbf2ea7de956d50d7da0da1164f9c6d28543" [[package]] name = "libgit2-sys" @@ -4206,6 +4599,26 @@ dependencies = [ "windows-targets 0.52.6", ] +[[package]] +name = "liblzma" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "272b875472a046e39ff7408374a5a050b112d2142211a0f54a295c0bd1c3c757" +dependencies = [ + "liblzma-sys", +] + +[[package]] +name = "liblzma-sys" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01b9596486f6d60c3bbe644c0e1be1aa6ccc472ad630fe8927b456973d7cb736" +dependencies = [ + "cc", + "libc", + "pkg-config", +] + [[package]] name = "libm" version = "0.2.11" @@ -4218,7 +4631,7 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.9.3", "libc", "redox_syscall", ] @@ -4229,7 +4642,7 @@ version = "0.17.1+9.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2b7869a512ae9982f4d46ba482c2a304f1efd80c6412a3d4bf57bb79a619679f" dependencies = [ - "bindgen", + "bindgen 0.69.5", "bzip2-sys", "cc", "libc", @@ -4330,6 +4743,12 @@ version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" +[[package]] +name = "linux-raw-sys" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12" + [[package]] name = "litemap" version = "0.7.3" @@ -4378,23 +4797,70 @@ dependencies = [ ] [[package]] -name = "lzma-sys" -version = "0.1.20" +name = "mach2" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fda04ab3764e6cde78b9974eec4f779acaba7c4e84b36eca3cf77c581b85d27" +checksum = "19b955cdeb2a02b9117f121ce63aa52d08ade45de53e48fe6a38b39c10f6f709" dependencies = [ - "cc", "libc", - "pkg-config", ] [[package]] -name = "mach2" -version = "0.4.2" +name = "malachite" +version = "0.4.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19b955cdeb2a02b9117f121ce63aa52d08ade45de53e48fe6a38b39c10f6f709" +checksum = "2fbdf9cb251732db30a7200ebb6ae5d22fe8e11397364416617d2c2cf0c51cb5" dependencies = [ - "libc", + "malachite-base", + "malachite-float", + "malachite-nz", + "malachite-q", +] + +[[package]] +name = "malachite-base" +version = "0.4.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ea0ed76adf7defc1a92240b5c36d5368cfe9251640dcce5bd2d0b7c1fd87aeb" +dependencies = [ + "hashbrown 0.14.5", + "itertools 0.11.0", + "libm", + "ryu", +] + +[[package]] +name = "malachite-float" +version = "0.4.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af9d20db1c73759c1377db7b27575df6f2eab7368809dd62c0a715dc1bcc39f7" +dependencies = [ + "itertools 0.11.0", + "malachite-base", + "malachite-nz", + "malachite-q", +] + +[[package]] +name = "malachite-nz" +version = "0.4.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34a79feebb2bc9aa7762047c8e5495269a367da6b5a90a99882a0aeeac1841f7" +dependencies = [ + "itertools 0.11.0", + "libm", + "malachite-base", +] + +[[package]] +name = "malachite-q" +version = "0.4.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50f235d5747b1256b47620f5640c2a17a88c7569eebdf27cd9cb130e1a619191" +dependencies = [ + "itertools 0.11.0", + "malachite-base", + "malachite-nz", ] [[package]] @@ -4406,6 +4872,12 @@ dependencies = [ "libc", ] +[[package]] +name = "managed" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ca88d725a0a943b096803bd34e73a4437208b6077654cc4ecb2947a5f91618d" + [[package]] name = "match_cfg" version = "0.1.0" @@ -4469,13 +4941,25 @@ dependencies = [ "libc", ] +[[package]] +name = "merlin" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58c38e2799fc0978b65dfff8023ec7843e2330bb462f19198840b34b6582397d" +dependencies = [ + "byteorder", + "keccak", + "rand_core 0.6.4", + "zeroize", +] + [[package]] name = "metal" version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ecfd3296f8c56b7c1f6fbac3c71cefa9d78ce009850c45000015f206dc7fa21" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.9.3", "block", "core-graphics-types", "foreign-types 0.5.0", @@ -4575,6 +5059,12 @@ dependencies = [ "uuid 1.11.0", ] +[[package]] +name = "multimap" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d87ecb2933e8aeadb3e3a02b828fed80a7528047e68b4f424523a0981a3a084" + [[package]] name = "multipart" version = "0.18.0" @@ -4609,6 +5099,12 @@ dependencies = [ "rayon", ] +[[package]] +name = "no_std_strings" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5b0c77c1b780822bc749a33e39aeb2c07584ab93332303babeabb645298a76e" + [[package]] name = "nodes-runner" version = "0.1.0" @@ -4759,6 +5255,27 @@ dependencies = [ "libc", ] +[[package]] +name = "num_enum" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a973b4e44ce6cad84ce69d797acf9a044532e4184c4f267913d1b546a0727b7a" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77e878c846a8abae00dd069496dbe8751b16ac1c3d6bd2a7283a938e8228f90d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.88", +] + [[package]] name = "num_threads" version = "0.1.7" @@ -4768,6 +5285,12 @@ dependencies = [ "libc", ] +[[package]] +name = "number_prefix" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" + [[package]] name = "nvtx" version = "1.3.0" @@ -4797,9 +5320,9 @@ dependencies = [ [[package]] name = "object" -version = "0.35.0" +version = "0.36.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8ec7ab813848ba4522158d5517a6093db1ded27575b070f4177b8d12b41db5e" +checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87" dependencies = [ "flate2", "memchr", @@ -4860,7 +5383,7 @@ name = "openssl" version = "0.10.64" source = "git+https://github.com/datachainlab/rust-openssl?rev=6fdf2f32721719d173bf909c97e982fe4e2e2819#6fdf2f32721719d173bf909c97e982fe4e2e2819" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.9.3", "cfg-if 1.0.0", "foreign-types 0.3.2", "libc", @@ -5146,10 +5669,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b7cafe60d6cf8e62e1b9b2ea516a089c008945bb5a275416789e7db0bc199dc" dependencies = [ "memchr", - "thiserror 2.0.6", + "thiserror 2.0.16", "ucd-trie", ] +[[package]] +name = "petgraph" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3672b37090dbd86368a4145bc067582552b29c27377cad4e0a306c97f9bd7772" +dependencies = [ + "fixedbitset", + "indexmap 2.6.0", +] + [[package]] name = "pin-project" version = "1.1.7" @@ -5224,6 +5757,19 @@ dependencies = [ "portable-atomic", ] +[[package]] +name = "postcard" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6764c3b5dd454e283a30e6dfe78e9b31096d9e32036b5d1eaac7a6119ccb9a24" +dependencies = [ + "cobs", + "embedded-io 0.4.0", + "embedded-io 0.6.1", + "heapless", + "serde", +] + [[package]] name = "ppv-lite86" version = "0.2.20" @@ -5233,6 +5779,16 @@ dependencies = [ "zerocopy", ] +[[package]] +name = "prettyplease" +version = "0.2.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64d1ec885c64d0457d564db4ec299b2dae3f9c02808b8ad9c3a089c591b18033" +dependencies = [ + "proc-macro2", + "syn 2.0.88", +] + [[package]] name = "primeorder" version = "0.13.6" @@ -5260,7 +5816,7 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785" dependencies = [ - "toml", + "toml 0.5.11", ] [[package]] @@ -5357,17 +5913,17 @@ dependencies = [ [[package]] name = "proptest" -version = "1.5.0" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4c2511913b88df1637da85cc8d96ec8e43a3f8bb8ccb71ee1ac240d6f3df58d" +checksum = "6fcdab19deb5195a31cf7726a210015ff1496ba1464fd42cb4f537b8b01b471f" dependencies = [ "bit-set", "bit-vec", - "bitflags 2.6.0", + "bitflags 2.9.3", "lazy_static", "num-traits", - "rand 0.8.5", - "rand_chacha 0.3.1", + "rand 0.9.2", + "rand_chacha 0.9.0", "rand_xorshift", "regex-syntax 0.8.5", "rusty-fork", @@ -5379,20 +5935,40 @@ dependencies = [ name = "prost" version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b82eaa1d779e9a4bc1c3217db8ffbeabaae1dca241bf70183242128d48681cd" +checksum = "0b82eaa1d779e9a4bc1c3217db8ffbeabaae1dca241bf70183242128d48681cd" +dependencies = [ + "bytes", + "prost-derive 0.11.9", +] + +[[package]] +name = "prost" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2796faa41db3ec313a31f7624d9286acf277b52de526150b7e69f3debf891ee5" dependencies = [ "bytes", - "prost-derive 0.11.9", + "prost-derive 0.13.5", ] [[package]] -name = "prost" -version = "0.13.4" +name = "prost-build" +version = "0.13.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c0fef6c4230e4ccf618a35c59d7ede15dea37de8427500f50aff708806e42ec" +checksum = "be769465445e8c1474e9c5dac2018218498557af32d9ed057325ec9a41ae81bf" dependencies = [ - "bytes", - "prost-derive 0.13.4", + "heck 0.5.0", + "itertools 0.13.0", + "log", + "multimap", + "once_cell", + "petgraph", + "prettyplease", + "prost 0.13.5", + "prost-types 0.13.5", + "regex", + "syn 2.0.88", + "tempfile", ] [[package]] @@ -5410,12 +5986,12 @@ dependencies = [ [[package]] name = "prost-derive" -version = "0.13.4" +version = "0.13.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "157c5a9d7ea5c2ed2d9fb8f495b64759f7816c7eaea54ba3978f0d63000162e3" +checksum = "8a56d757972c98b346a9b766e3f02746cde6dd1cd1d1d563472929fdd74bec4d" dependencies = [ "anyhow", - "itertools 0.12.1", + "itertools 0.13.0", "proc-macro2", "quote", "syn 2.0.88", @@ -5430,6 +6006,15 @@ dependencies = [ "prost 0.11.9", ] +[[package]] +name = "prost-types" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52c2c1bf36ddb1a1c396b3601a3cec27c2462e45f07c386894ec3ccf5332bd16" +dependencies = [ + "prost 0.13.5", +] + [[package]] name = "protobuf" version = "2.28.0" @@ -5456,7 +6041,7 @@ version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57206b407293d2bcd3af849ce869d52068623f19e1b5ff8e8778e3309439682b" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.9.3", "memchr", "unicase", ] @@ -5496,7 +6081,7 @@ dependencies = [ "rustc-hash 2.1.0", "rustls 0.23.18", "socket2", - "thiserror 2.0.6", + "thiserror 2.0.16", "tokio", "tracing", ] @@ -5515,7 +6100,7 @@ dependencies = [ "rustls 0.23.18", "rustls-pki-types", "slab", - "thiserror 2.0.6", + "thiserror 2.0.16", "tinyvec", "tracing", "web-time", @@ -5544,6 +6129,12 @@ dependencies = [ "proc-macro2", ] +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + [[package]] name = "radium" version = "0.7.0" @@ -5575,6 +6166,16 @@ dependencies = [ "serde", ] +[[package]] +name = "rand" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" +dependencies = [ + "rand_chacha 0.9.0", + "rand_core 0.9.3", +] + [[package]] name = "rand_chacha" version = "0.2.2" @@ -5595,6 +6196,16 @@ dependencies = [ "rand_core 0.6.4", ] +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core 0.9.3", +] + [[package]] name = "rand_core" version = "0.5.1" @@ -5613,6 +6224,15 @@ dependencies = [ "getrandom 0.2.15", ] +[[package]] +name = "rand_core" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" +dependencies = [ + "getrandom 0.3.3", +] + [[package]] name = "rand_hc" version = "0.2.0" @@ -5624,11 +6244,11 @@ dependencies = [ [[package]] name = "rand_xorshift" -version = "0.3.0" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d25bf25ec5ae4a3f1b92f929810509a2f53d7dca2f50b794ff57e3face536c8f" +checksum = "513962919efc330f829edb2535844d1b912b0fbe2ca165d613e4e8788bb05a5a" dependencies = [ - "rand_core 0.6.4", + "rand_core 0.9.3", ] [[package]] @@ -5672,7 +6292,7 @@ version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b6dfecf2c74bce2466cabf93f6664d6998a69eb21e39f4207930065b27b771f" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.9.3", ] [[package]] @@ -5686,6 +6306,17 @@ dependencies = [ "thiserror 1.0.69", ] +[[package]] +name = "redox_users" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac" +dependencies = [ + "getrandom 0.2.15", + "libredox", + "thiserror 2.0.16", +] + [[package]] name = "regex" version = "1.11.1" @@ -5914,6 +6545,12 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "ringbuffer" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3df6368f71f205ff9c33c076d170dd56ebf68e8161c733c0caa07a7a5509ed53" + [[package]] name = "ripemd" version = "0.1.3" @@ -5936,47 +6573,58 @@ dependencies = [ [[package]] name = "risc0-binfmt" -version = "1.2.4" +version = "3.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b077091fadca2535fcb9a433e71f08a40e3c29d6a1f89c1ef0de6645e82540b" +checksum = "1c8f97f81bcdead4101bca06469ecef481a2695cd04e7e877b49dea56a7f6f2a" dependencies = [ "anyhow", "borsh 1.5.3", + "bytemuck", + "derive_more 2.0.1", "elf", + "lazy_static", + "postcard", + "rand 0.9.2", "risc0-zkp", "risc0-zkvm-platform", + "ruint", + "semver 1.0.23", "serde", "tracing", ] [[package]] name = "risc0-build" -version = "1.2.4" +version = "3.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c68b9039b5cafa149085d978a51673d0bd00908a27ce679bbc9c6ac182546025" +checksum = "1bbb512d728e011d03ce0958ca7954624ee13a215bcafd859623b3c63b2a3f60" dependencies = [ "anyhow", - "cargo_metadata 0.18.1", - "dirs 5.0.1", + "cargo_metadata 0.19.2", + "derive_builder", + "dirs 6.0.0", "docker-generate", "hex", "risc0-binfmt", + "risc0-zkos-v1compat", "risc0-zkp", "risc0-zkvm-platform", + "rzup", + "semver 1.0.23", "serde", "serde_json", + "stability", "tempfile", ] [[package]] name = "risc0-build-kernel" -version = "1.2.4" +version = "2.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb9e4a4cb3fdc23e989c94e5ecd58f529bd8794c7e22a8d984d6fb3969f4a2aa" +checksum = "eaaa3e04c71e4244354dd9e3f8b89378cfecfbb03f9c72de4e2e7e0482b30c9a" dependencies = [ "cc", "directories", - "glob", "hex", "rayon", "sha2 0.10.8", @@ -5985,14 +6633,15 @@ dependencies = [ [[package]] name = "risc0-circuit-keccak" -version = "1.2.4" +version = "4.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0f7ed89847d21a35b0e7747bd218cd99a0ef2d91828d25861290e71a200e436" +checksum = "5f195f865ac1afdc21a172d7756fdcc21be18e13eb01d78d3d7f2b128fa881ba" dependencies = [ "anyhow", "bytemuck", "cfg-if 1.0.0", "keccak", + "liblzma", "paste", "rayon", "risc0-binfmt", @@ -6002,18 +6651,17 @@ dependencies = [ "risc0-sys", "risc0-zkp", "tracing", - "xz2", ] [[package]] name = "risc0-circuit-keccak-sys" -version = "1.2.4" +version = "4.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a129125eeb967cf8d1eb5eaa947952c950b722449527dc28dad866a2ea914291" +checksum = "30a8f21cc053fe9892acebbe0ebe2610a5d79ad638cd17f2e5122cf0b3e7cd1a" dependencies = [ "cc", "cust", - "derive_more 1.0.0", + "derive_more 2.0.1", "glob", "risc0-build-kernel", "risc0-core", @@ -6023,9 +6671,9 @@ dependencies = [ [[package]] name = "risc0-circuit-recursion" -version = "1.2.4" +version = "4.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b3aee966e28907d5153385a3875fd8a452e7bbac627624380a154caa42005e4" +checksum = "dca8f15c8abc0fd8c097aa7459879110334d191c63dd51d4c28881c4a497279e" dependencies = [ "anyhow", "bytemuck", @@ -6035,7 +6683,7 @@ dependencies = [ "hex", "lazy-regex", "metal", - "rand 0.8.5", + "rand 0.9.2", "rayon", "risc0-circuit-recursion-sys", "risc0-core", @@ -6049,9 +6697,9 @@ dependencies = [ [[package]] name = "risc0-circuit-recursion-sys" -version = "1.2.4" +version = "4.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7bcf308304e65b5c75b47aa719d893d47775b3d99f2ccc8934ae0bd2567e5106" +checksum = "f5f137bcd382520efcd982e4ee131da43f448b12ade979fe9d1fa92d4337dec0" dependencies = [ "glob", "risc0-build-kernel", @@ -6062,44 +6710,47 @@ dependencies = [ [[package]] name = "risc0-circuit-rv32im" -version = "1.2.4" +version = "4.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c1167a6a0c817d2a2643c3171359e95c299b0692eada35a1a349917b432d042" +checksum = "ae1b0689f4a270a2f247b04397ebb431b8f64fe5170e98ee4f9d71bd04825205" dependencies = [ "anyhow", - "auto_ops", + "bit-vec", "bytemuck", "byteorder", "cfg-if 1.0.0", - "crossbeam", - "crypto-bigint 0.5.5", - "cust", - "derive_more 1.0.0", + "derive_more 2.0.1", "enum-map", - "lazy-regex", - "metal", - "num-bigint 0.4.6", + "gdbstub", + "gdbstub_arch", + "malachite", "num-derive 0.4.2", "num-traits", - "rand 0.8.5", + "paste", + "postcard", + "rand 0.9.2", "rayon", + "ringbuffer", "risc0-binfmt", "risc0-circuit-rv32im-sys", "risc0-core", "risc0-sys", "risc0-zkp", - "risc0-zkvm-platform", "serde", - "sha2 0.10.8", + "smallvec", "tracing", + "wide", ] [[package]] name = "risc0-circuit-rv32im-sys" -version = "1.2.4" +version = "4.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99109aefc508b53ec85e9a1acec6d59eae8288d9ed01f436eb0c8e32191cef9e" +checksum = "cb25f3935e53e89ca020224ad0c09de96cab89a215054c0cee290405074a5166" dependencies = [ + "cc", + "cust", + "derive_more 2.0.1", "glob", "risc0-build-kernel", "risc0-core", @@ -6109,58 +6760,87 @@ dependencies = [ [[package]] name = "risc0-core" -version = "1.2.4" +version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d56db5c9390a9e51c150d406b780110acad7f0d97886406a89dcfdab1f832ad8" +checksum = "80f2723fedace48c6c5a505bd8f97ac4e1712bc4cb769083e10536d862b66987" dependencies = [ "bytemuck", "nvtx", "puffin", - "rand_core 0.6.4", + "rand_core 0.9.3", ] [[package]] name = "risc0-groth16" -version = "1.2.4" +version = "3.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0c5595a48efc6e94d303a0d4a87aedec1a0162fa696e2e1b944aba997c8f808" +checksum = "724285dc79604abfb2d40feaefe3e335420a6b293511661f77d6af62f1f5fae9" dependencies = [ "anyhow", "ark-bn254", "ark-ec", + "ark-ff 0.5.0", "ark-groth16", - "ark-serialize 0.4.2", + "ark-serialize 0.5.0", "bytemuck", + "cfg-if 1.0.0", + "circom-witnesscalc", "hex", "num-bigint 0.4.6", "num-traits", "risc0-binfmt", "risc0-core", + "risc0-groth16-sys", "risc0-zkp", + "rzup", "serde", "serde_json", - "stability", "tempfile", "tracing", + "wtns-file", +] + +[[package]] +name = "risc0-groth16-sys" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "580750e1394c5a79b691c8197906263f17a1d3aa7bb46a934362f1ba1475b1a5" +dependencies = [ + "anyhow", + "blst", + "risc0-build-kernel", + "sppark", ] [[package]] name = "risc0-sys" -version = "1.2.4" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9f09cbac16a76a3f4fdea04fcd4e36e076d94adb37f47df3732e0bb2b07e4b3" +checksum = "960c8295fbb87e1e73e332f8f7de2fba0252377575042d9d3e9a4eb50a38e078" dependencies = [ "anyhow", + "blst", "cust", "risc0-build-kernel", "sppark", ] +[[package]] +name = "risc0-zkos-v1compat" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "840c2228803557a8b7dc035a8f196516b6fd68c9dc6ac092f0c86241b5b1bafb" +dependencies = [ + "include_bytes_aligned", + "no_std_strings", + "risc0-zkvm-platform", +] + [[package]] name = "risc0-zkp" -version = "1.2.4" +version = "3.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca0b6424c1a31f0fd8f82b8c4e4b71a37033f4acac6aedee83131c5be674d1c7" +checksum = "ffb6bf356f469bb8744f72a07a37134c5812c1d55d6271bba80e87bdb7a58c8e" dependencies = [ "anyhow", "blake2", @@ -6176,40 +6856,45 @@ dependencies = [ "ndarray", "parking_lot", "paste", - "rand 0.8.5", - "rand_core 0.6.4", + "rand 0.9.2", + "rand_core 0.9.3", "rayon", "risc0-core", "risc0-sys", "risc0-zkvm-platform", "serde", "sha2 0.10.8", + "stability", "tracing", ] [[package]] name = "risc0-zkvm" -version = "1.2.4" +version = "3.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d041321ecfe340e112dcbbf1d45fe2f4655e6c53851ede39e2b38c173eac41e3" +checksum = "3fcce11648a9ff60b8e7af2f0ce7fbf8d25275ab6d414cc91b9da69ee75bc978" dependencies = [ - "addr2line 0.22.0", + "addr2line 0.24.2", "anyhow", "bincode 1.3.3", "bonsai-sdk", "borsh 1.5.3", "bytemuck", "bytes", + "derive_more 2.0.1", "elf", "enum-map", - "getrandom 0.2.15", + "gdbstub", + "gdbstub_arch", + "gimli 0.31.1", "hex", "keccak", "lazy-regex", "num-bigint 0.4.6", "num-traits", - "prost 0.13.4", - "rand 0.8.5", + "object 0.36.7", + "prost 0.13.5", + "rand 0.9.2", "rayon", "risc0-binfmt", "risc0-build", @@ -6218,10 +6903,12 @@ dependencies = [ "risc0-circuit-rv32im", "risc0-core", "risc0-groth16", + "risc0-zkos-v1compat", "risc0-zkp", "risc0-zkvm-platform", "rrs-lib", "rustc-demangle", + "rzup", "semver 1.0.23", "serde", "sha2 0.10.8", @@ -6233,14 +6920,17 @@ dependencies = [ [[package]] name = "risc0-zkvm-platform" -version = "1.2.4" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b81a773bbaae6f499c0c82a4d29a5aa205b542c47cb062b738085603e51e682" +checksum = "cfaa10feba15828c788837ddde84b994393936d8f5715228627cfe8625122a40" dependencies = [ "bytemuck", "cfg-if 1.0.0", "getrandom 0.2.15", + "getrandom 0.3.3", "libm", + "num_enum", + "paste", "stability", ] @@ -6320,21 +7010,25 @@ dependencies = [ [[package]] name = "ruint" -version = "1.12.3" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c3cc4c2511671f327125da14133d0c5c5d137f006a1017a16f557bc85b16286" +checksum = "9ecb38f82477f20c5c3d62ef52d7c4e536e38ea9b73fb570a20c5cae0e14bcf6" dependencies = [ "alloy-rlp", "ark-ff 0.3.0", "ark-ff 0.4.2", + "borsh 1.5.3", "bytes", - "fastrlp", + "fastrlp 0.3.1", + "fastrlp 0.4.0", "num-bigint 0.4.6", + "num-integer", "num-traits", "parity-scale-codec", "primitive-types", "proptest", "rand 0.8.5", + "rand 0.9.2", "rlp", "ruint-macro", "serde", @@ -6354,10 +7048,10 @@ version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "549b9d036d571d42e6e85d1c1425e2ac83491075078ca9a15be021c56b1641f2" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.9.3", "fallible-iterator 0.2.0", "fallible-streaming-iterator", - "hashlink", + "hashlink 0.8.4", "libsqlite3-sys", "smallvec", ] @@ -6419,13 +7113,26 @@ version = "0.38.41" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d7f649912bc1495e167a6edee79151c84b1bad49748cb4f1f1167f459f6224f6" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.9.3", "errno", "libc", - "linux-raw-sys", + "linux-raw-sys 0.4.14", "windows-sys 0.52.0", ] +[[package]] +name = "rustix" +version = "1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11181fbabf243db407ef8df94a6ce0b2f9a733bd8be4ad02b4eda9602296cac8" +dependencies = [ + "bitflags 2.9.3", + "errno", + "libc", + "linux-raw-sys 0.9.4", + "windows-sys 0.59.0", +] + [[package]] name = "rustls" version = "0.19.1" @@ -6570,12 +7277,10 @@ dependencies = [ [[package]] name = "ruzstd" -version = "0.6.0" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5174a470eeb535a721ae9fdd6e291c2411a906b96592182d05217591d5c5cf7b" +checksum = "fad02996bfc73da3e301efe90b1837be9ed8f4a462b6ed410aa35d00381de89f" dependencies = [ - "byteorder", - "derive_more 0.99.18", "twox-hash", ] @@ -6585,6 +7290,25 @@ version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" +[[package]] +name = "rzup" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d2aed296f203fa64bcb4b52069356dd86d6ec578593985b919b6995bee1f0ae" +dependencies = [ + "hex", + "rsa", + "semver 1.0.23", + "serde", + "serde_with 3.8.1", + "sha2 0.10.8", + "strum 0.27.2", + "tempfile", + "thiserror 2.0.16", + "toml 0.8.23", + "yaml-rust2", +] + [[package]] name = "safe-proc-macro2" version = "1.0.67" @@ -6632,6 +7356,15 @@ dependencies = [ "safe-regex-compiler", ] +[[package]] +name = "safe_arch" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96b02de82ddbe1b636e6170c21be622223aea188ef2e139be0a5b219ec215323" +dependencies = [ + "bytemuck", +] + [[package]] name = "safemem" version = "0.3.3" @@ -6803,7 +7536,7 @@ version = "2.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" dependencies = [ - "bitflags 2.6.0", + "bitflags 2.9.3", "core-foundation", "core-foundation-sys", "libc", @@ -6908,9 +7641,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.133" +version = "1.0.143" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7fceb2473b9166b2294ef05efcb65a3db80803f0b03ef86a5fc88a2b85ee377" +checksum = "d401abef1d108fbd9cbaebc3e46611f4b1021f714a0597a71f41ee463f5f4a5a" dependencies = [ "indexmap 2.6.0", "itoa", @@ -6930,6 +7663,15 @@ dependencies = [ "syn 2.0.88", ] +[[package]] +name = "serde_spanned" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" +dependencies = [ + "serde", +] + [[package]] name = "serde_urlencoded" version = "0.7.1" @@ -6953,7 +7695,25 @@ dependencies = [ "hex", "serde", "serde_json", - "serde_with_macros", + "serde_with_macros 2.3.3", + "time", +] + +[[package]] +name = "serde_with" +version = "3.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ad483d2ab0149d5a5ebcd9972a3852711e0153d863bf5a5d0391d28883c4a20" +dependencies = [ + "base64 0.22.1", + "chrono", + "hex", + "indexmap 1.9.3", + "indexmap 2.6.0", + "serde", + "serde_derive", + "serde_json", + "serde_with_macros 3.8.1", "time", ] @@ -6969,6 +7729,18 @@ dependencies = [ "syn 2.0.88", ] +[[package]] +name = "serde_with_macros" +version = "3.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65569b702f41443e8bc8bbb1c5779bd0450bbe723b56198980e80ec45780bce2" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.88", +] + [[package]] name = "serde_yaml" version = "0.9.34+deprecated" @@ -7252,6 +8024,9 @@ name = "spin" version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" +dependencies = [ + "lock_api", +] [[package]] name = "spki" @@ -7265,9 +8040,9 @@ dependencies = [ [[package]] name = "sppark" -version = "0.1.11" +version = "0.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16bf457036c0a778140ce4c3bcf9ff30c5c70a9d9c0bb04fe513af025b647b2c" +checksum = "6bdc4f02f557e3037bbe2a379cac8be6e014a67beb7bf0996b536979392f6361" dependencies = [ "cc", "which", @@ -7326,7 +8101,16 @@ version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "063e6045c0e62079840579a7e47a355ae92f60eb74daaf156fb1e84ba164e63f" dependencies = [ - "strum_macros", + "strum_macros 0.24.3", +] + +[[package]] +name = "strum" +version = "0.27.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af23d6f6c1a224baef9d3f61e287d2761385a5b88fdab4eb4c6f11aeb54c4bcf" +dependencies = [ + "strum_macros 0.27.2", ] [[package]] @@ -7342,6 +8126,18 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "strum_macros" +version = "0.27.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7695ce3845ea4b33927c055a39dc438a45b059f7c1b3d91d38d10355fb8cbca7" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 2.0.88", +] + [[package]] name = "subtle" version = "2.6.1" @@ -7470,14 +8266,14 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "tempfile" -version = "3.14.0" +version = "3.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28cce251fcbc87fac86a866eeb0d6c2d536fc16d06f184bb61aeae11aa4cee0c" +checksum = "15b61f8f20e3a6f7e0649d825294eaf317edce30f82cf6026e7e4cb9222a7d1e" dependencies = [ - "cfg-if 1.0.0", "fastrand", + "getrandom 0.3.3", "once_cell", - "rustix", + "rustix 1.0.8", "windows-sys 0.59.0", ] @@ -7496,7 +8292,7 @@ dependencies = [ "num-traits", "once_cell", "prost 0.11.9", - "prost-types", + "prost-types 0.11.9", "ripemd160", "serde", "serde_bytes", @@ -7526,7 +8322,7 @@ dependencies = [ "num-traits", "once_cell", "prost 0.11.9", - "prost-types", + "prost-types 0.11.9", "serde", "serde_bytes", "serde_json", @@ -7550,7 +8346,7 @@ dependencies = [ "serde", "serde_json", "tendermint 0.28.0", - "toml", + "toml 0.5.11", "url", ] @@ -7627,7 +8423,7 @@ dependencies = [ "num-derive 0.3.3", "num-traits", "prost 0.11.9", - "prost-types", + "prost-types 0.11.9", "serde", "serde_bytes", "subtle-encoding", @@ -7645,7 +8441,7 @@ dependencies = [ "num-derive 0.3.3", "num-traits", "prost 0.11.9", - "prost-types", + "prost-types 0.11.9", "serde", "serde_bytes", "subtle-encoding", @@ -7728,11 +8524,11 @@ dependencies = [ [[package]] name = "thiserror" -version = "2.0.6" +version = "2.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fec2a1820ebd077e2b90c4df007bebf344cd394098a13c563957d0afc83ea47" +checksum = "3467d614147380f2e4e374161426ff399c91084acd2363eaf549172b3d5e60c0" dependencies = [ - "thiserror-impl 2.0.6", + "thiserror-impl 2.0.16", ] [[package]] @@ -7748,9 +8544,9 @@ dependencies = [ [[package]] name = "thiserror-impl" -version = "2.0.6" +version = "2.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d65750cab40f4ff1929fb1ba509e9914eb756131cef4210da8d5d700d26f6312" +checksum = "6c5e1be1c48b9172ee610da68fd9cd2770e7a4056cb3fc98710ee6906f0c7960" dependencies = [ "proc-macro2", "quote", @@ -7984,23 +8780,47 @@ dependencies = [ "serde", ] +[[package]] +name = "toml" +version = "0.8.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362" +dependencies = [ + "serde", + "serde_spanned", + "toml_datetime", + "toml_edit", +] + [[package]] name = "toml_datetime" -version = "0.6.8" +version = "0.6.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41" +checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c" +dependencies = [ + "serde", +] [[package]] name = "toml_edit" -version = "0.22.22" +version = "0.22.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5" +checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a" dependencies = [ "indexmap 2.6.0", + "serde", + "serde_spanned", "toml_datetime", - "winnow", + "toml_write", + "winnow 0.7.13", ] +[[package]] +name = "toml_write" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801" + [[package]] name = "tonic" version = "0.8.3" @@ -8071,7 +8891,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0543d7092032041fbeac1f2c84304537553421a11a623c2301b12ef0264862c7" dependencies = [ "prost 0.11.9", - "prost-types", + "prost-types 0.11.9", "tokio", "tokio-stream", "tonic 0.9.2", @@ -8276,6 +9096,12 @@ dependencies = [ "static_assertions", ] +[[package]] +name = "typed-arena" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6af6ae20167a9ece4bcb41af5b80f8a1f1df981f6391189ce00fd257af04126a" + [[package]] name = "typeid" version = "1.0.2" @@ -8363,6 +9189,12 @@ version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" +[[package]] +name = "unicode-width" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a1a07cc7db3810833284e8d372ccdc6da29741639ecc70c9ec107df0fa6154c" + [[package]] name = "unicode-xid" version = "0.2.6" @@ -8513,6 +9345,15 @@ version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" +[[package]] +name = "wasi" +version = "0.14.2+wasi-0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3" +dependencies = [ + "wit-bindgen-rt", +] + [[package]] name = "wasm-bindgen" version = "0.2.95" @@ -8666,7 +9507,17 @@ dependencies = [ "either", "home", "once_cell", - "rustix", + "rustix 0.38.41", +] + +[[package]] +name = "wide" +version = "0.7.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ce5da8ecb62bcd8ec8b7ea19f69a51275e91299be594ea5cc6ef7819e16cd03" +dependencies = [ + "bytemuck", + "safe_arch", ] [[package]] @@ -8902,6 +9753,15 @@ dependencies = [ "memchr", ] +[[package]] +name = "winnow" +version = "0.7.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21a0236b59786fed61e2a80582dd500fe61f18b5dca67a4a067d0bc9039339cf" +dependencies = [ + "memchr", +] + [[package]] name = "winreg" version = "0.50.0" @@ -8912,6 +9772,15 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "wit-bindgen-rt" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1" +dependencies = [ + "bitflags 2.9.3", +] + [[package]] name = "write16" version = "1.0.0" @@ -8924,6 +9793,15 @@ version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" +[[package]] +name = "wtns-file" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d3b856452298f68a5879e3901918bac5d753ca9fa4be8a983a37a3d25dabf0a" +dependencies = [ + "byteorder", +] + [[package]] name = "wyz" version = "0.5.1" @@ -8951,12 +9829,14 @@ dependencies = [ ] [[package]] -name = "xz2" -version = "0.1.7" +name = "yaml-rust2" +version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "388c44dc09d76f1536602ead6d325eb532f5c122f17782bd57fb47baeeb767e2" +checksum = "4ce2a4ff45552406d02501cea6c18d8a7e50228e7736a872951fe2fe75c91be7" dependencies = [ - "lzma-sys", + "arraydeque", + "encoding_rs", + "hashlink 0.10.0", ] [[package]] @@ -9086,14 +9966,14 @@ dependencies = [ "flate2", "indexmap 2.6.0", "memchr", - "thiserror 2.0.6", + "thiserror 2.0.16", "zopfli", ] [[package]] name = "zkdcap-risc0" version = "0.1.0" -source = "git+https://github.com/datachainlab/zkdcap?rev=v0.0.3#v0.0.3" +source = "git+https://github.com/datachainlab/zkdcap?rev=9d6fab9b7ca5621e58958515228a616f37f89a6d#9d6fab9b7ca5621e58958515228a616f37f89a6d" dependencies = [ "risc0-binfmt", "risc0-build", diff --git a/app/Cargo.toml b/app/Cargo.toml index 6ee61ae7..52a4679c 100644 --- a/app/Cargo.toml +++ b/app/Cargo.toml @@ -27,7 +27,7 @@ crypto = { path = "../modules/crypto" } keymanager = { path = "../modules/keymanager" } remote-attestation = { path = "../modules/remote-attestation" } attestation-report = { path = "../modules/attestation-report", features = ["dcap-quote-parser"] } -zkdcap-risc0 = { git = "https://github.com/datachainlab/zkdcap", rev = "v0.0.3" } +zkdcap-risc0 = { git = "https://github.com/datachainlab/zkdcap", rev = "9d6fab9b7ca5621e58958515228a616f37f89a6d" } [build-dependencies] git2 = { version = "0.20", default-features = false } diff --git a/enclave-modules/ecall-handler/src/lib.rs b/enclave-modules/ecall-handler/src/lib.rs index 12a2328c..5db96e5b 100644 --- a/enclave-modules/ecall-handler/src/lib.rs +++ b/enclave-modules/ecall-handler/src/lib.rs @@ -1,3 +1,4 @@ +#![allow(clippy::result_large_err)] #![no_std] extern crate alloc; diff --git a/enclave-modules/runtime/src/lib.rs b/enclave-modules/runtime/src/lib.rs index 56907096..861aad24 100644 --- a/enclave-modules/runtime/src/lib.rs +++ b/enclave-modules/runtime/src/lib.rs @@ -46,7 +46,6 @@ fn begin_panic_handler(info: &core::panic::PanicInfo<'_>) -> ! { #[cfg(not(test))] #[lang = "eh_personality"] -#[no_mangle] unsafe extern "C" fn rust_eh_personality() {} static HOOK: AtomicPtr<()> = AtomicPtr::new(ptr::null_mut()); diff --git a/modules/attestation-report/Cargo.toml b/modules/attestation-report/Cargo.toml index 687d6b7f..4037cf1d 100644 --- a/modules/attestation-report/Cargo.toml +++ b/modules/attestation-report/Cargo.toml @@ -18,7 +18,7 @@ pem = { version = "2.0", default-features = false } webpki = { version = "0.22", features = ["alloc"] } anyhow = { version = "1", default-features = false } -dcap-quote-verifier = { git = "https://github.com/datachainlab/zkdcap", rev = "v0.0.3", optional = true } +dcap-quote-verifier = { git = "https://github.com/datachainlab/zkdcap", rev = "9d6fab9b7ca5621e58958515228a616f37f89a6d", optional = true } [dev-dependencies] tokio = { version = "1.0", default-features = false, features = ["macros"] } diff --git a/modules/attestation-report/src/lib.rs b/modules/attestation-report/src/lib.rs index 62547140..352fe305 100644 --- a/modules/attestation-report/src/lib.rs +++ b/modules/attestation-report/src/lib.rs @@ -1,3 +1,4 @@ +#![allow(clippy::result_large_err)] #![cfg_attr(not(feature = "std"), no_std)] extern crate alloc; diff --git a/modules/commitments/src/lib.rs b/modules/commitments/src/lib.rs index 627aa935..38bbbf08 100644 --- a/modules/commitments/src/lib.rs +++ b/modules/commitments/src/lib.rs @@ -1,3 +1,4 @@ +#![allow(clippy::result_large_err)] #![cfg_attr(not(test), no_std)] extern crate alloc; diff --git a/modules/crypto/src/lib.rs b/modules/crypto/src/lib.rs index 6c969537..484b2ced 100644 --- a/modules/crypto/src/lib.rs +++ b/modules/crypto/src/lib.rs @@ -1,3 +1,4 @@ +#![allow(clippy::result_large_err)] #![cfg_attr(not(feature = "std"), no_std)] extern crate alloc; diff --git a/modules/enclave-api/src/lib.rs b/modules/enclave-api/src/lib.rs index e8646fa3..4225408f 100644 --- a/modules/enclave-api/src/lib.rs +++ b/modules/enclave-api/src/lib.rs @@ -1,3 +1,4 @@ +#![allow(clippy::result_large_err)] pub use api::{EnclaveCommandAPI, EnclavePrimitiveAPI, EnclaveProtoAPI}; pub use enclave::{CommitStoreAccessor, Enclave, EnclaveInfo, HostStoreTxManager}; pub use errors::Error; diff --git a/modules/host-environment/src/lib.rs b/modules/host-environment/src/lib.rs index 27538e52..e376cb1e 100644 --- a/modules/host-environment/src/lib.rs +++ b/modules/host-environment/src/lib.rs @@ -15,11 +15,11 @@ impl Environment { Self { home, store } } - pub fn get_store(&self) -> RwLockReadGuard { + pub fn get_store(&self) -> RwLockReadGuard<'_, HostStore> { self.store.read().unwrap() } - pub fn get_mut_store(&self) -> RwLockWriteGuard { + pub fn get_mut_store(&self) -> RwLockWriteGuard<'_, HostStore> { self.store.write().unwrap() } } diff --git a/modules/keymanager/src/lib.rs b/modules/keymanager/src/lib.rs index 6f38c2de..6ed02066 100644 --- a/modules/keymanager/src/lib.rs +++ b/modules/keymanager/src/lib.rs @@ -1,3 +1,4 @@ +#![allow(clippy::result_large_err)] pub mod errors; pub use crate::errors::Error; use anyhow::anyhow; @@ -173,7 +174,7 @@ impl EnclaveKeyManager { .to_hex_string(), sealed_key.to_vec(), Mrenclave::from(report.body.mr_enclave).to_hex_string(), - serialize_bytes(&report), + serialize_bytes(&report).as_slice(), is_enclave_debug_enabled(&report.body), qe_type.as_u32() ])?; diff --git a/modules/lcp-client/Cargo.toml b/modules/lcp-client/Cargo.toml index dcfa7343..94232658 100644 --- a/modules/lcp-client/Cargo.toml +++ b/modules/lcp-client/Cargo.toml @@ -11,7 +11,7 @@ flex-error = { version = "0.4.4", default-features = false } tiny-keccak = { version = "2.0" } hex-literal = { version = "0.4.1" } alloy-sol-types = { version = "0.8", default-features = false } -dcap-quote-verifier = { git = "https://github.com/datachainlab/zkdcap", rev = "v0.0.3" } +dcap-quote-verifier = { git = "https://github.com/datachainlab/zkdcap", rev = "9d6fab9b7ca5621e58958515228a616f37f89a6d" } attestation-report = { path = "../attestation-report", default-features = false } remote-attestation = { path = "../remote-attestation", default-features = false } diff --git a/modules/lcp-client/src/client_def.rs b/modules/lcp-client/src/client_def.rs index c22386fd..85c876d5 100644 --- a/modules/lcp-client/src/client_def.rs +++ b/modules/lcp-client/src/client_def.rs @@ -233,6 +233,17 @@ impl LCPClient { } else { Default::default() }; + if !client_state.operators.is_empty() { + assert!( + !operator.is_zero(), + "operator must be non-zero if operators are not empty" + ); + assert!( + client_state.operators.contains(&operator), + "operator must be in the operators list" + ); + } + let expected_operator = report_data.operator(); // check if the operator matches the expected operator in the report data assert!(expected_operator.is_zero() || operator == expected_operator); diff --git a/modules/lcp-client/src/lib.rs b/modules/lcp-client/src/lib.rs index 71307da2..af5bb590 100644 --- a/modules/lcp-client/src/lib.rs +++ b/modules/lcp-client/src/lib.rs @@ -1,4 +1,5 @@ #![allow(unused_variables)] +#![allow(clippy::result_large_err)] #![cfg_attr(not(feature = "std"), no_std)] extern crate alloc; diff --git a/modules/light-client/src/lib.rs b/modules/light-client/src/lib.rs index aca593a2..44c36ad3 100644 --- a/modules/light-client/src/lib.rs +++ b/modules/light-client/src/lib.rs @@ -1,8 +1,8 @@ #![no_std] +#![allow(clippy::result_large_err)] +#![allow(unused_imports)] extern crate alloc; -#[allow(unused_imports)] - mod prelude { pub use core::prelude::v1::*; diff --git a/modules/mock-lc/src/lib.rs b/modules/mock-lc/src/lib.rs index 76fb59ac..d2a4493e 100644 --- a/modules/mock-lc/src/lib.rs +++ b/modules/mock-lc/src/lib.rs @@ -1,3 +1,4 @@ +#![allow(clippy::result_large_err)] #![no_std] extern crate alloc; diff --git a/modules/remote-attestation/Cargo.toml b/modules/remote-attestation/Cargo.toml index 8ea72d43..579609cc 100644 --- a/modules/remote-attestation/Cargo.toml +++ b/modules/remote-attestation/Cargo.toml @@ -27,9 +27,9 @@ serde_json = { version = "1.0", features = ["preserve_order"] } rsa = { version = "0.9.2", features = ["pem"], optional = true } chrono = { version = "0.4.38", features = ["now"], optional = true } -dcap-quote-verifier = { git = "https://github.com/datachainlab/zkdcap", rev = "v0.0.3" } -dcap-pcs = { git = "https://github.com/datachainlab/zkdcap", rev = "v0.0.3" } -dcap-collaterals = { git = "https://github.com/datachainlab/zkdcap", rev = "v0.0.3" } +dcap-quote-verifier = { git = "https://github.com/datachainlab/zkdcap", rev = "9d6fab9b7ca5621e58958515228a616f37f89a6d" } +dcap-pcs = { git = "https://github.com/datachainlab/zkdcap", rev = "9d6fab9b7ca5621e58958515228a616f37f89a6d" } +dcap-collaterals = { git = "https://github.com/datachainlab/zkdcap", rev = "9d6fab9b7ca5621e58958515228a616f37f89a6d" } lcp-types = { path = "../types" } crypto = { path = "../crypto", default-features = false } diff --git a/modules/remote-attestation/src/lib.rs b/modules/remote-attestation/src/lib.rs index 3e206eb9..2c406fed 100644 --- a/modules/remote-attestation/src/lib.rs +++ b/modules/remote-attestation/src/lib.rs @@ -1,4 +1,5 @@ -#[allow(clippy::doc_lazy_continuation)] +#![allow(clippy::doc_lazy_continuation)] +#![allow(clippy::result_large_err)] pub mod common; pub mod dcap; pub mod dcap_simulation; diff --git a/modules/tendermint-lc/src/lib.rs b/modules/tendermint-lc/src/lib.rs index 4e176a22..dc495801 100644 --- a/modules/tendermint-lc/src/lib.rs +++ b/modules/tendermint-lc/src/lib.rs @@ -1,4 +1,5 @@ #![allow(clippy::large_enum_variant)] +#![allow(clippy::result_large_err)] #![no_std] extern crate alloc; diff --git a/modules/types/src/transmuter.rs b/modules/types/src/transmuter.rs index 000adddc..17012d62 100644 --- a/modules/types/src/transmuter.rs +++ b/modules/types/src/transmuter.rs @@ -1,5 +1,6 @@ use crate::prelude::*; use alloc::string::ToString; +use alloc::vec::Vec; use core::marker::PhantomData; use serde::Deserialize; use serde_with::{DeserializeAs, SerializeAs}; @@ -9,7 +10,6 @@ pub struct BytesTransmuter(PhantomData); impl SerializeAs for BytesTransmuter where - [(); core::mem::size_of::()]:, T: ContiguousMemory, { fn serialize_as(source: &T, serializer: S) -> Result @@ -22,7 +22,6 @@ where impl<'de, T> DeserializeAs<'de, T> for BytesTransmuter where - [(); core::mem::size_of::()]:, T: ContiguousMemory, { fn deserialize_as(deserializer: D) -> Result @@ -36,24 +35,28 @@ where } } -pub fn serialize_bytes(source: &T) -> [u8; core::mem::size_of::()] +pub fn serialize_bytes(source: &T) -> Vec where - [(); core::mem::size_of::()]:, T: ContiguousMemory, { - unsafe { core::mem::transmute_copy::<_, [u8; core::mem::size_of::()]>(source) } + let size = core::mem::size_of::(); + let ptr = source as *const T as *const u8; + let slice = unsafe { core::slice::from_raw_parts(ptr, size) }; + slice.to_vec() } pub fn deserialize_bytes(bz: &[u8]) -> Result where - [(); core::mem::size_of::()]:, T: ContiguousMemory, { - let mut array = [0; core::mem::size_of::()]; - if bz.len() == array.len() { - array.copy_from_slice(bz); - Ok(unsafe { core::mem::transmute_copy(&array) }) + let expected_size = core::mem::size_of::(); + if bz.len() == expected_size { + let mut value = core::mem::MaybeUninit::::uninit(); + let ptr = value.as_mut_ptr() as *mut u8; + let slice = unsafe { core::slice::from_raw_parts_mut(ptr, expected_size) }; + slice.copy_from_slice(bz); + Ok(unsafe { value.assume_init() }) } else { - Err((bz.len(), array.len())) + Err((bz.len(), expected_size)) } } diff --git a/modules/zkvm/Cargo.toml b/modules/zkvm/Cargo.toml index 89a3dc2d..994f14c5 100644 --- a/modules/zkvm/Cargo.toml +++ b/modules/zkvm/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] -risc0-zkvm = { version = "1.2.4", default-features = false } +risc0-zkvm = { version = "3.0.3", default-features = false } flex-error = { version = "0.4.4", default-features = false } [features] diff --git a/proto/src/lib.rs b/proto/src/lib.rs index 835ee085..a5305dd9 100644 --- a/proto/src/lib.rs +++ b/proto/src/lib.rs @@ -6,6 +6,7 @@ #![cfg_attr(not(feature = "std"), no_std)] #![deny(warnings, trivial_casts, trivial_numeric_casts, unused_import_braces)] #![allow(clippy::large_enum_variant)] +#![allow(clippy::doc_overindented_list_items)] #![allow(rustdoc::bare_urls)] #![forbid(unsafe_code)] diff --git a/rust-toolchain b/rust-toolchain index 75a4f2e3..82f9c444 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -nightly-2024-09-05 +nightly-2025-08-25 diff --git a/tests/integration/Cargo.toml b/tests/integration/Cargo.toml index 081ef2dd..b78fb463 100644 --- a/tests/integration/Cargo.toml +++ b/tests/integration/Cargo.toml @@ -35,7 +35,7 @@ attestation-report = { path = "../../modules/attestation-report" } keymanager = { path = "../../modules/keymanager" } remote-attestation = { path = "../../modules/remote-attestation" } -zkdcap-risc0 = { git = "https://github.com/datachainlab/zkdcap", rev = "v0.0.3" } +zkdcap-risc0 = { git = "https://github.com/datachainlab/zkdcap", rev = "9d6fab9b7ca5621e58958515228a616f37f89a6d" } [features] default = [] diff --git a/tests/integration/src/types.rs b/tests/integration/src/types.rs index fb2e5639..41966e18 100644 --- a/tests/integration/src/types.rs +++ b/tests/integration/src/types.rs @@ -25,17 +25,17 @@ use lcp_proto::{google::protobuf::Any as ProtoAny, protobuf::Protobuf}; use lcp_types::Any; use std::str::FromStr; -/// WARNING: The following converters are very inefficient, so they should not be used except for testing purpose. -/// ibc-relayer(hermes) has owned ibc crate, not cosmos/ibc-rs. Therefore, the following converters are required for now. +// WARNING: The following converters are very inefficient, so they should not be used except for testing purpose. +// ibc-relayer(hermes) has owned ibc crate, not cosmos/ibc-rs. Therefore, the following converters are required for now. -/// relayer-types to lcp types +// relayer-types to lcp types pub(crate) fn relayer_header_to_any(value: RHeader) -> Any { let any = IBCRelayerAny::from(value); Any::new(any.type_url, any.value) } -/// relayer-types to ibc +// relayer-types to ibc pub(crate) fn to_ibc_channel(value: RChannelEnd) -> ChannelEnd { ChannelEnd::decode_vec(&value.encode_vec().unwrap()).unwrap() @@ -63,7 +63,7 @@ pub(crate) fn to_ibc_consensus_state(value: RTendermintConsensusState) -> Tender .unwrap() } -/// ibc to relayer-types +// ibc to relayer-types pub(crate) fn to_relayer_chain_id(value: ChainId) -> RChainId { RChainId::from_str(value.as_str()).unwrap() diff --git a/tools/nodes-runner/src/bin/test_setup_with_binary_channel.rs b/tools/nodes-runner/src/bin/test_setup_with_binary_channel.rs index 502fe215..84d325b3 100644 --- a/tools/nodes-runner/src/bin/test_setup_with_binary_channel.rs +++ b/tools/nodes-runner/src/bin/test_setup_with_binary_channel.rs @@ -25,6 +25,7 @@ -k $NODE_A_WALLETS_USER1_KEY_ID -d $NODE_A_DENOM ``` */ +#![allow(clippy::result_large_err)] use ibc_relayer::keyring::Store; use ibc_test_framework::prelude::*;