diff --git a/.github/workflows/ci-all.yml b/.github/workflows/ci-all.yml index 0a1130276..9647f4441 100644 --- a/.github/workflows/ci-all.yml +++ b/.github/workflows/ci-all.yml @@ -26,20 +26,25 @@ concurrency: jobs: build-test-native: + if: github.event.pull_request.draft == false uses: ./.github/workflows/ci-native.yml build-test-risc0: + if: github.event.pull_request.draft == false uses: ./.github/workflows/ci-risc0.yml build-test-sp1: + if: github.event.pull_request.draft == false uses: ./.github/workflows/ci-sp1.yml build-test-sgx-all: + if: github.event.pull_request.draft == false uses: ./.github/workflows/ci-sgx-all.yml test-lib: name: Test raiko-lib runs-on: [taiko-runner] + if: github.event.pull_request.draft == false timeout-minutes: 60 steps: diff --git a/.github/workflows/ci-build-test-reusable.yml b/.github/workflows/ci-build-test-reusable.yml index be98f592b..187ed0817 100644 --- a/.github/workflows/ci-build-test-reusable.yml +++ b/.github/workflows/ci-build-test-reusable.yml @@ -19,6 +19,7 @@ jobs: build-test: name: Build and test runs-on: [taiko-runner] + if: github.event.pull_request.draft == false timeout-minutes: 120 env: diff --git a/.github/workflows/ci-lint.yml b/.github/workflows/ci-lint.yml index c42d8363e..23be3fd43 100644 --- a/.github/workflows/ci-lint.yml +++ b/.github/workflows/ci-lint.yml @@ -13,6 +13,7 @@ jobs: clippy: name: clippy runs-on: [taiko-runner] + if: github.event.pull_request.draft == false timeout-minutes: 30 steps: @@ -27,6 +28,7 @@ jobs: fmt: name: fmt runs-on: [taiko-runner] + if: github.event.pull_request.draft == false timeout-minutes: 10 steps: diff --git a/.github/workflows/ci-sgx-docker.yml b/.github/workflows/ci-sgx-docker.yml index 15335598f..5b9042feb 100644 --- a/.github/workflows/ci-sgx-docker.yml +++ b/.github/workflows/ci-sgx-docker.yml @@ -15,6 +15,7 @@ jobs: build-test-sgx-with-docker: name: Build and test sgx with Docker runs-on: [taiko-runner] + if: github.event.pull_request.draft == false timeout-minutes: 60 steps: diff --git a/.github/workflows/ci-sgx-hardware.yml b/.github/workflows/ci-sgx-hardware.yml index 6efa67ae8..2c0134718 100644 --- a/.github/workflows/ci-sgx-hardware.yml +++ b/.github/workflows/ci-sgx-hardware.yml @@ -6,6 +6,7 @@ jobs: build-test-sgx-hardware: name: Build and test sgx in hardware runs-on: [self-hosted, sgx, linux] + if: github.event.pull_request.draft == false timeout-minutes: 120 env: TARGET: sgx diff --git a/.github/workflows/openapi-deploy.yml b/.github/workflows/openapi-deploy.yml index 2e01cea6e..a6714b514 100644 --- a/.github/workflows/openapi-deploy.yml +++ b/.github/workflows/openapi-deploy.yml @@ -21,6 +21,7 @@ jobs: deploy-docs: name: Generate OpenAPI docs runs-on: [taiko-runner] + if: github.event.pull_request.draft == false environment: name: ${{ (github.ref == 'refs/heads/main') && 'github-pages' || 'test-environment' }} url: ${{ steps.deployment.outputs.page_url }} diff --git a/.github/workflows/typo-check.yml b/.github/workflows/typo-check.yml index 032c3b994..fc48e6bd4 100644 --- a/.github/workflows/typo-check.yml +++ b/.github/workflows/typo-check.yml @@ -5,6 +5,7 @@ on: [pull_request] jobs: check-for-typos: runs-on: [taiko-runner] + if: github.event.pull_request.draft == false steps: - name: Checkout the repository uses: actions/checkout@v4 diff --git a/Cargo.lock b/Cargo.lock index a8c66e950..8b9b7ba7e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -31,18 +31,27 @@ checksum = "6e4503c46a5c0c7844e948c9a4d6acd9f50cccb4de1c48eb9e291ea17470c678" dependencies = [ "cpp_demangle", "fallible-iterator", - "gimli", - "memmap2 0.9.4", + "gimli 0.29.0", + "memmap2 0.9.5", "object 0.35.0", "rustc-demangle", "smallvec", ] [[package]] -name = "adler" -version = "1.0.2" +name = "addr2line" +version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" +checksum = "f5fb1d8e4442bd405fdfd1dacb42792696b0cf9cb15882e5d097b742a676d375" +dependencies = [ + "gimli 0.31.0", +] + +[[package]] +name = "adler2" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" [[package]] name = "adler32" @@ -107,7 +116,7 @@ dependencies = [ "getrandom 0.2.15", "once_cell", "version_check", - "zerocopy 0.7.35", + "zerocopy", ] [[package]] @@ -142,12 +151,12 @@ checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f" [[package]] name = "alloy-chains" -version = "0.1.23" +version = "0.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1752d7d62e2665da650a36d84abbf239f812534475d51f072a49a533513b7cdd" +checksum = "b68b94c159bcc2ca5f758b8663d7b00fc7c5e40569984595ddf2221b0f7f7f6e" dependencies = [ "alloy-rlp", - "num_enum 0.7.2", + "num_enum 0.7.3", "serde", "strum 0.26.3", ] @@ -162,7 +171,7 @@ dependencies = [ "alloy-primitives", "alloy-rlp", "alloy-serde", - "c-kzg 1.0.2", + "c-kzg 1.0.3", "serde", ] @@ -199,7 +208,7 @@ dependencies = [ "itoa", "serde", "serde_json", - "winnow 0.6.15", + "winnow 0.6.18", ] [[package]] @@ -211,7 +220,7 @@ dependencies = [ "alloy-primitives", "alloy-rlp", "alloy-serde", - "c-kzg 1.0.2", + "c-kzg 1.0.3", "derive_more", "once_cell", "serde", @@ -321,7 +330,7 @@ dependencies = [ "futures-utils-wasm", "lru", "pin-project", - "reqwest 0.12.5", + "reqwest 0.12.7", "serde", "serde_json", "tokio", @@ -331,9 +340,9 @@ dependencies = [ [[package]] name = "alloy-rlp" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a43b18702501396fa9bcdeecd533bc85fac75150d308fc0f6800a01e6234a003" +checksum = "26154390b1d205a4a7ac7352aa2eb4f81f391399d4e2f546fb81a2f8bb383f62" dependencies = [ "alloy-rlp-derive", "arrayvec", @@ -342,13 +351,13 @@ dependencies = [ [[package]] name = "alloy-rlp-derive" -version = "0.3.7" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d83524c1f6162fcb5b0decf775498a125066c86dda6066ed609531b0e912f85a" +checksum = "4d0f2d905ebd295e7effec65e5f6868d153936130ae718352771de3e7d03c75c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -362,7 +371,7 @@ dependencies = [ "alloy-transport-http", "futures", "pin-project", - "reqwest 0.12.5", + "reqwest 0.12.7", "serde", "serde_json", "tokio", @@ -535,7 +544,7 @@ dependencies = [ "proc-macro-error", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -547,11 +556,11 @@ dependencies = [ "alloy-sol-macro-input", "const-hex", "heck 0.5.0", - "indexmap 2.2.6", + "indexmap 2.5.0", "proc-macro-error", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", "syn-solidity", "tiny-keccak", ] @@ -567,7 +576,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", "syn-solidity", ] @@ -578,7 +587,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cbcba3ca07cf7975f15d871b721fb18031eec8bce51103907f6dcce00b255d98" dependencies = [ "serde", - "winnow 0.6.15", + "winnow 0.6.18", ] [[package]] @@ -620,7 +629,7 @@ checksum = "86d65871f9f1cafe1ed25cde2f1303be83e6473e995a2d56c275ae4fcce6119c" dependencies = [ "alloy-json-rpc", "alloy-transport", - "reqwest 0.12.5", + "reqwest 0.12.7", "serde_json", "tower", "tracing", @@ -669,9 +678,9 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.14" +version = "0.6.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418c75fa768af9c03be99d17643f93f79bbba589895012a80e3452a19ddda15b" +checksum = "64e15c1ab1f89faffbf04a634d5e1962e9074f2741eef6d97f3c4e322426d526" dependencies = [ "anstyle", "anstyle-parse", @@ -684,33 +693,33 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.7" +version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "038dfcf04a5feb68e9c60b21c9625a54c2c0616e79b72b0fd87075a056ae1d1b" +checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1" [[package]] name = "anstyle-parse" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c03a11a9034d92058ceb6ee011ce58af4a9bf61491aa7e1e59ecd24bd40d22d4" +checksum = "eb47de1e80c2b463c735db5b217a0ddc39d612e7ac9e2e96a5aed1f57616c1cb" dependencies = [ "utf8parse", ] [[package]] name = "anstyle-query" -version = "1.1.0" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad186efb764318d35165f1758e7dcef3b10628e26d41a44bc5550652e6804391" +checksum = "6d36fc52c7f6c869915e99412912f22093507da8d9e942ceaf66fe4b7c14422a" dependencies = [ "windows-sys 0.52.0", ] [[package]] name = "anstyle-wincon" -version = "3.0.3" +version = "3.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61a38449feb7068f52bb06c12759005cf459ee52bb4adc1d5a7c4322d716fb19" +checksum = "5bf74e1b6e971609db8ca7a9ce79fd5768ab6ae46441c572e46cf596f59e57f8" dependencies = [ "anstyle", "windows-sys 0.52.0", @@ -718,9 +727,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.86" +version = "1.0.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" +checksum = "86fdf8605db99b54d3cd748a44c6d04df638eb5dafb219b135d0149bd0db01f6" [[package]] name = "approx" @@ -820,7 +829,7 @@ dependencies = [ "num-bigint 0.4.6", "num-traits", "paste", - "rustc_version 0.4.0", + "rustc_version 0.4.1", "zeroize", ] @@ -976,25 +985,26 @@ dependencies = [ [[package]] name = "arrayref" -version = "0.3.8" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d151e35f61089500b617991b791fc8bfd237ae50cd5950803758a179b41e67a" +checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" [[package]] name = "arrayvec" -version = "0.7.4" +version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" [[package]] name = "assert_cmd" -version = "2.0.14" +version = "2.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed72493ac66d5804837f480ab3766c72bdfab91a65e565fc54fa9e42db0073a8" +checksum = "dc1835b7f27878de8525dc71410b5a31cdcc5f230aed5ba5df968e09c201b23d" dependencies = [ "anstyle", "bstr", "doc-comment", + "libc", "predicates", "predicates-core", "predicates-tree", @@ -1036,18 +1046,18 @@ checksum = "16e62a023e7c117e27523144c5d2459f4397fcc3cab0085af8e2224f643a0193" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] name = "async-trait" -version = "0.1.81" +version = "0.1.82" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e0c28dcc82d7c8ead5cb13beb15405b57b8546e93215673ff8ca0349a028107" +checksum = "a27b8a3a6e1a44fa4c8baf1f653e4172e81486d4941f2237e20dc2d0cf4ddff1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -1058,7 +1068,7 @@ checksum = "b6d7b9decdf35d8908a7e3ef02f64c5e9b1695e230154c0e8de3969142d9b94c" dependencies = [ "futures", "pharos", - "rustc_version 0.4.0", + "rustc_version 0.4.1", ] [[package]] @@ -1096,7 +1106,7 @@ checksum = "3c87f3f15e7794432337fc718554eaa4dc8f04c9677a950ffe366f20a162ae42" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -1105,11 +1115,25 @@ version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" +[[package]] +name = "aws-nitro-enclaves-nsm-api" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d92c1f4471b33f6a7af9ea421b249ed18a11c71156564baf6293148fa6ad1b09" +dependencies = [ + "libc", + "log", + "nix 0.26.4", + "serde", + "serde_bytes", + "serde_cbor", +] + [[package]] name = "axum" -version = "0.7.4" +version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1236b4b292f6c4d6dc34604bb5120d85c3fe1d1aa596bd5cc52ca054d13e7b9e" +checksum = "3a6c9af12842a67734c9a2e355436e5d03b22383ed60cf13cd0c18fbfe3dcbcf" dependencies = [ "async-trait", "axum-core", @@ -1132,7 +1156,7 @@ dependencies = [ "serde_json", "serde_path_to_error", "serde_urlencoded", - "sync_wrapper 0.1.2", + "sync_wrapper 1.0.1", "tokio", "tower", "tower-layer", @@ -1170,23 +1194,23 @@ dependencies = [ "heck 0.4.1", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] name = "backtrace" -version = "0.3.73" +version = "0.3.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cc23269a4f8976d0a4d2e7109211a419fe30e8d88d677cd60b6bc79c5732e0a" +checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a" dependencies = [ - "addr2line", - "cc", + "addr2line 0.24.1", "cfg-if", "libc", "miniz_oxide", - "object 0.36.1", + "object 0.36.4", "rustc-demangle", "serde", + "windows-targets 0.52.6", ] [[package]] @@ -1270,9 +1294,9 @@ dependencies = [ "proc-macro2", "quote", "regex", - "rustc-hash", + "rustc-hash 1.1.0", "shlex", - "syn 2.0.72", + "syn 2.0.77", "which 4.4.2", ] @@ -1356,9 +1380,9 @@ dependencies = [ [[package]] name = "blake3" -version = "1.5.3" +version = "1.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9ec96fe9a81b5e365f9db71fe00edc4fe4ca2cc7dcb7861f0603012a7caa210" +checksum = "d82033247fd8e890df8f740e407ad4d038debb9eb1f40533fffb32e7d17dc6f7" dependencies = [ "arrayref", "arrayvec", @@ -1436,7 +1460,7 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a7781292e9bcc1f54de6839dbab88b4032d2a20ab1d4fb3d8f045e9cecf5486e" dependencies = [ - "reqwest 0.12.5", + "reqwest 0.12.7", "risc0-groth16", "serde", "thiserror", @@ -1451,7 +1475,7 @@ checksum = "b1553c9f015eb3fc4ff1bf2e142fceeb2256768a3c4d94a9486784a6c656484d" dependencies = [ "duplicate", "maybe-async", - "reqwest 0.12.5", + "reqwest 0.12.7", "risc0-groth16", "serde", "thiserror", @@ -1490,9 +1514,9 @@ dependencies = [ [[package]] name = "bstr" -version = "1.9.1" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05efc5cfd9110c8416e471df0e96702d58690178e206e61b7173706673c93706" +checksum = "40723b8fb387abc38f4f4a37c09073622e41dd12327033091ef8950659e6dc0c" dependencies = [ "memchr", "regex-automata 0.4.7", @@ -1513,22 +1537,22 @@ checksum = "c3ac9f8b63eca6fd385229b3675f6cc0dc5c8a5c8a54a59d4f52ffd670d87b0c" [[package]] name = "bytemuck" -version = "1.17.1" +version = "1.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "773d90827bc3feecfb67fab12e24de0749aad83c74b9504ecde46237b5cd24e2" +checksum = "94bbb0ad554ad961ddc5da507a12a29b14e4ae5bda06b19f575a3e6079d2e2ae" dependencies = [ "bytemuck_derive", ] [[package]] name = "bytemuck_derive" -version = "1.7.0" +version = "1.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ee891b04274a59bd38b412188e24b849617b2e45a0fd8d057deb63e7403761b" +checksum = "0cc8b54b395f2fcfbb3d90c47b01c7f444d94d05bdeb775811dec868ac3bbc26" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -1539,9 +1563,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.6.1" +version = "1.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a12916984aab3fa6e39d655a33e09c0071eb36d6ab3aea5c2d78551f1df6d952" +checksum = "428d9aa8fbc0670b7b8d6030a7fadd0f86151cae55e4dbbece15f3780a3dfaf3" dependencies = [ "serde", ] @@ -1561,23 +1585,24 @@ dependencies = [ [[package]] name = "c-kzg" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdf100c4cea8f207e883ff91ca886d621d8a166cb04971dfaa9bb8fd99ed95df" +checksum = "f0307f72feab3300336fb803a57134159f6e20139af1357f36c54cb90d8e8928" dependencies = [ "blst", "cc", "glob", "hex", "libc", + "once_cell", "serde", ] [[package]] name = "camino" -version = "1.1.7" +version = "1.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0ec6b951b160caa93cc0c7b209e5a3bff7aae9062213451ac99493cd844c239" +checksum = "8b96ec4966b5813e2c0507c1f86115c8c5abaadc3980879c3424042a02fd1ad3" dependencies = [ "serde", ] @@ -1626,12 +1651,13 @@ dependencies = [ [[package]] name = "cc" -version = "1.1.6" +version = "1.1.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2aba8f4e9906c7ce3c73463f62a7f0c65183ada1a2d47e397cc8810827f9694f" +checksum = "07b1695e2c7e8fc85310cde85aeaab7e3097f593c91d209d3f9df76c928100f0" dependencies = [ "jobserver", "libc", + "shlex", ] [[package]] @@ -1649,6 +1675,12 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "cfg_aliases" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + [[package]] name = "chrono" version = "0.4.38" @@ -1711,9 +1743,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.9" +version = "4.5.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64acc1846d54c1fe936a78dc189c34e28d3f5afc348403f28ecf53660b9b8462" +checksum = "3e5a21b8495e732f1b3c364c9949b201ca7bae518c502c80256c96ad79eaf6ac" dependencies = [ "clap_builder", "clap_derive", @@ -1721,9 +1753,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.9" +version = "4.5.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6fb8393d67ba2e7bfaf28a23458e4e2b543cc73a99595511eb207fdb8aede942" +checksum = "8cf2dd12af7a047ad9d6da2b6b249759a22a7abc0f474c1dae1777afa4b21a73" dependencies = [ "anstream", "anstyle", @@ -1733,21 +1765,21 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.5.8" +version = "4.5.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bac35c6dafb060fd4d275d9a4ffae97917c13a6327903a8be2153cd964f7085" +checksum = "501d359d5f3dcaf6ecdeee48833ae73ec6e42723a1e52419c79abf9507eec0a0" dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] name = "clap_lex" -version = "0.7.1" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b82cf0babdbd58558212896d1a4272303a57bdb245c2bf1147185fb45640e70" +checksum = "1462739cb27611015575c0c11df5df7601141071f07518d56fcc1be504cbec97" [[package]] name = "cobs" @@ -1809,9 +1841,9 @@ dependencies = [ [[package]] name = "colorchoice" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b6a852b24ab71dffc585bcb46eaf7959d175cb865a7152e35b348d1b2960422" +checksum = "d3fd119d74b830634cea2a0f58bbd0d54540518a14397557951e79340abc28c0" [[package]] name = "concat-kdf" @@ -1856,9 +1888,9 @@ checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" [[package]] name = "constant_time_eq" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2" +checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6" [[package]] name = "convert_case" @@ -1887,9 +1919,9 @@ dependencies = [ [[package]] name = "core-foundation-sys" -version = "0.8.6" +version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" [[package]] name = "core-graphics-types" @@ -1913,18 +1945,18 @@ dependencies = [ [[package]] name = "cpp_demangle" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e8227005286ec39567949b33df9896bcadfa6051bccca2488129f108ca23119" +checksum = "96e58d342ad113c2b878f16d5d034c03be492ae460cdbc02b7f0f2284d310c7d" dependencies = [ "cfg-if", ] [[package]] name = "cpufeatures" -version = "0.2.12" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504" +checksum = "608697df725056feaccfa42cffdaeeec3fccc4ffc38358ecd19b243e716a78e0" dependencies = [ "libc", ] @@ -2089,7 +2121,7 @@ dependencies = [ "curve25519-dalek-derive", "digest 0.10.7", "fiat-crypto", - "rustc_version 0.4.0", + "rustc_version 0.4.1", "subtle", "zeroize", ] @@ -2102,7 +2134,7 @@ checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -2172,7 +2204,7 @@ dependencies = [ "proc-macro2", "quote", "strsim 0.11.1", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -2183,7 +2215,7 @@ checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" dependencies = [ "darling_core", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -2349,7 +2381,7 @@ checksum = "67e77553c4162a157adbf834ebae5b415acbecbeafc7a74b0e886657506a7611" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -2361,8 +2393,8 @@ dependencies = [ "convert_case 0.4.0", "proc-macro2", "quote", - "rustc_version 0.4.0", - "syn 2.0.72", + "rustc_version 0.4.1", + "syn 2.0.77", ] [[package]] @@ -2460,7 +2492,7 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -2497,9 +2529,9 @@ dependencies = [ [[package]] name = "dunce" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56ce8c6da7551ec6c462cbaf3bfbc75131ebbfa1c944aeaa9dab51ca1c5f0c3b" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" [[package]] name = "duplicate" @@ -2599,6 +2631,12 @@ 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 = "encode_unicode" version = "0.3.6" @@ -2688,25 +2726,25 @@ checksum = "f282cfdfe92516eb26c2af8589c274c7c17681f5ecc03c18255fe741c6aa64eb" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] name = "enumn" -version = "0.1.13" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6fd000fd6988e73bbe993ea3db9b1aa64906ab88766d654973924340c8cddb42" +checksum = "2f9ed6b3789237c8a0c1c505af1c7eb2c560df6186f01b098c3a1064ea532f38" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] name = "env_filter" -version = "0.1.0" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a009aa4810eb158359dda09d0c87378e4bbb89b5a801f016885a4707ba24f7ea" +checksum = "4f2c92ceda6ceec50f43169f9ee8424fe2db276791afde7b2cd8bc084cb376ab" dependencies = [ "log", "regex", @@ -2714,9 +2752,9 @@ dependencies = [ [[package]] name = "env_logger" -version = "0.11.3" +version = "0.11.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38b35839ba51819680ba087cd351788c9a3c476841207e0b8cee0b04722343b9" +checksum = "e13fa619b91fb2381732789fc5de83b45675e882f66623b7d8cb4f643017018d" dependencies = [ "anstream", "anstyle", @@ -2900,7 +2938,7 @@ dependencies = [ "regex", "serde", "serde_json", - "syn 2.0.72", + "syn 2.0.77", "toml 0.7.8", "walkdir", ] @@ -2922,8 +2960,8 @@ dependencies = [ "regex", "serde", "serde_json", - "syn 2.0.72", - "toml 0.8.15", + "syn 2.0.77", + "toml 0.8.19", "walkdir", ] @@ -2939,7 +2977,7 @@ dependencies = [ "proc-macro2", "quote", "serde_json", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -2955,7 +2993,7 @@ dependencies = [ "proc-macro2", "quote", "serde_json", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -2972,7 +3010,7 @@ dependencies = [ "ethabi", "generic-array 0.14.7", "k256", - "num_enum 0.7.2", + "num_enum 0.7.3", "once_cell", "open-fastrlp", "rand 0.8.5", @@ -2980,7 +3018,7 @@ dependencies = [ "serde", "serde_json", "strum 0.25.0", - "syn 2.0.72", + "syn 2.0.77", "tempfile", "thiserror", "tiny-keccak", @@ -3002,7 +3040,7 @@ dependencies = [ "ethabi", "generic-array 0.14.7", "k256", - "num_enum 0.7.2", + "num_enum 0.7.3", "once_cell", "open-fastrlp", "rand 0.8.5", @@ -3010,7 +3048,7 @@ dependencies = [ "serde", "serde_json", "strum 0.26.3", - "syn 2.0.72", + "syn 2.0.77", "tempfile", "thiserror", "tiny-keccak", @@ -3159,9 +3197,9 @@ checksum = "7360491ce676a36bf9bb3c56c1aa791658183a54d2744120f27285738d90465a" [[package]] name = "fastrand" -version = "2.1.0" +version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" +checksum = "e8c02a5121d4ea3eb16a80748c74f5549a5665e4c21333c6098f283870fbdea6" [[package]] name = "fastrlp" @@ -3243,9 +3281,9 @@ dependencies = [ [[package]] name = "flate2" -version = "1.0.30" +version = "1.0.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f54427cfd1c7829e2a139fcefea601bf088ebca651d2bf53ebc600eac295dae" +checksum = "324a1be68054ef05ad64b861cc9eaf1d623d2d8cb25b4bf2cb9cdd902b4bf253" dependencies = [ "crc32fast", "miniz_oxide", @@ -3284,7 +3322,7 @@ checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -3380,7 +3418,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -3509,6 +3547,12 @@ dependencies = [ "stable_deref_trait", ] +[[package]] +name = "gimli" +version = "0.31.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32085ea23f3234fc7846555e85283ba4de91e21016dc0455a16286d87a292d64" + [[package]] name = "git2" version = "0.19.0" @@ -3584,7 +3628,7 @@ dependencies = [ "futures-sink", "futures-util", "http 0.2.12", - "indexmap 2.2.6", + "indexmap 2.5.0", "slab", "tokio", "tokio-util", @@ -3593,9 +3637,9 @@ dependencies = [ [[package]] name = "h2" -version = "0.4.5" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa82e28a107a8cc405f0839610bdc9b15f1e25ec7d696aa5cf173edbcb1486ab" +checksum = "524e8ac6999421f49a846c2d4411f337e53497d8ec55d67753beffa43c5d9205" dependencies = [ "atomic-waker", "bytes", @@ -3603,13 +3647,19 @@ dependencies = [ "futures-core", "futures-sink", "http 1.1.0", - "indexmap 2.2.6", + "indexmap 2.5.0", "slab", "tokio", "tokio-util", "tracing", ] +[[package]] +name = "half" +version = "1.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b43ede17f21864e81be2fa654110bf1e793774238d86ef8555c37e6519c0403" + [[package]] name = "halo2" version = "0.1.0-beta.2" @@ -3639,7 +3689,7 @@ version = "0.1.0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -3649,7 +3699,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -3906,7 +3956,7 @@ dependencies = [ "bytes", "futures-channel", "futures-util", - "h2 0.4.5", + "h2 0.4.6", "http 1.1.0", "http-body 1.0.1", "httparse", @@ -3934,20 +3984,20 @@ dependencies = [ [[package]] name = "hyper-rustls" -version = "0.27.2" +version = "0.27.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ee4be2c948921a1a5320b629c4193916ed787a7f7f293fd3f7f5a6c9de74155" +checksum = "08afdbb5c31130e3034af566421053ab03787c640246a446327f550d11bcb333" dependencies = [ "futures-util", "http 1.1.0", "hyper 1.4.1", "hyper-util", - "rustls 0.23.11", + "rustls 0.23.13", "rustls-pki-types", "tokio", "tokio-rustls 0.26.0", "tower-service", - "webpki-roots 0.26.3", + "webpki-roots 0.26.5", ] [[package]] @@ -3981,9 +4031,9 @@ dependencies = [ [[package]] name = "hyper-util" -version = "0.1.6" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ab92f4f49ee4fb4f997c784b7a2e0fa70050211e0b6a287f898c3c9785ca956" +checksum = "da62f120a8a37763efb0cf8fdf264b884c7b8b9ac8660b900c8661030c00e6ba" dependencies = [ "bytes", "futures-channel", @@ -4001,9 +4051,9 @@ dependencies = [ [[package]] name = "iana-time-zone" -version = "0.1.60" +version = "0.1.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" +checksum = "235e081f3925a06703c2d0117ea8b91f042756fd6e7a6e5d901e8ca1a996b220" dependencies = [ "android_system_properties", "core-foundation-sys", @@ -4095,9 +4145,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.2.6" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" +checksum = "68b900aa2f7301e21c36462b170ee99994de34dff39a4a6a528e80e7376d07e5" dependencies = [ "equivalent", "hashbrown 0.14.5", @@ -4144,15 +4194,15 @@ checksum = "f958d3d68f4167080a18141e10381e7634563984a537f2a49a30fd8e53ac5767" [[package]] name = "ipnet" -version = "2.9.0" +version = "2.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" +checksum = "187674a687eed5fe42285b40c6291f9a01517d415fad1c3cbc6a9f778af7fcd4" [[package]] name = "iri-string" -version = "0.7.2" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f5f6c2df22c009ac44f6f1499308e7a3ac7ba42cd2378475cc691510e1eef1b" +checksum = "3e0f755bd3806e06ad4f366f92639415d99a339a2c7ecf8c26ccea2097c11cb6" dependencies = [ "memchr", "serde", @@ -4160,9 +4210,9 @@ dependencies = [ [[package]] name = "is_terminal_polyfill" -version = "1.70.0" +version = "1.70.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8478577c03552c21db0e2724ffb8986a5ce7af88107e6be5d2ee6e158c12800" +checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf" [[package]] name = "itertools" @@ -4199,18 +4249,18 @@ checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" [[package]] name = "jobserver" -version = "0.1.31" +version = "0.1.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2b099aaa34a9751c5bf0878add70444e1ed2dd73f347be99003d4577277de6e" +checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0" dependencies = [ "libc", ] [[package]] name = "js-sys" -version = "0.3.69" +version = "0.3.70" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d" +checksum = "1868808506b929d7b0cfa8f75951347aa71bb21144b7791bae35d9bccfcfe37a" dependencies = [ "wasm-bindgen", ] @@ -4296,9 +4346,9 @@ dependencies = [ [[package]] name = "keccak-asm" -version = "0.1.1" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47a3633291834c4fbebf8673acbc1b04ec9d151418ff9b8e26dcd79129928758" +checksum = "505d1856a39b200489082f90d897c3f07c455563880bc5952e38eabf731c83b6" dependencies = [ "digest 0.10.7", "sha3-asm", @@ -4318,9 +4368,9 @@ dependencies = [ [[package]] name = "lazy-regex" -version = "3.1.0" +version = "3.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d12be4595afdf58bd19e4a9f4e24187da2a66700786ff660a418e9059937a4c" +checksum = "8d8e41c97e6bc7ecb552016274b99fbb5d035e8de288c582d9b933af6677bfda" dependencies = [ "lazy-regex-proc_macros", "once_cell", @@ -4329,14 +4379,14 @@ dependencies = [ [[package]] name = "lazy-regex-proc_macros" -version = "3.1.0" +version = "3.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44bcd58e6c97a7fcbaffcdc95728b393b8d98933bfadad49ed4097845b57ef0b" +checksum = "76e1d8b05d672c53cb9c7b920bbba8783845ae4f0b076e02a3db1d02c81b4163" dependencies = [ "proc-macro2", "quote", "regex", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -4356,9 +4406,9 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55" [[package]] name = "libc" -version = "0.2.155" +version = "0.2.158" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" +checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439" [[package]] name = "libflate" @@ -4435,9 +4485,9 @@ dependencies = [ [[package]] name = "libz-sys" -version = "1.1.18" +version = "1.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c15da26e5af7e25c90b37a2d75cdbf940cf4a55316de9d84c679c9b8bfabf82e" +checksum = "d2d16453e800a8cf6dd2fc3eb4bc99b786a9b90c663b8559a5b1a041bf89e472" dependencies = [ "cc", "libc", @@ -4475,9 +4525,9 @@ checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" [[package]] name = "lru" -version = "0.12.3" +version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3262e75e648fce39813cb56ac41f3c3e3f65217ebf3844d818d1f9398cfb0dc" +checksum = "37ee39891760e7d94734f6f63fedc29a2e4a152f836120753a72503f09fcf904" dependencies = [ "hashbrown 0.14.5", ] @@ -4520,9 +4570,9 @@ checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94" [[package]] name = "matrixmultiply" -version = "0.3.8" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7574c1cf36da4798ab73da5b215bbf444f50718207754cb522201d78d1cd0ff2" +checksum = "9380b911e3e96d10c1f415da0876389aaf1b56759054eeb0de7df940c456ba1a" dependencies = [ "autocfg", "rawpointer", @@ -4536,7 +4586,7 @@ checksum = "5cf92c10c7e361d6b99666ec1c6f9805b0bea2c3bd8c78dc6fe98ac5bd78db11" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -4556,13 +4606,31 @@ dependencies = [ [[package]] name = "memmap2" -version = "0.9.4" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe751422e4a8caa417e13c3ea66452215d7d63e19e604f4980461212f3ae1322" +checksum = "fd3f7eed9d3848f8b98834af67102b720745c4ec028fcd0aa0239277e7de374f" dependencies = [ "libc", ] +[[package]] +name = "memoffset" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4" +dependencies = [ + "autocfg", +] + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + [[package]] name = "memuse" version = "0.2.1" @@ -4618,11 +4686,11 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] name = "miniz_oxide" -version = "0.7.4" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8a240ddb74feaf34a79a7add65a741f3167852fba007066dcac1ca548d89c08" +checksum = "e2d80299ef12ff69b16a84bb182e3b9df68b5a91574d3d4fa6e41b65deec4df1" dependencies = [ - "adler", + "adler2", ] [[package]] @@ -4701,6 +4769,52 @@ dependencies = [ "rayon", ] +[[package]] +name = "nitro-prover" +version = "0.1.0" +dependencies = [ + "anyhow", + "aws-nitro-enclaves-nsm-api", + "bincode", + "byteorder", + "hex", + "libc", + "raiko-lib", + "secp256k1", + "serde_bytes", + "serde_json", + "tokio", + "tracing", + "tracing-subscriber 0.3.18", + "vsock", +] + +[[package]] +name = "nix" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "598beaf3cc6fdd9a5dfb1630c2800c7acd31df7aaf0f565796fba2b53ca1af1b" +dependencies = [ + "bitflags 1.3.2", + "cfg-if", + "libc", + "memoffset 0.7.1", + "pin-utils", +] + +[[package]] +name = "nix" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46" +dependencies = [ + "bitflags 2.6.0", + "cfg-if", + "cfg_aliases", + "libc", + "memoffset 0.9.1", +] + [[package]] name = "nohash-hasher" version = "0.2.0" @@ -4863,11 +4977,11 @@ dependencies = [ [[package]] name = "num_enum" -version = "0.7.2" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02339744ee7253741199f897151b38e72257d13802d4ee837285cc2990a90845" +checksum = "4e613fc340b2220f734a8595782c551f1250e969d87d3be1ae0579e8d4065179" dependencies = [ - "num_enum_derive 0.7.2", + "num_enum_derive 0.7.3", ] [[package]] @@ -4884,14 +4998,14 @@ dependencies = [ [[package]] name = "num_enum_derive" -version = "0.7.2" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "681030a937600a36906c185595136d26abfebb4aa9c65701cefcaf8578bb982b" +checksum = "af1844ef2428cc3e1cb900be36181049ef3d3193c63e43026cfe202983b27a56" dependencies = [ - "proc-macro-crate 3.1.0", + "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -4953,9 +5067,9 @@ dependencies = [ [[package]] name = "object" -version = "0.36.1" +version = "0.36.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "081b846d1d56ddfc18fdf1a922e4f6e07a11768ea1b92dec44e42b72712ccfce" +checksum = "084f1a5821ac4c651660a94a7153d27ac9d8a53736203f58b31945ded098070a" dependencies = [ "memchr", ] @@ -5026,7 +5140,7 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -5369,7 +5483,7 @@ version = "3.6.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d830939c76d294956402033aee57a6da7b438f2294eb94864c37b0569053a42c" dependencies = [ - "proc-macro-crate 3.1.0", + "proc-macro-crate 3.2.0", "proc-macro2", "quote", "syn 1.0.109", @@ -5418,7 +5532,7 @@ checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" dependencies = [ "cfg-if", "libc", - "redox_syscall 0.5.3", + "redox_syscall 0.5.4", "smallvec", "windows-targets 0.52.6", ] @@ -5511,9 +5625,9 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "pest" -version = "2.7.11" +version = "2.7.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd53dff83f26735fdc1ca837098ccf133605d794cdae66acfc2bfac3ec809d95" +checksum = "9c73c26c01b8c87956cea613c907c9d6ecffd8d18a2a5908e5de0adfaa185cea" dependencies = [ "memchr", "thiserror", @@ -5540,7 +5654,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e9567389417feee6ce15dd6527a8a1ecac205ef62c2932bcf3d9f6fc5b78b414" dependencies = [ "futures", - "rustc_version 0.4.0", + "rustc_version 0.4.1", ] [[package]] @@ -5560,7 +5674,7 @@ checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -5611,12 +5725,13 @@ checksum = "da544ee218f0d287a911e9c99a39a8c9bc8fcad3cb8db5959940044ecfc67265" [[package]] name = "postcard" -version = "1.0.8" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a55c51ee6c0db07e68448e336cf8ea4131a620edefebf9893e759b2d793420f8" +checksum = "5f7f0a8d620d71c457dd1d47df76bb18960378da56af4527aaa10f515eee732e" dependencies = [ "cobs", - "embedded-io", + "embedded-io 0.4.0", + "embedded-io 0.6.1", "serde", ] @@ -5628,15 +5743,18 @@ checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" [[package]] name = "ppv-lite86" -version = "0.2.17" +version = "0.2.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" +checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" +dependencies = [ + "zerocopy", +] [[package]] name = "predicates" -version = "3.1.0" +version = "3.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68b87bfd4605926cdfefc1c3b5f8fe560e3feca9d5552cf68c466d3d8236c7e8" +checksum = "7e9086cc7640c29a356d1a29fd134380bee9d8f79a17410aa76e7ad295f42c97" dependencies = [ "anstyle", "difflib", @@ -5645,15 +5763,15 @@ dependencies = [ [[package]] name = "predicates-core" -version = "1.0.6" +version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b794032607612e7abeb4db69adb4e33590fa6cf1149e95fd7cb00e634b92f174" +checksum = "ae8177bee8e75d6846599c6b9ff679ed51e882816914eec639944d7c9aa11931" [[package]] name = "predicates-tree" -version = "1.0.9" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "368ba315fb8c5052ab692e68a0eefec6ec57b23a36959c14496f0b0df2c0cecf" +checksum = "41b740d195ed3166cd147c8047ec98db0e22ec019eb8eeb76d343b795304fb13" dependencies = [ "predicates-core", "termtree", @@ -5661,12 +5779,12 @@ dependencies = [ [[package]] name = "prettyplease" -version = "0.2.20" +version = "0.2.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f12335488a2f3b0a83b14edad48dca9879ce89b2edd10e80237e4e852dd645e" +checksum = "479cf940fbbb3426c32c5d5176f62ad57549a0bb84773423ba8be9d089f5faba" dependencies = [ "proc-macro2", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -5695,11 +5813,11 @@ dependencies = [ [[package]] name = "proc-macro-crate" -version = "3.1.0" +version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d37c51ca738a55da99dc0c4a34860fd675453b8b36209178c2249bb13651284" +checksum = "8ecf48c7ca261d60b74ab1a7b20da18bede46776b2e55535cb958eb595c5fa7b" dependencies = [ - "toml_edit 0.21.1", + "toml_edit 0.22.21", ] [[package]] @@ -5815,7 +5933,7 @@ dependencies = [ "itertools 0.12.1", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -5826,9 +5944,9 @@ checksum = "106dd99e98437432fed6519dedecfade6a06a73bb7b2a1e019fdd2bee5778d94" [[package]] name = "psm" -version = "0.1.21" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5787f7cda34e3033a72192c018bc5883100330f362ef279a8cbccfce8bb4e874" +checksum = "aa37f80ca58604976033fae9515a8a2989fc13797d953f7c04fb8fa36a11f205" dependencies = [ "cc", ] @@ -5841,16 +5959,17 @@ checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" [[package]] name = "quinn" -version = "0.11.2" +version = "0.11.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4ceeeeabace7857413798eb1ffa1e9c905a9946a57d81fb69b4b71c4d8eb3ad" +checksum = "8c7c5fdde3cdae7203427dc4f0a68fe0ed09833edc525a03456b153b79828684" dependencies = [ "bytes", "pin-project-lite", "quinn-proto", "quinn-udp", - "rustc-hash", - "rustls 0.23.11", + "rustc-hash 2.0.0", + "rustls 0.23.13", + "socket2 0.5.7", "thiserror", "tokio", "tracing", @@ -5858,15 +5977,15 @@ dependencies = [ [[package]] name = "quinn-proto" -version = "0.11.3" +version = "0.11.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddf517c03a109db8100448a4be38d498df8a210a99fe0e1b9eaf39e78c640efe" +checksum = "fadfaed2cd7f389d0161bb73eeb07b7b78f8691047a6f3e73caaeae55310a4a6" dependencies = [ "bytes", "rand 0.8.5", "ring 0.17.8", - "rustc-hash", - "rustls 0.23.11", + "rustc-hash 2.0.0", + "rustls 0.23.13", "slab", "thiserror", "tinyvec", @@ -5875,21 +5994,22 @@ dependencies = [ [[package]] name = "quinn-udp" -version = "0.5.4" +version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bffec3605b73c6f1754535084a85229fa8a30f86014e6c81aeec4abb68b0285" +checksum = "4fe68c2e9e1a1234e218683dbdf9f9dfcb094113c5ac2b938dfcb9bab4c4140b" dependencies = [ "libc", "once_cell", "socket2 0.5.7", - "windows-sys 0.52.0", + "tracing", + "windows-sys 0.59.0", ] [[package]] name = "quote" -version = "1.0.36" +version = "1.0.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" +checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" dependencies = [ "proc-macro2", ] @@ -5917,12 +6037,13 @@ dependencies = [ "anyhow", "assert_cmd", "bincode", - "clap 4.5.9", + "clap 4.5.17", "ethers-core 2.0.10", "kzg", + "nitro-prover", "raiko-lib", "reqwest 0.11.27", - "reqwest 0.12.5", + "reqwest 0.12.7", "reth-evm", "reth-evm-ethereum", "reth-primitives", @@ -5963,7 +6084,7 @@ dependencies = [ "bytemuck", "cap", "cfg-if", - "clap 4.5.9", + "clap 4.5.17", "dotenv", "env_logger", "ethers-core 2.0.10", @@ -5971,6 +6092,7 @@ dependencies = [ "kzg", "lazy_static", "lru_time_cache", + "nitro-prover", "once_cell", "prometheus", "proptest", @@ -5978,7 +6100,7 @@ dependencies = [ "raiko-lib", "raiko-tasks", "reqwest 0.11.27", - "reqwest 0.12.5", + "reqwest 0.12.7", "reth-evm", "reth-evm-ethereum", "reth-primitives", @@ -6031,12 +6153,14 @@ dependencies = [ "libflate", "log", "once_cell", + "rand_core 0.6.4", "reth-chainspec", "reth-evm", "reth-evm-ethereum", "reth-primitives", "rlp", "rust-kzg-zkcrypto", + "secp256k1", "serde", "serde_json", "serde_with 3.9.0", @@ -6087,7 +6211,7 @@ dependencies = [ "bytemuck", "cap", "cfg-if", - "clap 4.5.9", + "clap 4.5.17", "dirs", "env_logger", "ethers-core 2.0.10", @@ -6099,7 +6223,7 @@ dependencies = [ "proptest", "raiko-lib", "reqwest 0.11.27", - "reqwest 0.12.5", + "reqwest 0.12.7", "rlp", "rstest", "serde", @@ -6126,11 +6250,11 @@ dependencies = [ "async-trait", "chrono", "hex", - "num_enum 0.7.2", + "num_enum 0.7.3", "raiko-core", "raiko-lib", - "rand 0.9.0-alpha.1", - "rand_chacha 0.9.0-alpha.1", + "rand 0.9.0-alpha.2", + "rand_chacha 0.9.0-alpha.2", "rusqlite", "serde", "serde_json", @@ -6167,13 +6291,13 @@ dependencies = [ [[package]] name = "rand" -version = "0.9.0-alpha.1" +version = "0.9.0-alpha.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d31e63ea85be51c423e52ba8f2e68a3efd53eed30203ee029dd09947333693e" +checksum = "c3e256ff62cee3e03def855c4d4260106d2bb1696fdc01af03e9935b993720a5" dependencies = [ - "rand_chacha 0.9.0-alpha.1", - "rand_core 0.9.0-alpha.1", - "zerocopy 0.8.0-alpha.6", + "rand_chacha 0.9.0-alpha.2", + "rand_core 0.9.0-alpha.2", + "zerocopy", ] [[package]] @@ -6198,12 +6322,12 @@ dependencies = [ [[package]] name = "rand_chacha" -version = "0.9.0-alpha.1" +version = "0.9.0-alpha.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78674ef918c19451dbd250f8201f8619b494f64c9aa6f3adb28fd8a0f1f6da46" +checksum = "d299e9db34f6623b2a9e86c015d6e173d5f46d64d4b9b8cc46ae8a982a50b04c" dependencies = [ "ppv-lite86", - "rand_core 0.9.0-alpha.1", + "rand_core 0.9.0-alpha.2", ] [[package]] @@ -6226,12 +6350,12 @@ dependencies = [ [[package]] name = "rand_core" -version = "0.9.0-alpha.1" +version = "0.9.0-alpha.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc89dffba8377c5ec847d12bb41492bda235dba31a25e8b695cd0fe6589eb8c9" +checksum = "f4e93f5a5e3c528cda9acb0928c31b2ba868c551cc46e67b778075e34aab9906" dependencies = [ "getrandom 0.2.15", - "zerocopy 0.8.0-alpha.6", + "zerocopy", ] [[package]] @@ -6298,18 +6422,18 @@ dependencies = [ [[package]] name = "redox_syscall" -version = "0.5.3" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a908a6e00f1fdd0dfd9c0eb08ce85126f6d8bbda50017e74bc4a4b7d4a926a4" +checksum = "0884ad60e090bf1345b93da0a5de8923c93884cd03f40dfcfddd3b4bee661853" dependencies = [ "bitflags 2.6.0", ] [[package]] name = "redox_users" -version = "0.4.5" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd283d9651eeda4b2a83a43c1c91b266c40fd76ecd39a50a8c630ae69dc72891" +checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" dependencies = [ "getrandom 0.2.15", "libredox", @@ -6318,9 +6442,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.10.5" +version = "1.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f" +checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619" dependencies = [ "aho-corasick", "memchr", @@ -6397,7 +6521,7 @@ dependencies = [ "serde_json", "serde_urlencoded", "sync_wrapper 0.1.2", - "system-configuration", + "system-configuration 0.5.1", "tokio", "tokio-native-tls", "tokio-rustls 0.24.1", @@ -6407,14 +6531,14 @@ dependencies = [ "wasm-bindgen-futures", "web-sys", "webpki-roots 0.25.4", - "winreg 0.50.0", + "winreg", ] [[package]] name = "reqwest" -version = "0.12.5" +version = "0.12.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7d6d2a27d57148378eb5e111173f4276ad26340ecc5c49a4a2152167a2d6a37" +checksum = "f8f4955649ef5c38cc7f9e8aa41761d48fb9677197daea9984dc54f56aad5e63" dependencies = [ "base64 0.22.1", "bytes", @@ -6422,12 +6546,12 @@ dependencies = [ "futures-channel", "futures-core", "futures-util", - "h2 0.4.5", + "h2 0.4.6", "http 1.1.0", "http-body 1.0.1", "http-body-util", "hyper 1.4.1", - "hyper-rustls 0.27.2", + "hyper-rustls 0.27.3", "hyper-tls 0.6.0", "hyper-util", "ipnet", @@ -6439,14 +6563,14 @@ dependencies = [ "percent-encoding", "pin-project-lite", "quinn", - "rustls 0.23.11", - "rustls-pemfile 2.1.2", + "rustls 0.23.13", + "rustls-pemfile 2.1.3", "rustls-pki-types", "serde", "serde_json", "serde_urlencoded", "sync_wrapper 1.0.1", - "system-configuration", + "system-configuration 0.6.1", "tokio", "tokio-native-tls", "tokio-rustls 0.26.0", @@ -6457,20 +6581,20 @@ dependencies = [ "wasm-bindgen-futures", "wasm-streams", "web-sys", - "webpki-roots 0.26.3", - "winreg 0.52.0", + "webpki-roots 0.26.5", + "windows-registry", ] [[package]] name = "reqwest-middleware" -version = "0.3.2" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39346a33ddfe6be00cbc17a34ce996818b97b230b87229f10114693becca1268" +checksum = "562ceb5a604d3f7c885a792d42c199fd8af239d0a51b2fa6a78aafa092452b04" dependencies = [ "anyhow", "async-trait", "http 1.1.0", - "reqwest 0.12.5", + "reqwest 0.12.7", "serde", "thiserror", "tower-service", @@ -6530,7 +6654,7 @@ dependencies = [ "convert_case 0.6.0", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -6572,7 +6696,7 @@ dependencies = [ "reth-storage-errors", "reth-tracing", "reth-trie-common", - "rustc-hash", + "rustc-hash 1.1.0", "serde", "strum 0.26.3", "sysinfo", @@ -6822,7 +6946,7 @@ dependencies = [ "proc-macro2", "quote", "regex", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -6840,7 +6964,7 @@ version = "1.0.0-rc.2" source = "git+https://github.com/taikoxyz/taiko-reth.git?branch=v1.0.0-rc.2-taiko#d1165aab7a38731ec686bef75933b45aa0bb6cd1" dependencies = [ "futures-util", - "reqwest 0.12.5", + "reqwest 0.12.7", "serde_with 3.9.0", "thiserror", "tokio", @@ -6927,7 +7051,7 @@ dependencies = [ "alloy-rpc-types", "byteorder", "bytes", - "c-kzg 1.0.2", + "c-kzg 1.0.3", "derive_more", "modular-bitfield", "once_cell", @@ -7112,7 +7236,7 @@ name = "reth-tracing" version = "1.0.0-rc.2" source = "git+https://github.com/taikoxyz/taiko-reth.git?branch=v1.0.0-rc.2-taiko#d1165aab7a38731ec686bef75933b45aa0bb6cd1" dependencies = [ - "clap 4.5.9", + "clap 4.5.17", "eyre", "rolling-file", "tracing", @@ -7274,9 +7398,9 @@ dependencies = [ [[package]] name = "risc0-binfmt" -version = "1.0.3" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3432b33880fd2bb3fcff4f7f4764f782852e839a849f72f1b36ba021e6f15d0" +checksum = "4003dd96f2e323dfef431b21a2aaddee1c6791fc32dea8eb2bff1b438bf5caf6" dependencies = [ "anyhow", "elf", @@ -7288,9 +7412,9 @@ dependencies = [ [[package]] name = "risc0-build-kernel" -version = "1.0.3" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4db08993d4922b319efb484353ca2702386230c8e5648c07b390ba3ae3d4294c" +checksum = "84b372eeb78564f262aaa72270a87b94646821e09aa198606ff1e5487943a62b" dependencies = [ "cc", "directories", @@ -7299,7 +7423,7 @@ dependencies = [ "rayon", "sha2", "tempfile", - "which 6.0.1", + "which 6.0.3", ] [[package]] @@ -7311,9 +7435,9 @@ dependencies = [ [[package]] name = "risc0-circuit-recursion" -version = "1.0.3" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adde6018be5b1ba65854fbbf993e44e0dc076893bb5e6e8311d9e606503fca2a" +checksum = "e7c4154d2fbbde5af02a1c35c90340c2749044f5d5cd7834251b616ffa28d467" dependencies = [ "anyhow", "bytemuck", @@ -7330,14 +7454,14 @@ dependencies = [ "risc0-zkp", "sha2", "tracing", - "zip 2.1.5", + "zip 2.2.0", ] [[package]] name = "risc0-circuit-recursion-sys" -version = "1.0.3" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7be7caf965981f44a8d3c8a065e2b09d9eb5852d2d623933dfcd70d08792570a" +checksum = "23995e726c28db57626a05f34f80bf223e23e8c4b53a5aa4afb4eaabc4bba923" dependencies = [ "glob", "risc0-build-kernel", @@ -7348,9 +7472,9 @@ dependencies = [ [[package]] name = "risc0-circuit-rv32im" -version = "1.0.3" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fce940ee68935e3fbe224033fb8dc8447d23dcc7558aaa8bb8c21bc1de73bdf" +checksum = "ce836e7c553e63cbd807d15925ba5dd641a80cdee7d123619eaa60bb555ab014" dependencies = [ "anyhow", "bytemuck", @@ -7377,9 +7501,9 @@ dependencies = [ [[package]] name = "risc0-circuit-rv32im-sys" -version = "1.0.3" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46e1be5f652b867b32cb1558805ff78baa0da9f28a6923023d7f808d51707172" +checksum = "07a69a3cb11175f7eeb2f07a7189f0baddb43233a6e7ed552724b1c7c7566152" dependencies = [ "glob", "risc0-build-kernel", @@ -7390,9 +7514,9 @@ dependencies = [ [[package]] name = "risc0-core" -version = "1.0.3" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be98b31168c4ff7dbe4c2744a1c189fdba6db200b0c581afd1272f0cc0d79aad" +checksum = "047cc26c68c092d664ded7488dcac0462d9e31190e1598a7820fe4246d313583" dependencies = [ "bytemuck", "rand_core 0.6.4", @@ -7431,9 +7555,9 @@ dependencies = [ [[package]] name = "risc0-groth16" -version = "1.0.3" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fa298da93c2a8ea3c92bde5b2e12cbad3c4291bc4a5a70af5f1fd64a12353a5" +checksum = "b3309c7acaf46ed3d21df3841185afd8ea4aab9fb63dbd1974694dfdae276970" dependencies = [ "anyhow", "ark-bn254", @@ -7455,9 +7579,9 @@ dependencies = [ [[package]] name = "risc0-sys" -version = "1.0.3" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f580b53e5a196f12158b2d6910febad42e01741bb5fd1bdb6f02f4ffb108c5f" +checksum = "f5d1b6905a01d72dc9e90a668879b847f4132af4778525480288c8fe90401325" dependencies = [ "cc", "cust", @@ -7467,9 +7591,9 @@ dependencies = [ [[package]] name = "risc0-zkp" -version = "1.0.3" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6186432695488efb2eb4794d4074cf1edf381962303ecdd1732e366662f88afe" +checksum = "ae55272541351a2391e5051519b33bfdf41f5648216827cc2cb94a49b6937380" dependencies = [ "anyhow", "blake2", @@ -7498,11 +7622,11 @@ dependencies = [ [[package]] name = "risc0-zkvm" -version = "1.0.3" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ca4ee3b38d873affc146e48c741e5a70533f5ccb1e3b186d8d671459c51d1ba" +checksum = "f234694d9dabc1172cf418b7a3ba65447caad15b994f450e9941d2a7cc89e045" dependencies = [ - "addr2line", + "addr2line 0.22.0", "anyhow", "bincode", "bonsai-sdk 0.9.0", @@ -7536,9 +7660,9 @@ dependencies = [ [[package]] name = "risc0-zkvm-platform" -version = "1.0.3" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0494a25344644aea2fe9bdb2f619a28e68eb4aff2c173c723a1331fceac56eea" +checksum = "16735dab52ae8bf0dc30df78fce901b674f469dfd7b5f5dfddd54caea22f14d5" dependencies = [ "bytemuck", "getrandom 0.2.15", @@ -7622,7 +7746,7 @@ dependencies = [ "futures", "futures-timer", "rstest_macros", - "rustc_version 0.4.0", + "rustc_version 0.4.1", ] [[package]] @@ -7633,13 +7757,13 @@ checksum = "4165dfae59a39dd41d8dec720d3cbfbc71f69744efb480a3920f5d4e0cc6798d" dependencies = [ "cfg-if", "glob", - "proc-macro-crate 3.1.0", + "proc-macro-crate 3.2.0", "proc-macro2", "quote", "regex", "relative-path", - "rustc_version 0.4.0", - "syn 2.0.72", + "rustc_version 0.4.1", + "syn 2.0.77", "unicode-ident", ] @@ -7708,7 +7832,7 @@ dependencies = [ "proc-macro2", "quote", "rust-embed-utils", - "syn 2.0.72", + "syn 2.0.77", "walkdir", ] @@ -7751,6 +7875,12 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +[[package]] +name = "rustc-hash" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "583034fd73374156e66797ed8e5b0d5690409c9226b22d87cb7f19821c05d152" + [[package]] name = "rustc-hex" version = "2.1.0" @@ -7768,18 +7898,18 @@ dependencies = [ [[package]] name = "rustc_version" -version = "0.4.0" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" dependencies = [ "semver 1.0.23", ] [[package]] name = "rustix" -version = "0.38.34" +version = "0.38.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f" +checksum = "8acb788b847c24f28525660c4d7758620a7210875711f79e7f663cc152726811" dependencies = [ "bitflags 2.6.0", "errno", @@ -7802,14 +7932,14 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.11" +version = "0.23.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4828ea528154ae444e5a642dbb7d5623354030dc9822b83fd9bb79683c7399d0" +checksum = "f2dabaac7466917e566adb06783a81ca48944c6898a1b08b9374106dd671f4c8" dependencies = [ "once_cell", "ring 0.17.8", "rustls-pki-types", - "rustls-webpki 0.102.6", + "rustls-webpki 0.102.8", "subtle", "zeroize", ] @@ -7825,9 +7955,9 @@ dependencies = [ [[package]] name = "rustls-pemfile" -version = "2.1.2" +version = "2.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29993a25686778eb88d4189742cd713c9bce943bc54251a33509dc63cbacf73d" +checksum = "196fe16b00e106300d3e45ecfcb764fa292a535d7326a29a5875c579c7417425" dependencies = [ "base64 0.22.1", "rustls-pki-types", @@ -7835,9 +7965,9 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.7.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "976295e77ce332211c0d24d92c0e83e50f5c5f046d11082cea19f3df13a3562d" +checksum = "fc0a2ce646f8655401bb81e7927b812614bd5d91dbc968696be50603510fcaf0" [[package]] name = "rustls-webpki" @@ -7851,9 +7981,9 @@ dependencies = [ [[package]] name = "rustls-webpki" -version = "0.102.6" +version = "0.102.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e6b52d4fda176fd835fdc55a835d4a89b8499cad995885a21149d5ad62f852e" +checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9" dependencies = [ "ring 0.17.8", "rustls-pki-types", @@ -7931,7 +8061,7 @@ version = "2.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2d35494501194174bda522a32605929eefc9ecf7e0a326c26db1fdd85881eb62" dependencies = [ - "proc-macro-crate 3.1.0", + "proc-macro-crate 3.2.0", "proc-macro2", "quote", "syn 1.0.109", @@ -7939,20 +8069,20 @@ dependencies = [ [[package]] name = "scc" -version = "2.1.4" +version = "2.1.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4465c22496331e20eb047ff46e7366455bc01c0c02015c4a376de0b2cd3a1af" +checksum = "0c947adb109a8afce5fc9c7bf951f87f146e9147b3a6a58413105628fb1d1e66" dependencies = [ "sdd", ] [[package]] name = "schannel" -version = "0.1.23" +version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbc91545643bcf3a0bbb6569265615222618bdf33ce4ffbbd13c4bbd4c093534" +checksum = "e9aaafd5a2b6e3d657ff009d82fbd630b6bd54dd4eb06f21693925cdf80f9b8b" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -7996,9 +8126,9 @@ dependencies = [ [[package]] name = "sdd" -version = "1.7.0" +version = "3.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85f05a494052771fc5bd0619742363b5e24e5ad72ab3111ec2e27925b8edc5f3" +checksum = "60a7b59a5d9b0099720b417b6325d91a52cbf5b3dcb5041d864be53eefa58abc" [[package]] name = "sec1" @@ -8096,9 +8226,9 @@ checksum = "cd0b0ec5f1c1ca621c432a25813d8d60c88abe6d3e08a3eb9cf37d97a0fe3d73" [[package]] name = "serde" -version = "1.0.209" +version = "1.0.210" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99fce0ffe7310761ca6bf9faf5115afbc19688edd00171d81b1bb1b116c63e09" +checksum = "c8e3592472072e6e22e0a54d5904d9febf8508f65fb8552499a1abc7d1078c3a" dependencies = [ "serde_derive", ] @@ -8112,24 +8242,34 @@ dependencies = [ "serde", ] +[[package]] +name = "serde_cbor" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bef2ebfde456fb76bbcf9f59315333decc4fda0b2b44b420243c11e0f5ec1f5" +dependencies = [ + "half", + "serde", +] + [[package]] name = "serde_derive" -version = "1.0.209" +version = "1.0.210" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5831b979fd7b5439637af1752d535ff49f4860c0f341d1baeb6faf0f4242170" +checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] name = "serde_json" -version = "1.0.127" +version = "1.0.128" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8043c06d9f82bd7271361ed64f415fe5e12a77fdb52e573e7f06a516dea329ad" +checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8" dependencies = [ - "indexmap 2.2.6", + "indexmap 2.5.0", "itoa", "memchr", "ryu", @@ -8148,9 +8288,9 @@ dependencies = [ [[package]] name = "serde_spanned" -version = "0.6.6" +version = "0.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79e674e01f999af37c49f70a6ede167a8a60b2503e56c5599532a65baa5969a0" +checksum = "eb5b1b31579f3811bf615c144393417496f152e12ac8b7663bf664f4a815306d" dependencies = [ "serde", ] @@ -8193,7 +8333,7 @@ dependencies = [ "chrono", "hex", "indexmap 1.9.3", - "indexmap 2.2.6", + "indexmap 2.5.0", "serde", "serde_derive", "serde_json", @@ -8210,7 +8350,7 @@ dependencies = [ "darling", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -8222,7 +8362,7 @@ dependencies = [ "darling", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -8247,7 +8387,7 @@ checksum = "82fe9db325bcef1fbcde82e078a5cc4efdf787e96b3b9cf45b50b529f2083d67" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -8258,9 +8398,10 @@ dependencies = [ "base64 0.22.1", "base64-serde", "bincode", - "clap 4.5.9", + "clap 4.5.17", "dirs", "hex", + "raiko-core", "raiko-lib", "rand 0.8.5", "rand_core 0.6.4", @@ -8329,9 +8470,9 @@ dependencies = [ [[package]] name = "sha3-asm" -version = "0.1.1" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9b57fd861253bff08bb1919e995f90ba8f4889de2726091c8876f3a4e823b40" +checksum = "c28efc5e327c837aa837c59eae585fc250715ef939ac32881bcc11677cd02d46" dependencies = [ "cc", "cfg-if", @@ -8464,7 +8605,7 @@ dependencies = [ "anyhow", "cargo_metadata 0.18.1", "chrono", - "clap 4.5.9", + "clap 4.5.17", "dirs", ] @@ -8669,7 +8810,7 @@ checksum = "166e9f9fd29ecdfd4fd452d49052abdfbe735317f00016e94fde8410f90b4134" dependencies = [ "anyhow", "bincode", - "clap 4.5.9", + "clap 4.5.17", "dirs", "hex", "itertools 0.13.0", @@ -8932,7 +9073,7 @@ dependencies = [ "p3-fri", "p3-matrix", "prost", - "reqwest 0.12.5", + "reqwest 0.12.7", "reqwest-middleware", "serde", "serde_json", @@ -9008,9 +9149,9 @@ dependencies = [ [[package]] name = "sppark" -version = "0.1.6" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb266b15daead53670d477d7e136b8fc92d46e31bb9007ac46d304df23689a4b" +checksum = "c55f3833d30846a26110dccb1d5366314c2c52516a9173b74238c16b24b1a9f9" dependencies = [ "cc", "which 4.4.2", @@ -9024,15 +9165,15 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "stacker" -version = "0.1.15" +version = "0.1.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c886bd4480155fd3ef527d45e9ac8dd7118a898a46530b7b94c3e21866259fce" +checksum = "799c883d55abdb5e98af1a7b3f23b9b6de8ecada0ecac058672d7635eb48ca7b" dependencies = [ "cc", "cfg-if", "libc", "psm", - "winapi", + "windows-sys 0.59.0", ] [[package]] @@ -9105,7 +9246,7 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -9118,7 +9259,7 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -9172,9 +9313,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.72" +version = "2.0.77" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc4b9b9bf2add8093d3f2c0204471e951b2285580335de42f9d2534f3ae7a8af" +checksum = "9f35bcdf61fd8e7be6caf75f429fdca8beb3ed76584befb503b1569faee373ed" dependencies = [ "proc-macro2", "quote", @@ -9190,7 +9331,7 @@ dependencies = [ "paste", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -9204,6 +9345,9 @@ name = "sync_wrapper" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a7065abeca94b6a8a577f9bd45aa0867a2238b74e8eb67cf10d492bc39351394" +dependencies = [ + "futures-core", +] [[package]] name = "sysinfo" @@ -9228,7 +9372,18 @@ checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" dependencies = [ "bitflags 1.3.2", "core-foundation", - "system-configuration-sys", + "system-configuration-sys 0.5.0", +] + +[[package]] +name = "system-configuration" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b" +dependencies = [ + "bitflags 2.6.0", + "core-foundation", + "system-configuration-sys 0.6.0", ] [[package]] @@ -9241,6 +9396,16 @@ dependencies = [ "libc", ] +[[package]] +name = "system-configuration-sys" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" +dependencies = [ + "core-foundation-sys", + "libc", +] + [[package]] name = "tap" version = "1.0.1" @@ -9249,14 +9414,15 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "tempfile" -version = "3.10.1" +version = "3.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" +checksum = "04cbcdd0c794ebb0d4cf35e88edd2f7d2c4c3e9a5a6dab322839b321c6a87a64" dependencies = [ "cfg-if", "fastrand", + "once_cell", "rustix", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -9291,7 +9457,7 @@ checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -9416,7 +9582,7 @@ checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -9445,16 +9611,16 @@ version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4" dependencies = [ - "rustls 0.23.11", + "rustls 0.23.13", "rustls-pki-types", "tokio", ] [[package]] name = "tokio-stream" -version = "0.1.15" +version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "267ac89e0bec6e691e5813911606935d77c476ff49024f98abcea3e7b15e37af" +checksum = "4f4e6ce100d0eb49a2734f8c0812bcd324cf357d21810932c5df6b96ef2b86f1" dependencies = [ "futures-core", "pin-project-lite", @@ -9479,9 +9645,9 @@ dependencies = [ [[package]] name = "tokio-util" -version = "0.7.11" +version = "0.7.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cf6b47b3771c49ac75ad09a6162f53ad4b8088b76ac60e8ec1455b31a189fe1" +checksum = "61e7c3654c13bcd040d4a03abee2c75b1d14a37b423cf5a813ceae1cc903ec6a" dependencies = [ "bytes", "futures-core", @@ -9505,21 +9671,21 @@ dependencies = [ [[package]] name = "toml" -version = "0.8.15" +version = "0.8.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac2caab0bf757388c6c0ae23b3293fdb463fee59434529014f85e3263b995c28" +checksum = "a1ed1f98e3fdc28d6d910e6737ae6ab1a93bf1985935a1193e68f93eeb68d24e" dependencies = [ "serde", "serde_spanned", "toml_datetime", - "toml_edit 0.22.16", + "toml_edit 0.22.21", ] [[package]] name = "toml_datetime" -version = "0.6.6" +version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4badfd56924ae69bcc9039335b2e017639ce3f9b001c393c1b2d1ef846ce2cbf" +checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41" dependencies = [ "serde", ] @@ -9530,7 +9696,7 @@ version = "0.19.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" dependencies = [ - "indexmap 2.2.6", + "indexmap 2.5.0", "serde", "serde_spanned", "toml_datetime", @@ -9539,26 +9705,15 @@ dependencies = [ [[package]] name = "toml_edit" -version = "0.21.1" +version = "0.22.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a8534fd7f78b5405e860340ad6575217ce99f38d4d5c8f2442cb5ecb50090e1" +checksum = "3b072cee73c449a636ffd6f32bd8de3a9f7119139aff882f44943ce2986dc5cf" dependencies = [ - "indexmap 2.2.6", - "toml_datetime", - "winnow 0.5.40", -] - -[[package]] -name = "toml_edit" -version = "0.22.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "278f3d518e152219c994ce877758516bca5e118eaed6996192a774fb9fbf0788" -dependencies = [ - "indexmap 2.2.6", + "indexmap 2.5.0", "serde", "serde_spanned", "toml_datetime", - "winnow 0.6.15", + "winnow 0.6.18", ] [[package]] @@ -9615,15 +9770,15 @@ dependencies = [ [[package]] name = "tower-layer" -version = "0.3.2" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c20c8dbed6283a09604c3e69b4b7eeb54e298b8a600d4d5ecb5ad39de609f1d0" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" [[package]] name = "tower-service" -version = "0.3.2" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" [[package]] name = "tracing" @@ -9657,7 +9812,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -9717,9 +9872,9 @@ dependencies = [ [[package]] name = "tracing-logfmt" -version = "0.3.4" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22b8e455f6caa5212a102ec530bf86b8dc5a4c536299bffd84b238fed9119be7" +checksum = "6b1f47d22deb79c3f59fcf2a1f00f60cbdc05462bf17d1cd356c1fefa3f444bd" dependencies = [ "time", "tracing", @@ -9807,7 +9962,7 @@ dependencies = [ "http-body-util", "hyper 1.4.1", "prost", - "reqwest 0.12.5", + "reqwest 0.12.7", "serde", "serde_json", "thiserror", @@ -9828,9 +9983,9 @@ dependencies = [ [[package]] name = "typeid" -version = "1.0.0" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "059d83cc991e7a42fc37bd50941885db0888e34209f8cfd9aab07ddec03bc9cf" +checksum = "0e13db2e0ccd5e14a544e8a246ba2312cd25223f616442d7f2cb0e3db614236e" [[package]] name = "typenum" @@ -9840,9 +9995,9 @@ checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" [[package]] name = "typetag" -version = "0.2.16" +version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "661d18414ec032a49ece2d56eee03636e43c4e8d577047ab334c0ba892e29aaf" +checksum = "52ba3b6e86ffe0054b2c44f2d86407388b933b16cb0a70eea3929420db1d9bbe" dependencies = [ "erased-serde", "inventory", @@ -9853,13 +10008,13 @@ dependencies = [ [[package]] name = "typetag-impl" -version = "0.2.16" +version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac73887f47b9312552aa90ef477927ff014d63d1920ca8037c6c1951eab64bb1" +checksum = "70b20a22c42c8f1cd23ce5e34f165d4d37038f5b663ad20fb6adbdf029172483" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -9903,24 +10058,24 @@ checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" [[package]] name = "unicode-ident" -version = "1.0.12" +version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" +checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe" [[package]] name = "unicode-normalization" -version = "0.1.23" +version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5" +checksum = "5033c97c4262335cded6d6fc3e5c18ab755e1a3dc96376350f3d8e9f009ad956" dependencies = [ "tinyvec", ] [[package]] name = "unicode-segmentation" -version = "1.11.0" +version = "1.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202" +checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" [[package]] name = "unicode-width" @@ -9930,9 +10085,9 @@ checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d" [[package]] name = "unicode-xid" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" +checksum = "229730647fbc343e3a80e463c1db7f78f3855d3f3739bee0dda773c9a037c90a" [[package]] name = "universal-hash" @@ -9985,7 +10140,7 @@ version = "4.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c5afb1a60e207dca502682537fefcfd9921e71d0b83e9576060f09abc6efab23" dependencies = [ - "indexmap 2.2.6", + "indexmap 2.5.0", "serde", "serde_json", "utoipa-gen", @@ -10001,7 +10156,7 @@ dependencies = [ "proc-macro2", "quote", "regex", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -10025,7 +10180,7 @@ dependencies = [ "axum", "mime_guess", "regex", - "reqwest 0.12.5", + "reqwest 0.12.7", "rust-embed", "serde", "serde_json", @@ -10083,7 +10238,7 @@ dependencies = [ "approx", "num-integer", "num-traits", - "rustc_version 0.4.0", + "rustc_version 0.4.1", ] [[package]] @@ -10101,9 +10256,19 @@ dependencies = [ [[package]] name = "version_check" -version = "0.9.4" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "vsock" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" +checksum = "4e8b4d00e672f147fc86a09738fadb1445bd1c0a40542378dfb82909deeee688" +dependencies = [ + "libc", + "nix 0.29.0", +] [[package]] name = "wait-timeout" @@ -10147,34 +10312,35 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.92" +version = "0.2.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8" +checksum = "a82edfc16a6c469f5f44dc7b571814045d60404b55a0ee849f9bcfa2e63dd9b5" dependencies = [ "cfg-if", + "once_cell", "wasm-bindgen-macro", ] [[package]] name = "wasm-bindgen-backend" -version = "0.2.92" +version = "0.2.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da" +checksum = "9de396da306523044d3302746f1208fa71d7532227f15e347e2d93e4145dd77b" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.42" +version = "0.4.43" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76bc14366121efc8dbb487ab05bcc9d346b3b5ec0eaa76e46594cabbe51762c0" +checksum = "61e9300f63a621e96ed275155c108eb6f843b6a26d053f122ab69724559dc8ed" dependencies = [ "cfg-if", "js-sys", @@ -10184,9 +10350,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.92" +version = "0.2.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726" +checksum = "585c4c91a46b072c92e908d99cb1dcdf95c5218eeb6f3bf1efa991ee7a68cccf" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -10194,22 +10360,22 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.92" +version = "0.2.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" +checksum = "afc340c74d9005395cf9dd098506f7f44e38f2b4a21c6aaacf9a105ea5e1e836" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.92" +version = "0.2.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" +checksum = "c62a0a307cb4a311d3a07867860911ca130c3494e8c2719593806c08bc5d0484" [[package]] name = "wasm-streams" @@ -10226,9 +10392,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.69" +version = "0.3.70" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77afa9a11836342370f4817622a2f0f418b134426d91a82dfb48f532d2ec13ef" +checksum = "26fdeaafd9bd129f65e7c031593c24d62186301e0c72c8978fa1678be7d532c0" dependencies = [ "js-sys", "wasm-bindgen", @@ -10252,9 +10418,9 @@ checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1" [[package]] name = "webpki-roots" -version = "0.26.3" +version = "0.26.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd7c23921eeb1713a4e851530e9b9756e4fb0e89978582942612524cf09f01cd" +checksum = "0bd24728e5af82c6c4ec1b66ac4844bdf8156257fccda846ec58b42cd0cdbe6a" dependencies = [ "rustls-pki-types", ] @@ -10273,9 +10439,9 @@ dependencies = [ [[package]] name = "which" -version = "6.0.1" +version = "6.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8211e4f58a2b2805adfbefbc07bab82958fc91e3836339b1ab7ae32465dce0d7" +checksum = "b4ee928febd44d98f2f459a4a79bd4d928591333a494a10a868418ac1b39cf1f" dependencies = [ "either", "home", @@ -10301,11 +10467,11 @@ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" [[package]] name = "winapi-util" -version = "0.1.8" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d4cc384e1e73b93bafa6fb4f1df8c41695c8a91cf9c4c64358067d15a7b6c6b" +checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -10333,6 +10499,36 @@ dependencies = [ "windows-targets 0.52.6", ] +[[package]] +name = "windows-registry" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e400001bb720a623c1c69032f8e3e4cf09984deec740f007dd2b03ec864804b0" +dependencies = [ + "windows-result", + "windows-strings", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-result" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-strings" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" +dependencies = [ + "windows-result", + "windows-targets 0.52.6", +] + [[package]] name = "windows-sys" version = "0.48.0" @@ -10351,6 +10547,15 @@ dependencies = [ "windows-targets 0.52.6", ] +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", +] + [[package]] name = "windows-targets" version = "0.48.5" @@ -10483,9 +10688,9 @@ dependencies = [ [[package]] name = "winnow" -version = "0.6.15" +version = "0.6.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "557404e450152cd6795bb558bca69e43c585055f4606e3bcae5894fc6dac9ba0" +checksum = "68a9bda4691f099d435ad181000724da8e5899daa10713c2d432552b9ccd3a6f" dependencies = [ "memchr", ] @@ -10500,16 +10705,6 @@ dependencies = [ "windows-sys 0.48.0", ] -[[package]] -name = "winreg" -version = "0.52.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a277a57398d4bfa075df44f501a17cfdf8542d224f0d36095a2adc7aee4ef0a5" -dependencies = [ - "cfg-if", - "windows-sys 0.48.0", -] - [[package]] name = "winsafe" version = "0.0.19" @@ -10527,7 +10722,7 @@ dependencies = [ "js-sys", "log", "pharos", - "rustc_version 0.4.0", + "rustc_version 0.4.1", "send_wrapper 0.6.0", "thiserror", "wasm-bindgen", @@ -10559,16 +10754,8 @@ version = "0.7.35" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" dependencies = [ - "zerocopy-derive 0.7.35", -] - -[[package]] -name = "zerocopy" -version = "0.8.0-alpha.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db678a6ee512bd06adf35c35be471cae2f9c82a5aed2b5d15e03628c98bddd57" -dependencies = [ - "zerocopy-derive 0.8.0-alpha.6", + "byteorder", + "zerocopy-derive", ] [[package]] @@ -10579,18 +10766,7 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", -] - -[[package]] -name = "zerocopy-derive" -version = "0.8.0-alpha.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "201585ea96d37ee69f2ac769925ca57160cef31acb137c16f38b02b76f4c1e62" -dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -10610,7 +10786,7 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.72", + "syn 2.0.77", ] [[package]] @@ -10624,23 +10800,23 @@ dependencies = [ "crossbeam-utils", "displaydoc", "flate2", - "indexmap 2.2.6", - "num_enum 0.7.2", + "indexmap 2.5.0", + "num_enum 0.7.3", "thiserror", ] [[package]] name = "zip" -version = "2.1.5" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b895748a3ebcb69b9d38dcfdf21760859a4b0d0b0015277640c2ef4c69640e6f" +checksum = "dc5e4288ea4057ae23afc69a4472434a87a2495cafce6632fd1c4ec9f5cf3494" dependencies = [ "arbitrary", "crc32fast", "crossbeam-utils", "displaydoc", "flate2", - "indexmap 2.2.6", + "indexmap 2.5.0", "memchr", "thiserror", "zopfli", @@ -10698,18 +10874,18 @@ dependencies = [ [[package]] name = "zstd-safe" -version = "7.2.0" +version = "7.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa556e971e7b568dc775c136fc9de8c779b1c2fc3a63defaafadffdbd3181afa" +checksum = "54a3ab4db68cea366acc5c897c7b4d4d1b8994a9cd6e6f841f8964566a419059" dependencies = [ "zstd-sys", ] [[package]] name = "zstd-sys" -version = "2.0.12+zstd.1.5.6" +version = "2.0.13+zstd.1.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a4e40c320c3cb459d9a9ff6de98cff88f4751ee9275d140e2be94a2b74e4c13" +checksum = "38ff0f21cfee8f97d94cef41359e0c89aa6113028ab0291aa8ca0038995a95aa" dependencies = [ "cc", "pkg-config", diff --git a/Cargo.toml b/Cargo.toml index 04dfeaf3e..296125788 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,7 @@ resolver = "2" members = [ "lib", "host", + "provers/nitro/nitro-prover", "harness/core", "harness/macro", "provers/sp1/driver", @@ -31,6 +32,13 @@ lto = true [profile.release.build-override] opt-level = 3 +[workspace.metadata.cross.target.x86_64-unknown-linux-gnu] +# Install libssl-dev:amd64, see +pre-build = [ + "dpkg --add-architecture $CROSS_DEB_ARCH", + "apt-get update && apt-get --assume-yes install libssl-dev:$CROSS_DEB_ARCH", +] + [workspace.dependencies] # raiko @@ -162,6 +170,13 @@ anyhow = "1.0" thiserror = "1.0" thiserror-no-std = "2.0.2" +# Nitro enclave +vsock = "0.5.0" +libc = "0.2.155" +byteorder = "1.3" +serde_bytes = "0.11" +aws-nitro-enclaves-nsm-api = "0.4.0" + # SQLite rusqlite = { version = "0.31.0", features = ["bundled"] } diff --git a/README.md b/README.md index 47e99cbd5..68cb41b25 100644 --- a/README.md +++ b/README.md @@ -161,6 +161,17 @@ If your CPU doesn't support SGX, you can still run the SGX code through gramine MOCK=1 TARGET=sgx make run ``` +### Nitro enclave prover + +First, set up KMS, refer to this [guide](https://github.com/aws/aws-nitro-enclaves-sdk-c/blob/main/docs/kmstool.md#set-up-kms) + +Using given provers/nitro/nitro-prover/test-enclave-kms-policy.json create enclave key: + +```bash +KMS_KEY_ARN=$(aws kms create-key --description "Nitro Enclaves Test Key" --policy file://test-enclave-kms-policy.json --query KeyMetadata.Arn --output text) +echo $KMS_KEY_ARN +``` + ## Misc docs - [Docker & Remote Attestation Support](docs/README_Docker_and_RA.md) diff --git a/core/Cargo.toml b/core/Cargo.toml index 8509db15e..0cb8dae8c 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -9,6 +9,7 @@ edition = "2021" sp1-driver = { path = "../provers/sp1/driver", optional = true } risc0-driver = { path = "../provers/risc0/driver", optional = true } sgx-prover = { path = "../provers/sgx/prover", optional = true } +nitro-prover = { path = "../provers/nitro/nitro-prover", optional = true } # raiko raiko-lib = { workspace = true } @@ -70,3 +71,4 @@ ethers-core = { workspace = true } sp1 = ["dep:sp1-driver", "sp1-driver/enable"] risc0 = ["dep:risc0-driver", "risc0-driver/enable"] sgx = ["dep:sgx-prover", "sgx-prover/enable"] +nitro = ["nitro-prover"] diff --git a/core/src/interfaces.rs b/core/src/interfaces.rs index 3099565ed..b632a148b 100644 --- a/core/src/interfaces.rs +++ b/core/src/interfaces.rs @@ -111,6 +111,10 @@ pub enum ProofType { /// /// Uses the RISC0 prover to build the block. Risc0, + /// # Nitro + /// + /// Uses Nitro enclave prover. + Nitro, } impl std::fmt::Display for ProofType { @@ -120,6 +124,7 @@ impl std::fmt::Display for ProofType { ProofType::Sp1 => "sp1", ProofType::Sgx => "sgx", ProofType::Risc0 => "risc0", + ProofType::Nitro => "nitro", }) } } @@ -133,6 +138,7 @@ impl FromStr for ProofType { "sp1" => Ok(ProofType::Sp1), "sgx" => Ok(ProofType::Sgx), "risc0" => Ok(ProofType::Risc0), + "nitro" => Ok(ProofType::Nitro), _ => Err(RaikoError::InvalidProofType(s.to_string())), } } @@ -159,6 +165,7 @@ impl From for VerifierType { ProofType::Sp1 => VerifierType::SP1, ProofType::Sgx => VerifierType::SGX, ProofType::Risc0 => VerifierType::RISC0, + ProofType::Nitro => VerifierType::Nitro, } } } @@ -200,6 +207,12 @@ impl ProofType { #[cfg(not(feature = "sgx"))] Err(RaikoError::FeatureNotSupportedError(*self)) } + ProofType::Nitro => { + #[cfg(feature = "nitro")] + return nitro_prover::NitroProver::prove(input).map_err(|e| e.into()); + #[cfg(not(feature = "nitro"))] + Err(RaikoError::FeatureNotSupportedError(*self)) + } } } @@ -236,6 +249,10 @@ impl ProofType { #[cfg(not(feature = "sgx"))] Err(RaikoError::FeatureNotSupportedError(*self)) } + ProofType::Nitro => { + // Nitro prover is instant and requires no cancelation + Ok(()) + } }?; Ok(()) } @@ -312,6 +329,8 @@ pub struct ProverSpecificOpts { pub sp1: Option, /// RISC0 prover specific options. pub risc0: Option, + /// Nitro enclave specific options. + pub nitro: Option, } impl From @@ -323,6 +342,7 @@ impl From, Json(req): Json, diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 33b3856b0..357f462d3 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -29,6 +29,10 @@ serde = { workspace = true } serde_json = { workspace = true, optional = true } serde_with = { workspace = true, optional = true } +# crypto +secp256k1 = { workspace = true } +rand_core = { workspace = true } + libflate = { workspace = true } once_cell = { workspace = true } url = { workspace = true } @@ -61,16 +65,16 @@ hex-literal = { workspace = true } [features] default = ["std"] std = [ - # always use no-std for revm since we use hashbrown in workspace - # "revm/std", - "dep:thiserror", - "anyhow/std", - "dep:chrono", - "dep:flate2", - "dep:log", - "dep:serde_json", - "dep:serde_with", - # "dep:tokio", + # always use no-std for revm since we use hashbrown in workspace + # "revm/std", + "dep:thiserror", + "anyhow/std", + "dep:chrono", + "dep:flate2", + "dep:log", + "dep:serde_json", + "dep:serde_with", + # "dep:tokio", ] sgx = [] sp1 = [] diff --git a/lib/src/builder.rs b/lib/src/builder.rs index 3269f98bb..ba7be84b2 100644 --- a/lib/src/builder.rs +++ b/lib/src/builder.rs @@ -1,6 +1,3 @@ -use core::mem; -use std::sync::Arc; - use crate::primitives::keccak::keccak; use crate::primitives::mpt::StateAccount; use crate::utils::generate_transactions; @@ -12,6 +9,7 @@ use crate::{ CycleTracker, }; use anyhow::{bail, ensure, Result}; +use core::mem; use reth_chainspec::{ ChainSpecBuilder, Hardfork, HOLESKY, MAINNET, TAIKO_A7, TAIKO_DEV, TAIKO_MAINNET, }; @@ -25,24 +23,38 @@ use reth_primitives::revm_primitives::{ Account, AccountInfo, AccountStatus, Bytecode, Bytes, HashMap, SpecId, }; use reth_primitives::{Address, BlockWithSenders, Header, B256, KECCAK_EMPTY, U256}; +use std::sync::Arc; use tracing::{debug, error}; -pub fn calculate_block_header(input: &GuestInput) -> Header { +pub fn calculate_block_header(input: &GuestInput) -> Result
{ + let block = input.block.header.number; let cycle_tracker = CycleTracker::start("initialize_database"); - let db = create_mem_db(&mut input.clone()).unwrap(); + let Ok(db) = create_mem_db(&mut input.clone()) else { + bail!( + "Failed to instantiate in-memory state database for block {}", + block + ); + }; cycle_tracker.end(); let mut builder = RethBlockBuilder::new(input, db); let cycle_tracker = CycleTracker::start("execute_transactions"); - builder.execute_transactions(false).expect("execute"); + if builder.execute_transactions(false).is_err() { + bail!( + "Falide to execute non-optimistic transaction for block {}", + block + ); + } cycle_tracker.end(); let cycle_tracker = CycleTracker::start("finalize"); - let header = builder.finalize().expect("execute"); + let Ok(header) = builder.finalize() else { + bail!("Failed to execute finalize for block {}", block); + }; cycle_tracker.end(); - header + Ok(header) } /// Optimistic database diff --git a/lib/src/consts.rs b/lib/src/consts.rs index 4f69316f1..cc22a8e7e 100644 --- a/lib/src/consts.rs +++ b/lib/src/consts.rs @@ -134,6 +134,7 @@ pub enum VerifierType { SGX, SP1, RISC0, + Nitro, } /// Specification of a specific chain. @@ -397,6 +398,7 @@ mod tests { (VerifierType::SGX, Some(Address::default())), (VerifierType::SP1, None), (VerifierType::RISC0, Some(Address::default())), + (VerifierType::Nitro, Some(Address::default())), ]), )]), genesis_time: 0u64, diff --git a/lib/src/input.rs b/lib/src/input.rs index 1b0688b16..3456d7166 100644 --- a/lib/src/input.rs +++ b/lib/src/input.rs @@ -168,7 +168,7 @@ pub struct TaikoProverData { } #[serde_as] -#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Default)] pub struct GuestOutput { pub header: Header, pub hash: B256, diff --git a/lib/src/lib.rs b/lib/src/lib.rs index 5042d9ae1..9076d4356 100644 --- a/lib/src/lib.rs +++ b/lib/src/lib.rs @@ -25,6 +25,7 @@ pub mod mem_db; pub mod primitives; pub mod protocol_instance; pub mod prover; +pub mod signature; pub mod utils; #[cfg(not(target_os = "zkvm"))] diff --git a/lib/src/protocol_instance.rs b/lib/src/protocol_instance.rs index 5036173f7..36a157c27 100644 --- a/lib/src/protocol_instance.rs +++ b/lib/src/protocol_instance.rs @@ -305,6 +305,7 @@ fn get_blob_proof_type( VerifierType::SGX => BlobProofType::KzgVersionedHash, VerifierType::SP1 => BlobProofType::ProofOfEquivalence, VerifierType::RISC0 => BlobProofType::ProofOfEquivalence, + VerifierType::Nitro => BlobProofType::KzgVersionedHash, } } diff --git a/provers/sgx/guest/src/signature.rs b/lib/src/signature.rs similarity index 88% rename from provers/sgx/guest/src/signature.rs rename to lib/src/signature.rs index 262797ac6..397a13dcf 100644 --- a/provers/sgx/guest/src/signature.rs +++ b/lib/src/signature.rs @@ -1,6 +1,6 @@ use std::{fs, path::Path}; -use raiko_lib::primitives::{keccak256, Address, Signature, B256}; +use crate::primitives::{keccak256, Address, Signature, B256}; use rand_core::OsRng; use secp256k1::{ ecdsa::{RecoverableSignature, RecoveryId}, @@ -36,7 +36,11 @@ pub fn sign_message(secret_key: &SecretKey, message: B256) -> Result<[u8; 65], E let sec = SecretKey::from_slice(secret.as_ref())?; let s = SECP256K1.sign_ecdsa_recoverable(&Message::from_digest_slice(&message[..])?, &sec); let (rec_id, data) = s.serialize_compact(); - let signature = Signature::from_bytes_and_parity(&data, (rec_id.to_i32() != 0) as u64).unwrap(); + let signature = Signature::from_bytes_and_parity(&data, (rec_id.to_i32() != 0) as u64) + .map_err(|e| { + println!("Failed to decode signature from bytes with details: {e}"); + Error::InvalidSignature + })?; Ok(signature.as_bytes()) } @@ -50,7 +54,10 @@ pub fn public_key_to_address(public: &PublicKey) -> Address { } pub fn load_private_key>(path: T) -> Result { - let data = fs::read(path).unwrap(); + let data = fs::read(path).map_err(|e| { + println!("Failed to read private key from file with details: {e}"); + Error::InvalidSecretKey + })?; SecretKey::from_slice(data.as_ref()) } diff --git a/provers/nitro/nitro-prover/Cargo.toml b/provers/nitro/nitro-prover/Cargo.toml new file mode 100644 index 000000000..f427e8f40 --- /dev/null +++ b/provers/nitro/nitro-prover/Cargo.toml @@ -0,0 +1,24 @@ +[package] +name = "nitro-prover" +version = "0.1.0" +edition = "2021" + +[dependencies] +raiko-lib = { workspace = true } +aws-nitro-enclaves-nsm-api = { workspace = true } +serde_bytes = { workspace = true } +bincode = { workspace = true } +tracing = { workspace = true } +tracing-subscriber = { workspace = true } +vsock = { workspace = true } +libc = { workspace = true } +anyhow = { workspace = true } +serde_json = { workspace = true } +tokio = { workspace = true, features = ["rt"] } +hex = { workspace = true } +byteorder = { workspace = true } +secp256k1 = { workspace = true } + +[build_dependencies] +raiko-lib = { workspace = true } +hex = { workspace = true } diff --git a/provers/nitro/nitro-prover/Dockerfile b/provers/nitro/nitro-prover/Dockerfile new file mode 100644 index 000000000..12548573e --- /dev/null +++ b/provers/nitro/nitro-prover/Dockerfile @@ -0,0 +1,19 @@ +FROM rust:latest AS builder + +ENV DEBIAN_FRONTEND=noninteractive +ARG BUILD_FLAGS="" + +WORKDIR /opt/raiko-nitro +COPY . . +RUN cargo build --release -p nitro-prover + + +# Set up runtime +FROM debian:bookworm-slim AS runner +WORKDIR /raiko-nitro + +# Copy the Rust compiled binary from previous image +COPY --from=builder /opt/raiko-nitro/provers/nitro/nitro-prover/secret.key . +COPY --from=builder /opt/raiko-nitro/target/release/nitro-prover . + +CMD ["/raiko-nitro/nitro-prover"] diff --git a/provers/nitro/nitro-prover/build.rs b/provers/nitro/nitro-prover/build.rs new file mode 100644 index 000000000..f6c1c4f80 --- /dev/null +++ b/provers/nitro/nitro-prover/build.rs @@ -0,0 +1,14 @@ +use raiko_lib::signature::generate_key; +use std::{env::var, fs::write, path::PathBuf}; + +const SECRET_NAME: &str = "secret.key"; + +fn main() { + println!("Generating KP"); + let mut out_dir = PathBuf::from(var("CARGO_MANIFEST_DIR").unwrap()); + out_dir.push(SECRET_NAME); + let kp = generate_key(); + println!("Writing secret to file {}", &out_dir.to_string_lossy()); + write(out_dir, hex::encode(kp.secret_bytes()).as_bytes()).unwrap(); + println!("Done"); +} diff --git a/provers/nitro/nitro-prover/fixtures/block1.json b/provers/nitro/nitro-prover/fixtures/block1.json new file mode 100644 index 000000000..d55eed366 --- /dev/null +++ b/provers/nitro/nitro-prover/fixtures/block1.json @@ -0,0 +1,8 @@ +{ + "data": { + "output": null, + "proof": "5b3133322c36382c3136312c312c35362c33342c3136302c38392c31372c36392c3136392c3130352c3130392c3131312c3130302c3131372c3130382c3130312c39352c3130352c3130302c3132302c33392c3130352c34352c34382c35362c39372c39382c3130312c34382c3130312c39382c3130312c35322c34392c3130322c3130312c39382c35302c3130302c39392c34352c3130312c3131302c39392c34382c34392c35372c34382c35332c39382c3130322c35312c3130312c35362c35362c39372c35372c39392c35362c35362c3130322c3130302c3130352c3130332c3130312c3131352c3131362c3130322c38332c37322c36352c35312c35362c35322c3130352c3131362c3130352c3130392c3130312c3131352c3131362c39372c3130392c3131322c32372c302c302c312c3134342c39352c3230302c3233372c3135342c3130302c3131322c39392c3131342c3131352c3137362c302c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c312c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c322c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c332c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c342c38382c34382c3136322c3232342c3138342c3130372c3235312c31362c3136302c3135352c3132382c33352c3130392c34322c3233382c3130352c37352c3133382c34322c3130322c3233392c3130362c3235322c3231302c3136332c36322c39392c3230372c3135352c3234382c33322c3234302c35382c3133392c3233332c3139372c3235322c35382c3137362c34332c3134312c382c3132362c35352c3231332c3137392c36362c3139342c38372c32302c352c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c362c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c372c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c382c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c392c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c31302c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c31312c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c31322c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c31332c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c31342c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c31352c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c3130372c39392c3130312c3131342c3131362c3130352c3130322c3130352c39392c39372c3131362c3130312c38392c322c3132372c34382c3133302c322c3132332c34382c3133302c322c312c3136302c332c322c312c322c322c31362c312c3134342c39312c3234332c3233322c3133382c3135362c3133362c302c302c302c302c3130322c3132362c3233352c3139332c34382c31302c362c382c34322c3133342c37322c3230362c36312c342c332c332c34382c3132392c3134322c34392c31312c34382c392c362c332c38352c342c362c31392c322c38352c38332c34392c31392c34382c31372c362c332c38352c342c382c31322c31302c38372c39372c3131352c3130342c3130352c3131302c3130332c3131362c3131312c3131302c34392c31362c34382c31342c362c332c38352c342c372c31322c372c38332c3130312c39372c3131362c3131362c3130382c3130312c34392c31352c34382c31332c362c332c38352c342c31302c31322c362c36352c3130392c39372c3132322c3131312c3131302c34392c31322c34382c31302c362c332c38352c342c31312c31322c332c36352c38372c38332c34392c35372c34382c35352c362c332c38352c342c332c31322c34382c3130352c34352c34382c35362c39372c39382c3130312c34382c3130312c39382c3130312c35322c34392c3130322c3130312c39382c35302c3130302c39392c34362c3131372c3131352c34352c3130312c39372c3131352c3131362c34352c35302c34362c39372c3131392c3131352c34362c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34382c33302c32332c31332c35302c35322c34382c35342c35302c35362c34392c35342c35332c35362c35312c35362c39302c32332c31332c35302c35322c34382c35342c35302c35362c34392c35372c35332c35362c35322c34392c39302c34382c3132392c3134372c34392c31312c34382c392c362c332c38352c342c362c31392c322c38352c38332c34392c31392c34382c31372c362c332c38352c342c382c31322c31302c38372c39372c3131352c3130342c3130352c3131302c3130332c3131362c3131312c3131302c34392c31362c34382c31342c362c332c38352c342c372c31322c372c38332c3130312c39372c3131362c3131362c3130382c3130312c34392c31352c34382c31332c362c332c38352c342c31302c31322c362c36352c3130392c39372c3132322c3131312c3131302c34392c31322c34382c31302c362c332c38352c342c31312c31322c332c36352c38372c38332c34392c36322c34382c36302c362c332c38352c342c332c31322c35332c3130352c34352c34382c35362c39372c39382c3130312c34382c3130312c39382c3130312c35322c34392c3130322c3130312c39382c35302c3130302c39392c34352c3130312c3131302c39392c34382c34392c35372c34382c35332c39382c3130322c35312c3130312c35362c35362c39372c35372c39392c35362c35362c34362c3131372c3131352c34352c3130312c39372c3131352c3131362c34352c35302c34362c39372c3131392c3131352c34382c3131382c34382c31362c362c372c34322c3133342c37322c3230362c36312c322c312c362c352c34332c3132392c342c302c33342c332c39382c302c342c34352c3138392c3138392c3139372c35312c38352c3137392c3133302c38312c3138332c3234382c3131362c3137342c34352c3133392c3232322c3234302c3138362c3138332c3230382c3134332c31392c33362c3233392c3231332c36362c3132322c32312c3139382c3233382c3232352c34352c3132332c3131352c3138302c35352c3233372c3231302c34392c3139382c3139362c36362c34372c35332c33312c3230352c3230312c3134322c3138332c36362c3139392c3138382c31332c33362c3235352c34322c3135362c362c3135392c3131392c34312c3230322c3231302c38312c3137382c3134352c3132332c33352c3232332c3133312c3234382c3233322c3234372c32382c37332c3232392c32372c3133332c3132342c3139342c3131362c3232362c35382c37382c3135362c3134352c3136342c36352c36352c38332c3234352c38392c3233352c34382c31312c37392c3136332c32392c34382c32372c34382c31322c362c332c38352c32392c31392c312c312c3235352c342c322c34382c302c34382c31312c362c332c38352c32392c31352c342c342c332c322c362c3139322c34382c31302c362c382c34322c3133342c37322c3230362c36312c342c332c332c332c3130342c302c34382c3130312c322c34382c31312c3132362c36302c3231312c38332c3131332c39342c3132372c36382c3138302c38312c35322c33342c3134382c3132372c3139302c342c3231352c3135342c3233382c3139322c3133312c3133312c37322c3133342c3131322c3130302c342c3138342c35322c342c3133352c32342c3133302c32382c3135372c3135362c3134312c36372c3135392c3130312c3231382c3130342c3234382c3133362c3139322c3232382c3132392c322c34392c302c3233372c38392c352c3138382c392c32312c3131332c31312c3230302c38382c3138312c3233302c3134312c39322c3235342c3131312c34352c3137382c3139322c39352c3138322c32372c382c342c3234332c3235322c3130382c3135362c36352c3134342c3233392c3132382c36352c3230392c3130302c3130372c31352c31342c3138342c3139362c36392c3136382c3235342c3233362c382c3138322c3130322c3138382c3130342c39392c39372c39382c3131372c3131302c3130302c3130382c3130312c3133322c38392c322c32312c34382c3133302c322c31372c34382c3133302c312c3135302c3136302c332c322c312c322c322c31372c302c3234392c34392c3131372c3130342c32372c3134342c3137352c3232352c32392c37302c3230342c3138302c3232382c3233312c3234382c38362c34382c31302c362c382c34322c3133342c37322c3230362c36312c342c332c332c34382c37332c34392c31312c34382c392c362c332c38352c342c362c31392c322c38352c38332c34392c31352c34382c31332c362c332c38352c342c31302c31322c362c36352c3130392c39372c3132322c3131312c3131302c34392c31322c34382c31302c362c332c38352c342c31312c31322c332c36352c38372c38332c34392c32372c34382c32352c362c332c38352c342c332c31322c31382c39372c3131392c3131352c34362c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34382c33302c32332c31332c34392c35372c34392c34382c35302c35362c34392c35312c35302c35362c34382c35332c39302c32332c31332c35322c35372c34392c34382c35302c35362c34392c35322c35302c35362c34382c35332c39302c34382c37332c34392c31312c34382c392c362c332c38352c342c362c31392c322c38352c38332c34392c31352c34382c31332c362c332c38352c342c31302c31322c362c36352c3130392c39372c3132322c3131312c3131302c34392c31322c34382c31302c362c332c38352c342c31312c31322c332c36352c38372c38332c34392c32372c34382c32352c362c332c38352c342c332c31322c31382c39372c3131392c3131352c34362c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34382c3131382c34382c31362c362c372c34322c3133342c37322c3230362c36312c322c312c362c352c34332c3132392c342c302c33342c332c39382c302c342c3235322c322c38342c3233352c3136362c382c3139332c3234332c3130342c3131322c3232362c3135342c3231382c3134342c3139302c37302c35362c35302c3134362c3131352c3131302c3133372c37352c3235352c3234362c3131342c3231372c3133372c36382c37352c38302c38312c3232392c35322c3136342c3137372c3234362c3231392c3232372c3139322c3138382c38382c32362c35302c3138332c3137372c3131382c372c31342c3232322c31382c3231342c3135342c36332c3233342c33332c32372c3130322c3233312c38322c3230372c3132352c3230392c3232312c392c39352c3131312c31392c3131322c3234342c32332c382c36372c3231372c3232302c31362c312c33332c3232382c3230372c39392c312c34302c392c3130322c36382c3133352c3230312c3132312c39382c3133322c34382c37372c3139372c36332c3234342c3136332c36362c34382c36342c34382c31352c362c332c38352c32392c31392c312c312c3235352c342c352c34382c332c312c312c3235352c34382c32392c362c332c38352c32392c31342c342c32322c342c32302c3134342c33372c3138312c31332c3231372c352c37312c3233312c3135302c3139352c3135302c3235302c3131342c3135372c3230372c3135332c3136392c3232332c37352c3135302c34382c31342c362c332c38352c32392c31352c312c312c3235352c342c342c332c322c312c3133342c34382c31302c362c382c34322c3133342c37322c3230362c36312c342c332c332c332c3130352c302c34382c3130322c322c34392c302c3136332c3132372c34372c3134352c3136312c3230312c3138392c39342c3233312c3138342c39382c3132342c32322c3135322c3231302c38352c332c3134322c33312c332c36372c3234392c39312c39392c3136392c39382c3134302c36312c35372c3132382c3134392c36392c3136312c33302c3138382c3139312c34362c35392c38352c3231362c3137342c3233382c3131332c3138302c3139352c3231342c3137332c3234332c322c34392c302c3136322c3234332c3135352c32322c352c3137382c3131322c34302c3136352c3232312c37352c3136302c3130352c3138312c312c3131302c3130312c3138302c3235312c3232322c3134332c3232342c362c32392c3130362c38332c32352c3132372c3135362c3231382c3234352c3231372c36372c3138382c39372c3235322c34332c3233352c332c3230332c3131312c3233382c3134312c33352c322c3234332c3232332c3234362c38392c322c3139352c34382c3133302c322c3139312c34382c3133302c322c36382c3136302c332c322c312c322c322c31362c342c3233392c3139342c3235322c3137332c31312c3233362c3137312c3137312c34312c32352c37342c38352c3130352c36392c3234362c34382c31302c362c382c34322c3133342c37322c3230362c36312c342c332c332c34382c37332c34392c31312c34382c392c362c332c38352c342c362c31392c322c38352c38332c34392c31352c34382c31332c362c332c38352c342c31302c31322c362c36352c3130392c39372c3132322c3131312c3131302c34392c31322c34382c31302c362c332c38352c342c31312c31322c332c36352c38372c38332c34392c32372c34382c32352c362c332c38352c342c332c31322c31382c39372c3131392c3131352c34362c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34382c33302c32332c31332c35302c35322c34382c35342c35302c35342c34382c35362c35302c34382c35332c35372c39302c32332c31332c35302c35322c34382c35352c34392c35342c34382c35372c35302c34382c35332c35372c39302c34382c3130302c34392c31312c34382c392c362c332c38352c342c362c31392c322c38352c38332c34392c31352c34382c31332c362c332c38352c342c31302c31322c362c36352c3130392c39372c3132322c3131312c3131302c34392c31322c34382c31302c362c332c38352c342c31312c31322c332c36352c38372c38332c34392c35342c34382c35322c362c332c38352c342c332c31322c34352c35332c3130312c35372c39382c35312c34382c35312c35302c3130322c39382c35362c35372c34392c35332c35332c39392c34362c3131372c3131352c34352c3130312c39372c3131352c3131362c34352c35302c34362c39372c3131392c3131352c34362c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34382c3131382c34382c31362c362c372c34322c3133342c37322c3230362c36312c322c312c362c352c34332c3132392c342c302c33342c332c39382c302c342c3131332c3231312c3130382c3232372c34312c3130362c3135392c3131342c3138302c3233312c38322c33362c3231362c39392c39392c33332c39372c35322c3230392c3131312c3131342c3230332c3137302c39302c32352c3132322c34382c3131372c3135372c3132362c35302c3135352c3131302c3235332c3231312c3136382c3137382c35352c39382c3234372c35312c37392c3130362c35312c3135392c3132372c3131392c3133302c31392c36322c3232312c35322c3137322c342c3133362c3136372c3233322c3138332c3131372c3235322c3235312c3133312c3131362c3130392c33322c3233312c3135342c3235312c33312c3230312c3230382c34392c3134342c312c3136302c3138322c35322c3136352c39312c3133342c3232312c3232302c3130332c3233392c3231352c3130382c3233342c3233312c31332c3135332c3138362c33362c3135352c3130312c38352c3133302c3136332c3132392c3231332c34382c3132392c3231302c34382c31382c362c332c38352c32392c31392c312c312c3235352c342c382c34382c362c312c312c3235352c322c312c322c34382c33312c362c332c38352c32392c33352c342c32342c34382c32322c3132382c32302c3134342c33372c3138312c31332c3231372c352c37312c3233312c3135302c3139352c3135302c3235302c3131342c3135372c3230372c3135332c3136392c3232332c37352c3135302c34382c32392c362c332c38352c32392c31342c342c32322c342c32302c3135312c3130392c32352c3230352c3234322c3139382c3132332c37312c34382c3132322c3131342c3136392c37332c31342c3235342c31362c35372c3137392c3135312c3135362c34382c31342c362c332c38352c32392c31352c312c312c3235352c342c342c332c322c312c3133342c34382c3130382c362c332c38352c32392c33312c342c3130312c34382c39392c34382c39372c3136302c39352c3136302c39332c3133342c39312c3130342c3131362c3131362c3131322c35382c34372c34372c39372c3131392c3131352c34352c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34352c39392c3131342c3130382c34362c3131352c35312c34362c39372c3130392c39372c3132322c3131312c3131302c39372c3131392c3131352c34362c39392c3131312c3130392c34372c39392c3131342c3130382c34372c39372c39382c35322c35372c35342c34382c39392c39392c34352c35352c3130302c35342c35312c34352c35322c35302c39382c3130302c34352c35372c3130312c35372c3130322c34352c35332c35372c35312c35312c35362c39392c39382c35342c35352c3130322c35362c35322c34362c39392c3131342c3130382c34382c31302c362c382c34322c3133342c37322c3230362c36312c342c332c332c332c3130352c302c34382c3130322c322c34392c302c3139372c3133322c3135382c36382c35302c33372c3136322c382c33392c3138352c33372c31312c3231372c35332c3135332c3133322c3234372c3138322c3132372c3131392c3130392c3231362c3133352c3234322c3135312c35322c3232382c3132352c3232322c34332c3130382c35352c3137302c31372c3134342c39352c3235302c3137382c3136302c3135362c3130362c38392c3131372c3137372c36312c39342c35352c37362c322c34392c302c3234372c3137392c3139342c3131372c36392c36322c3230382c3134382c36382c3230342c3134332c3133342c3230302c3232322c39322c33322c3132302c36382c33352c3233342c3230302c3232312c3130392c3233392c37302c3230302c3234342c3131302c332c342c3136312c36392c3131302c38322c3132342c35342c3133372c3235312c3230322c39352c382c3137302c3134362c3231352c3231312c3232322c36332c3233322c38392c332c32362c34382c3133302c332c32322c34382c3133302c322c3135352c3136302c332c322c312c322c322c31372c302c3134362c3134362c3131352c3232372c3233362c3233332c39382c3233372c362c3133372c3139302c3130352c38372c31312c3230392c3233392c34382c31302c362c382c34322c3133342c37322c3230362c36312c342c332c332c34382c3130302c34392c31312c34382c392c362c332c38352c342c362c31392c322c38352c38332c34392c31352c34382c31332c362c332c38352c342c31302c31322c362c36352c3130392c39372c3132322c3131312c3131302c34392c31322c34382c31302c362c332c38352c342c31312c31322c332c36352c38372c38332c34392c35342c34382c35322c362c332c38352c342c332c31322c34352c35332c3130312c35372c39382c35312c34382c35312c35302c3130322c39382c35362c35372c34392c35332c35332c39392c34362c3131372c3131352c34352c3130312c39372c3131352c3131362c34352c35302c34362c39372c3131392c3131352c34362c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34382c33302c32332c31332c35302c35322c34382c35342c35302c35362c34382c35332c35332c35302c35312c35342c39302c32332c31332c35302c35322c34382c35352c34382c35322c34382c35312c35332c35302c35312c35332c39302c34382c3132392c3133372c34392c36302c34382c35382c362c332c38352c342c332c31322c35312c35332c34392c39392c35302c3130312c39382c3130312c34392c3130302c35322c3130322c3130302c3130312c39382c35332c35342c34362c3132322c3131312c3131302c39372c3130382c34362c3131372c3131352c34352c3130312c39372c3131352c3131362c34352c35302c34362c39372c3131392c3131352c34362c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34392c31322c34382c31302c362c332c38352c342c31312c31322c332c36352c38372c38332c34392c31352c34382c31332c362c332c38352c342c31302c31322c362c36352c3130392c39372c3132322c3131312c3131302c34392c31312c34382c392c362c332c38352c342c362c31392c322c38352c38332c34392c31312c34382c392c362c332c38352c342c382c31322c322c38372c36352c34392c31362c34382c31342c362c332c38352c342c372c31322c372c38332c3130312c39372c3131362c3131362c3130382c3130312c34382c3131382c34382c31362c362c372c34322c3133342c37322c3230362c36312c322c312c362c352c34332c3132392c342c302c33342c332c39382c302c342c3136342c3131382c3232382c36372c3230302c36362c3133392c3132372c3135372c3232332c36332c34352c3131302c3135382c3232332c3132302c3135312c3232372c3230322c3138312c3133392c3135362c31372c38312c36372c3132382c31322c3135382c37302c3235322c32352c312c34352c37382c3139302c3232332c3233392c31312c3136382c34372c38352c3135392c39332c3130332c3230312c37312c33392c35352c32372c39382c3131382c31392c38352c372c3137332c37382c3134372c3233352c3137382c3230372c31332c3136342c3134392c3235342c34362c38352c3232362c31322c3139322c3233382c34352c35352c38302c3131372c37352c3233352c34342c33312c3135352c32352c38332c3131362c34302c3130352c32352c37322c3232342c32332c35322c36392c3133372c38332c35382c3133322c3132312c3231302c3136332c3132392c3233342c34382c3132392c3233312c34382c31382c362c332c38352c32392c31392c312c312c3235352c342c382c34382c362c312c312c3235352c322c312c312c34382c33312c362c332c38352c32392c33352c342c32342c34382c32322c3132382c32302c3135312c3130392c32352c3230352c3234322c3139382c3132332c37312c34382c3132322c3131342c3136392c37332c31342c3235342c31362c35372c3137392c3135312c3135362c34382c32392c362c332c38352c32392c31342c342c32322c342c32302c3234332c31302c3139322c3134352c3137392c39352c3138392c3138342c3138352c3131392c3230362c3231352c32352c3134322c31312c3138342c35312c34352c3132342c3135332c34382c31342c362c332c38352c32392c31352c312c312c3235352c342c342c332c322c312c3133342c34382c3132392c3132382c362c332c38352c32392c33312c342c3132312c34382c3131392c34382c3131372c3136302c3131352c3136302c3131332c3133342c3131312c3130342c3131362c3131362c3131322c35382c34372c34372c39392c3131342c3130382c34352c3131372c3131352c34352c3130312c39372c3131352c3131362c34352c35302c34352c39372c3131392c3131352c34352c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34362c3131352c35312c34362c3131372c3131352c34352c3130312c39372c3131352c3131362c34352c35302c34362c39372c3130392c39372c3132322c3131312c3131302c39372c3131392c3131352c34362c39392c3131312c3130392c34372c39392c3131342c3130382c34372c35332c35332c35312c35342c39382c35352c35322c3130322c34352c3130322c35352c3130312c35312c34352c35322c35332c35322c35352c34352c39382c3130322c35312c39372c34352c35372c35322c35352c39392c34382c35362c35322c35372c3130312c35372c35372c39392c34362c39392c3131342c3130382c34382c31302c362c382c34322c3133342c37322c3230362c36312c342c332c332c332c3130352c302c34382c3130322c322c34392c302c3139322c35392c35302c3131382c3138382c3233382c3231332c32362c35372c3134372c3137312c3234322c3139382c3233302c3131332c39302c3230322c3231392c3130302c3130322c34392c3235302c3136342c38302c3133372c3138372c3137352c332c3137362c3134312c3232312c34392c3139302c3230332c39302c3133392c34392c3137302c39352c3139302c31322c3133312c3135372c3137352c33382c33392c3230372c34332c322c34392c302c3233382c3137352c36382c392c34312c3231352c3139342c3133392c3230352c39312c3131302c33302c3231352c3134392c36362c3234332c3134342c34382c35322c3130302c3134302c37392c38352c35392c3230352c3137302c3234302c3231332c3231372c3133302c3130332c3130362c31302c3132312c3137352c33352c3130392c3232302c3137302c3135342c3136302c36352c38342c36322c38342c3235332c3138372c3231332c38392c322c3133302c34382c3133302c322c3132362c34382c3133302c322c342c3136302c332c322c312c322c322c32302c34302c39392c38302c3135372c3132392c36342c3134392c31312c3230322c3133302c35352c3233312c3133382c3130352c36362c3231352c3133362c36362c36332c35382c34382c31302c362c382c34322c3133342c37322c3230362c36312c342c332c332c34382c3132392c3133372c34392c36302c34382c35382c362c332c38352c342c332c31322c35312c35332c34392c39392c35302c3130312c39382c3130312c34392c3130302c35322c3130322c3130302c3130312c39382c35332c35342c34362c3132322c3131312c3131302c39372c3130382c34362c3131372c3131352c34352c3130312c39372c3131352c3131362c34352c35302c34362c39372c3131392c3131352c34362c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34392c31322c34382c31302c362c332c38352c342c31312c31322c332c36352c38372c38332c34392c31352c34382c31332c362c332c38352c342c31302c31322c362c36352c3130392c39372c3132322c3131312c3131302c34392c31312c34382c392c362c332c38352c342c362c31392c322c38352c38332c34392c31312c34382c392c362c332c38352c342c382c31322c322c38372c36352c34392c31362c34382c31342c362c332c38352c342c372c31322c372c38332c3130312c39372c3131362c3131362c3130382c3130312c34382c33302c32332c31332c35302c35322c34382c35342c35302c35362c34382c35342c35332c35312c34392c35342c39302c32332c31332c35302c35322c34382c35342c35302c35372c34382c35342c35332c35312c34392c35342c39302c34382c3132392c3134322c34392c31312c34382c392c362c332c38352c342c362c31392c322c38352c38332c34392c31392c34382c31372c362c332c38352c342c382c31322c31302c38372c39372c3131352c3130342c3130352c3131302c3130332c3131362c3131312c3131302c34392c31362c34382c31342c362c332c38352c342c372c31322c372c38332c3130312c39372c3131362c3131362c3130382c3130312c34392c31352c34382c31332c362c332c38352c342c31302c31322c362c36352c3130392c39372c3132322c3131312c3131302c34392c31322c34382c31302c362c332c38352c342c31312c31322c332c36352c38372c38332c34392c35372c34382c35352c362c332c38352c342c332c31322c34382c3130352c34352c34382c35362c39372c39382c3130312c34382c3130312c39382c3130312c35322c34392c3130322c3130312c39382c35302c3130302c39392c34362c3131372c3131352c34352c3130312c39372c3131352c3131362c34352c35302c34362c39372c3131392c3131352c34362c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34382c3131382c34382c31362c362c372c34322c3133342c37322c3230362c36312c322c312c362c352c34332c3132392c342c302c33342c332c39382c302c342c38372c3231312c3130342c31362c34392c3233392c3132382c3139362c38392c3233362c3136372c31342c3230332c3234362c372c3136362c38332c3233392c3130352c332c3138352c392c3139342c3139342c34312c33362c32322c372c3137332c3233322c3132322c32322c33392c3231392c31392c3234332c3133362c3135392c3130342c3231362c37362c3234382c39392c3131372c3137372c3132372c3231392c3132342c35302c3230352c3137382c3133322c31302c3130342c3139302c38302c3235352c3131302c34302c33352c38342c3135312c372c32382c36382c3139342c3138302c3132392c3135352c3234392c3134382c36352c3231362c37372c38332c34392c3231312c3136342c38332c3135382c3134352c38392c32332c3137382c39352c3138352c3130362c3132342c36362c3230312c37372c3135392c3235332c36342c3231372c31322c3136332c33382c34382c33362c34382c31382c362c332c38352c32392c31392c312c312c3235352c342c382c34382c362c312c312c3235352c322c312c302c34382c31342c362c332c38352c32392c31352c312c312c3235352c342c342c332c322c322c342c34382c31302c362c382c34322c3133342c37322c3230362c36312c342c332c332c332c3130342c302c34382c3130312c322c34382c34342c37322c38312c3131352c33392c3231382c3233362c32372c3232332c39352c3233302c3233322c3235352c36362c31382c3230392c3136312c3233362c32382c3136342c34302c35392c3231372c3232332c34332c3136372c3130372c3133382c342c33332c3232352c3230382c3138362c3136382c3138392c32372c3235312c3230362c3137312c3138392c3231332c33362c3139372c3138332c31332c362c38352c3133382c322c34392c302c3139322c3132312c32352c39342c3136332c3139332c3131332c32382c3139312c3134312c3233362c3137352c3133312c3133312c38372c39302c3132332c3135322c35312c3233382c3234342c34392c3231362c3136352c3233362c3232372c3135342c3136382c38362c3139372c3138372c38392c3135362c3137302c36332c3231302c382c312c34322c3137372c3139302c37342c3137342c3235322c3231352c3139322c35382c38302c3130362c3131322c3131372c39382c3130382c3130352c39392c39352c3130372c3130312c3132312c38382c36352c342c39382c3135362c3231362c32322c3135372c34312c3233372c36392c302c3132322c3136352c3234342c3139312c35322c36392c33332c3139372c34302c3138382c37382c34382c3136392c34352c3134352c3233342c31312c3136342c33302c3134322c3230342c3235352c34302c39362c3136322c3139312c3136332c32352c3136342c3139362c38342c3232362c35352c32312c3134372c3231322c3137362c39342c33332c39332c3230362c35372c3139312c32342c3136302c3139322c37312c3132372c3134322c35342c31302c3133302c3134332c33342c3130372c3130352c3131372c3131352c3130312c3131342c39352c3130302c39372c3131362c39372c38382c36352c32332c3133352c32322c36382c3133352c3136322c3132372c3132372c37382c31332c34382c3138382c3130372c3231362c3137332c3139392c3134322c3131342c3139332c35342c3232372c33312c3232312c3139322c3136302c35372c31302c3230332c35332c3233392c37372c32332c3130342c3136392c3232332c39362c3230352c37342c32312c3134302c32302c3234312c3133312c3137342c3131322c3232372c34392c3134302c31362c37352c3138302c3133392c34342c3134342c3137322c3131342c39392c3137362c3135382c3139362c3135372c3233322c37372c33362c32382c3130312c3131302c3131312c3131302c39392c3130312c3234362c38382c39362c3137392c3232312c3132312c3139342c38312c3135312c3133342c32362c39382c34362c3137312c3130392c32322c36352c3139382c34372c37322c3233392c33382c33342c3230392c34322c34382c3132322c3232322c31352c3131352c34302c3132342c37362c3138312c32362c3130362c3235352c3131312c38342c35372c32372c3132342c37372c3138392c352c3137372c3130382c3137302c31332c38372c3234392c33382c3132362c3132392c34382c31352c3231312c3137382c3230392c3231332c31372c392c3139332c3231312c3231312c3233362c3134332c3234332c3131382c382c33352c3135312c3234372c3231342c3133362c3132392c3131322c3235352c3134352c34352c3230332c32352c3132352c31372c3134382c3133332c34352c3131342c35382c3231372c3131392c3133352c3131382c3139302c3233352c3138382c39322c37342c3131315d", + "quote": null + }, + "status": "ok" +} \ No newline at end of file diff --git a/provers/nitro/nitro-prover/fixtures/block2.json b/provers/nitro/nitro-prover/fixtures/block2.json new file mode 100644 index 000000000..1ffeea385 --- /dev/null +++ b/provers/nitro/nitro-prover/fixtures/block2.json @@ -0,0 +1,8 @@ +{ + "data": { + "output": null, + "proof": "5b3133322c36382c3136312c312c35362c33342c3136302c38392c31372c36392c3136392c3130352c3130392c3131312c3130302c3131372c3130382c3130312c39352c3130352c3130302c3132302c33392c3130352c34352c34382c35362c39372c39382c3130312c34382c3130312c39382c3130312c35322c34392c3130322c3130312c39382c35302c3130302c39392c34352c3130312c3131302c39392c34382c34392c35372c34382c35332c39382c3130322c35312c3130312c35362c35362c39372c35372c39392c35362c35362c3130322c3130302c3130352c3130332c3130312c3131352c3131362c3130322c38332c37322c36352c35312c35362c35322c3130352c3131362c3130352c3130392c3130312c3131352c3131362c39372c3130392c3131322c32372c302c302c312c3134342c39352c3230312c3137312c3138382c3130302c3131322c39392c3131342c3131352c3137362c302c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c312c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c322c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c332c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c342c38382c34382c3136322c3232342c3138342c3130372c3235312c31362c3136302c3135352c3132382c33352c3130392c34322c3233382c3130352c37352c3133382c34322c3130322c3233392c3130362c3235322c3231302c3136332c36322c39392c3230372c3135352c3234382c33322c3234302c35382c3133392c3233332c3139372c3235322c35382c3137362c34332c3134312c382c3132362c35352c3231332c3137392c36362c3139342c38372c32302c352c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c362c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c372c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c382c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c392c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c31302c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c31312c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c31322c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c31332c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c31342c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c31352c38382c34382c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c302c3130372c39392c3130312c3131342c3131362c3130352c3130322c3130352c39392c39372c3131362c3130312c38392c322c3132372c34382c3133302c322c3132332c34382c3133302c322c312c3136302c332c322c312c322c322c31362c312c3134342c39312c3234332c3233322c3133382c3135362c3133362c302c302c302c302c3130322c3132362c3233352c3139332c34382c31302c362c382c34322c3133342c37322c3230362c36312c342c332c332c34382c3132392c3134322c34392c31312c34382c392c362c332c38352c342c362c31392c322c38352c38332c34392c31392c34382c31372c362c332c38352c342c382c31322c31302c38372c39372c3131352c3130342c3130352c3131302c3130332c3131362c3131312c3131302c34392c31362c34382c31342c362c332c38352c342c372c31322c372c38332c3130312c39372c3131362c3131362c3130382c3130312c34392c31352c34382c31332c362c332c38352c342c31302c31322c362c36352c3130392c39372c3132322c3131312c3131302c34392c31322c34382c31302c362c332c38352c342c31312c31322c332c36352c38372c38332c34392c35372c34382c35352c362c332c38352c342c332c31322c34382c3130352c34352c34382c35362c39372c39382c3130312c34382c3130312c39382c3130312c35322c34392c3130322c3130312c39382c35302c3130302c39392c34362c3131372c3131352c34352c3130312c39372c3131352c3131362c34352c35302c34362c39372c3131392c3131352c34362c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34382c33302c32332c31332c35302c35322c34382c35342c35302c35362c34392c35342c35332c35362c35312c35362c39302c32332c31332c35302c35322c34382c35342c35302c35362c34392c35372c35332c35362c35322c34392c39302c34382c3132392c3134372c34392c31312c34382c392c362c332c38352c342c362c31392c322c38352c38332c34392c31392c34382c31372c362c332c38352c342c382c31322c31302c38372c39372c3131352c3130342c3130352c3131302c3130332c3131362c3131312c3131302c34392c31362c34382c31342c362c332c38352c342c372c31322c372c38332c3130312c39372c3131362c3131362c3130382c3130312c34392c31352c34382c31332c362c332c38352c342c31302c31322c362c36352c3130392c39372c3132322c3131312c3131302c34392c31322c34382c31302c362c332c38352c342c31312c31322c332c36352c38372c38332c34392c36322c34382c36302c362c332c38352c342c332c31322c35332c3130352c34352c34382c35362c39372c39382c3130312c34382c3130312c39382c3130312c35322c34392c3130322c3130312c39382c35302c3130302c39392c34352c3130312c3131302c39392c34382c34392c35372c34382c35332c39382c3130322c35312c3130312c35362c35362c39372c35372c39392c35362c35362c34362c3131372c3131352c34352c3130312c39372c3131352c3131362c34352c35302c34362c39372c3131392c3131352c34382c3131382c34382c31362c362c372c34322c3133342c37322c3230362c36312c322c312c362c352c34332c3132392c342c302c33342c332c39382c302c342c34352c3138392c3138392c3139372c35312c38352c3137392c3133302c38312c3138332c3234382c3131362c3137342c34352c3133392c3232322c3234302c3138362c3138332c3230382c3134332c31392c33362c3233392c3231332c36362c3132322c32312c3139382c3233382c3232352c34352c3132332c3131352c3138302c35352c3233372c3231302c34392c3139382c3139362c36362c34372c35332c33312c3230352c3230312c3134322c3138332c36362c3139392c3138382c31332c33362c3235352c34322c3135362c362c3135392c3131392c34312c3230322c3231302c38312c3137382c3134352c3132332c33352c3232332c3133312c3234382c3233322c3234372c32382c37332c3232392c32372c3133332c3132342c3139342c3131362c3232362c35382c37382c3135362c3134352c3136342c36352c36352c38332c3234352c38392c3233352c34382c31312c37392c3136332c32392c34382c32372c34382c31322c362c332c38352c32392c31392c312c312c3235352c342c322c34382c302c34382c31312c362c332c38352c32392c31352c342c342c332c322c362c3139322c34382c31302c362c382c34322c3133342c37322c3230362c36312c342c332c332c332c3130342c302c34382c3130312c322c34382c31312c3132362c36302c3231312c38332c3131332c39342c3132372c36382c3138302c38312c35322c33342c3134382c3132372c3139302c342c3231352c3135342c3233382c3139322c3133312c3133312c37322c3133342c3131322c3130302c342c3138342c35322c342c3133352c32342c3133302c32382c3135372c3135362c3134312c36372c3135392c3130312c3231382c3130342c3234382c3133362c3139322c3232382c3132392c322c34392c302c3233372c38392c352c3138382c392c32312c3131332c31312c3230302c38382c3138312c3233302c3134312c39322c3235342c3131312c34352c3137382c3139322c39352c3138322c32372c382c342c3234332c3235322c3130382c3135362c36352c3134342c3233392c3132382c36352c3230392c3130302c3130372c31352c31342c3138342c3139362c36392c3136382c3235342c3233362c382c3138322c3130322c3138382c3130342c39392c39372c39382c3131372c3131302c3130302c3130382c3130312c3133322c38392c322c32312c34382c3133302c322c31372c34382c3133302c312c3135302c3136302c332c322c312c322c322c31372c302c3234392c34392c3131372c3130342c32372c3134342c3137352c3232352c32392c37302c3230342c3138302c3232382c3233312c3234382c38362c34382c31302c362c382c34322c3133342c37322c3230362c36312c342c332c332c34382c37332c34392c31312c34382c392c362c332c38352c342c362c31392c322c38352c38332c34392c31352c34382c31332c362c332c38352c342c31302c31322c362c36352c3130392c39372c3132322c3131312c3131302c34392c31322c34382c31302c362c332c38352c342c31312c31322c332c36352c38372c38332c34392c32372c34382c32352c362c332c38352c342c332c31322c31382c39372c3131392c3131352c34362c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34382c33302c32332c31332c34392c35372c34392c34382c35302c35362c34392c35312c35302c35362c34382c35332c39302c32332c31332c35322c35372c34392c34382c35302c35362c34392c35322c35302c35362c34382c35332c39302c34382c37332c34392c31312c34382c392c362c332c38352c342c362c31392c322c38352c38332c34392c31352c34382c31332c362c332c38352c342c31302c31322c362c36352c3130392c39372c3132322c3131312c3131302c34392c31322c34382c31302c362c332c38352c342c31312c31322c332c36352c38372c38332c34392c32372c34382c32352c362c332c38352c342c332c31322c31382c39372c3131392c3131352c34362c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34382c3131382c34382c31362c362c372c34322c3133342c37322c3230362c36312c322c312c362c352c34332c3132392c342c302c33342c332c39382c302c342c3235322c322c38342c3233352c3136362c382c3139332c3234332c3130342c3131322c3232362c3135342c3231382c3134342c3139302c37302c35362c35302c3134362c3131352c3131302c3133372c37352c3235352c3234362c3131342c3231372c3133372c36382c37352c38302c38312c3232392c35322c3136342c3137372c3234362c3231392c3232372c3139322c3138382c38382c32362c35302c3138332c3137372c3131382c372c31342c3232322c31382c3231342c3135342c36332c3233342c33332c32372c3130322c3233312c38322c3230372c3132352c3230392c3232312c392c39352c3131312c31392c3131322c3234342c32332c382c36372c3231372c3232302c31362c312c33332c3232382c3230372c39392c312c34302c392c3130322c36382c3133352c3230312c3132312c39382c3133322c34382c37372c3139372c36332c3234342c3136332c36362c34382c36342c34382c31352c362c332c38352c32392c31392c312c312c3235352c342c352c34382c332c312c312c3235352c34382c32392c362c332c38352c32392c31342c342c32322c342c32302c3134342c33372c3138312c31332c3231372c352c37312c3233312c3135302c3139352c3135302c3235302c3131342c3135372c3230372c3135332c3136392c3232332c37352c3135302c34382c31342c362c332c38352c32392c31352c312c312c3235352c342c342c332c322c312c3133342c34382c31302c362c382c34322c3133342c37322c3230362c36312c342c332c332c332c3130352c302c34382c3130322c322c34392c302c3136332c3132372c34372c3134352c3136312c3230312c3138392c39342c3233312c3138342c39382c3132342c32322c3135322c3231302c38352c332c3134322c33312c332c36372c3234392c39312c39392c3136392c39382c3134302c36312c35372c3132382c3134392c36392c3136312c33302c3138382c3139312c34362c35392c38352c3231362c3137342c3233382c3131332c3138302c3139352c3231342c3137332c3234332c322c34392c302c3136322c3234332c3135352c32322c352c3137382c3131322c34302c3136352c3232312c37352c3136302c3130352c3138312c312c3131302c3130312c3138302c3235312c3232322c3134332c3232342c362c32392c3130362c38332c32352c3132372c3135362c3231382c3234352c3231372c36372c3138382c39372c3235322c34332c3233352c332c3230332c3131312c3233382c3134312c33352c322c3234332c3232332c3234362c38392c322c3139352c34382c3133302c322c3139312c34382c3133302c322c36382c3136302c332c322c312c322c322c31362c342c3233392c3139342c3235322c3137332c31312c3233362c3137312c3137312c34312c32352c37342c38352c3130352c36392c3234362c34382c31302c362c382c34322c3133342c37322c3230362c36312c342c332c332c34382c37332c34392c31312c34382c392c362c332c38352c342c362c31392c322c38352c38332c34392c31352c34382c31332c362c332c38352c342c31302c31322c362c36352c3130392c39372c3132322c3131312c3131302c34392c31322c34382c31302c362c332c38352c342c31312c31322c332c36352c38372c38332c34392c32372c34382c32352c362c332c38352c342c332c31322c31382c39372c3131392c3131352c34362c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34382c33302c32332c31332c35302c35322c34382c35342c35302c35342c34382c35362c35302c34382c35332c35372c39302c32332c31332c35302c35322c34382c35352c34392c35342c34382c35372c35302c34382c35332c35372c39302c34382c3130302c34392c31312c34382c392c362c332c38352c342c362c31392c322c38352c38332c34392c31352c34382c31332c362c332c38352c342c31302c31322c362c36352c3130392c39372c3132322c3131312c3131302c34392c31322c34382c31302c362c332c38352c342c31312c31322c332c36352c38372c38332c34392c35342c34382c35322c362c332c38352c342c332c31322c34352c35332c3130312c35372c39382c35312c34382c35312c35302c3130322c39382c35362c35372c34392c35332c35332c39392c34362c3131372c3131352c34352c3130312c39372c3131352c3131362c34352c35302c34362c39372c3131392c3131352c34362c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34382c3131382c34382c31362c362c372c34322c3133342c37322c3230362c36312c322c312c362c352c34332c3132392c342c302c33342c332c39382c302c342c3131332c3231312c3130382c3232372c34312c3130362c3135392c3131342c3138302c3233312c38322c33362c3231362c39392c39392c33332c39372c35322c3230392c3131312c3131342c3230332c3137302c39302c32352c3132322c34382c3131372c3135372c3132362c35302c3135352c3131302c3235332c3231312c3136382c3137382c35352c39382c3234372c35312c37392c3130362c35312c3135392c3132372c3131392c3133302c31392c36322c3232312c35322c3137322c342c3133362c3136372c3233322c3138332c3131372c3235322c3235312c3133312c3131362c3130392c33322c3233312c3135342c3235312c33312c3230312c3230382c34392c3134342c312c3136302c3138322c35322c3136352c39312c3133342c3232312c3232302c3130332c3233392c3231352c3130382c3233342c3233312c31332c3135332c3138362c33362c3135352c3130312c38352c3133302c3136332c3132392c3231332c34382c3132392c3231302c34382c31382c362c332c38352c32392c31392c312c312c3235352c342c382c34382c362c312c312c3235352c322c312c322c34382c33312c362c332c38352c32392c33352c342c32342c34382c32322c3132382c32302c3134342c33372c3138312c31332c3231372c352c37312c3233312c3135302c3139352c3135302c3235302c3131342c3135372c3230372c3135332c3136392c3232332c37352c3135302c34382c32392c362c332c38352c32392c31342c342c32322c342c32302c3135312c3130392c32352c3230352c3234322c3139382c3132332c37312c34382c3132322c3131342c3136392c37332c31342c3235342c31362c35372c3137392c3135312c3135362c34382c31342c362c332c38352c32392c31352c312c312c3235352c342c342c332c322c312c3133342c34382c3130382c362c332c38352c32392c33312c342c3130312c34382c39392c34382c39372c3136302c39352c3136302c39332c3133342c39312c3130342c3131362c3131362c3131322c35382c34372c34372c39372c3131392c3131352c34352c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34352c39392c3131342c3130382c34362c3131352c35312c34362c39372c3130392c39372c3132322c3131312c3131302c39372c3131392c3131352c34362c39392c3131312c3130392c34372c39392c3131342c3130382c34372c39372c39382c35322c35372c35342c34382c39392c39392c34352c35352c3130302c35342c35312c34352c35322c35302c39382c3130302c34352c35372c3130312c35372c3130322c34352c35332c35372c35312c35312c35362c39392c39382c35342c35352c3130322c35362c35322c34362c39392c3131342c3130382c34382c31302c362c382c34322c3133342c37322c3230362c36312c342c332c332c332c3130352c302c34382c3130322c322c34392c302c3139372c3133322c3135382c36382c35302c33372c3136322c382c33392c3138352c33372c31312c3231372c35332c3135332c3133322c3234372c3138322c3132372c3131392c3130392c3231362c3133352c3234322c3135312c35322c3232382c3132352c3232322c34332c3130382c35352c3137302c31372c3134342c39352c3235302c3137382c3136302c3135362c3130362c38392c3131372c3137372c36312c39342c35352c37362c322c34392c302c3234372c3137392c3139342c3131372c36392c36322c3230382c3134382c36382c3230342c3134332c3133342c3230302c3232322c39322c33322c3132302c36382c33352c3233342c3230302c3232312c3130392c3233392c37302c3230302c3234342c3131302c332c342c3136312c36392c3131302c38322c3132342c35342c3133372c3235312c3230322c39352c382c3137302c3134362c3231352c3231312c3232322c36332c3233322c38392c332c32362c34382c3133302c332c32322c34382c3133302c322c3135352c3136302c332c322c312c322c322c31372c302c3134362c3134362c3131352c3232372c3233362c3233332c39382c3233372c362c3133372c3139302c3130352c38372c31312c3230392c3233392c34382c31302c362c382c34322c3133342c37322c3230362c36312c342c332c332c34382c3130302c34392c31312c34382c392c362c332c38352c342c362c31392c322c38352c38332c34392c31352c34382c31332c362c332c38352c342c31302c31322c362c36352c3130392c39372c3132322c3131312c3131302c34392c31322c34382c31302c362c332c38352c342c31312c31322c332c36352c38372c38332c34392c35342c34382c35322c362c332c38352c342c332c31322c34352c35332c3130312c35372c39382c35312c34382c35312c35302c3130322c39382c35362c35372c34392c35332c35332c39392c34362c3131372c3131352c34352c3130312c39372c3131352c3131362c34352c35302c34362c39372c3131392c3131352c34362c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34382c33302c32332c31332c35302c35322c34382c35342c35302c35362c34382c35332c35332c35302c35312c35342c39302c32332c31332c35302c35322c34382c35352c34382c35322c34382c35312c35332c35302c35312c35332c39302c34382c3132392c3133372c34392c36302c34382c35382c362c332c38352c342c332c31322c35312c35332c34392c39392c35302c3130312c39382c3130312c34392c3130302c35322c3130322c3130302c3130312c39382c35332c35342c34362c3132322c3131312c3131302c39372c3130382c34362c3131372c3131352c34352c3130312c39372c3131352c3131362c34352c35302c34362c39372c3131392c3131352c34362c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34392c31322c34382c31302c362c332c38352c342c31312c31322c332c36352c38372c38332c34392c31352c34382c31332c362c332c38352c342c31302c31322c362c36352c3130392c39372c3132322c3131312c3131302c34392c31312c34382c392c362c332c38352c342c362c31392c322c38352c38332c34392c31312c34382c392c362c332c38352c342c382c31322c322c38372c36352c34392c31362c34382c31342c362c332c38352c342c372c31322c372c38332c3130312c39372c3131362c3131362c3130382c3130312c34382c3131382c34382c31362c362c372c34322c3133342c37322c3230362c36312c322c312c362c352c34332c3132392c342c302c33342c332c39382c302c342c3136342c3131382c3232382c36372c3230302c36362c3133392c3132372c3135372c3232332c36332c34352c3131302c3135382c3232332c3132302c3135312c3232372c3230322c3138312c3133392c3135362c31372c38312c36372c3132382c31322c3135382c37302c3235322c32352c312c34352c37382c3139302c3232332c3233392c31312c3136382c34372c38352c3135392c39332c3130332c3230312c37312c33392c35352c32372c39382c3131382c31392c38352c372c3137332c37382c3134372c3233352c3137382c3230372c31332c3136342c3134392c3235342c34362c38352c3232362c31322c3139322c3233382c34352c35352c38302c3131372c37352c3233352c34342c33312c3135352c32352c38332c3131362c34302c3130352c32352c37322c3232342c32332c35322c36392c3133372c38332c35382c3133322c3132312c3231302c3136332c3132392c3233342c34382c3132392c3233312c34382c31382c362c332c38352c32392c31392c312c312c3235352c342c382c34382c362c312c312c3235352c322c312c312c34382c33312c362c332c38352c32392c33352c342c32342c34382c32322c3132382c32302c3135312c3130392c32352c3230352c3234322c3139382c3132332c37312c34382c3132322c3131342c3136392c37332c31342c3235342c31362c35372c3137392c3135312c3135362c34382c32392c362c332c38352c32392c31342c342c32322c342c32302c3234332c31302c3139322c3134352c3137392c39352c3138392c3138342c3138352c3131392c3230362c3231352c32352c3134322c31312c3138342c35312c34352c3132342c3135332c34382c31342c362c332c38352c32392c31352c312c312c3235352c342c342c332c322c312c3133342c34382c3132392c3132382c362c332c38352c32392c33312c342c3132312c34382c3131392c34382c3131372c3136302c3131352c3136302c3131332c3133342c3131312c3130342c3131362c3131362c3131322c35382c34372c34372c39392c3131342c3130382c34352c3131372c3131352c34352c3130312c39372c3131352c3131362c34352c35302c34352c39372c3131392c3131352c34352c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34362c3131352c35312c34362c3131372c3131352c34352c3130312c39372c3131352c3131362c34352c35302c34362c39372c3130392c39372c3132322c3131312c3131302c39372c3131392c3131352c34362c39392c3131312c3130392c34372c39392c3131342c3130382c34372c35332c35332c35312c35342c39382c35352c35322c3130322c34352c3130322c35352c3130312c35312c34352c35322c35332c35322c35352c34352c39382c3130322c35312c39372c34352c35372c35322c35352c39392c34382c35362c35322c35372c3130312c35372c35372c39392c34362c39392c3131342c3130382c34382c31302c362c382c34322c3133342c37322c3230362c36312c342c332c332c332c3130352c302c34382c3130322c322c34392c302c3139322c35392c35302c3131382c3138382c3233382c3231332c32362c35372c3134372c3137312c3234322c3139382c3233302c3131332c39302c3230322c3231392c3130302c3130322c34392c3235302c3136342c38302c3133372c3138372c3137352c332c3137362c3134312c3232312c34392c3139302c3230332c39302c3133392c34392c3137302c39352c3139302c31322c3133312c3135372c3137352c33382c33392c3230372c34332c322c34392c302c3233382c3137352c36382c392c34312c3231352c3139342c3133392c3230352c39312c3131302c33302c3231352c3134392c36362c3234332c3134342c34382c35322c3130302c3134302c37392c38352c35392c3230352c3137302c3234302c3231332c3231372c3133302c3130332c3130362c31302c3132312c3137352c33352c3130392c3232302c3137302c3135342c3136302c36352c38342c36322c38342c3235332c3138372c3231332c38392c322c3133302c34382c3133302c322c3132362c34382c3133302c322c342c3136302c332c322c312c322c322c32302c34302c39392c38302c3135372c3132392c36342c3134392c31312c3230322c3133302c35352c3233312c3133382c3130352c36362c3231352c3133362c36362c36332c35382c34382c31302c362c382c34322c3133342c37322c3230362c36312c342c332c332c34382c3132392c3133372c34392c36302c34382c35382c362c332c38352c342c332c31322c35312c35332c34392c39392c35302c3130312c39382c3130312c34392c3130302c35322c3130322c3130302c3130312c39382c35332c35342c34362c3132322c3131312c3131302c39372c3130382c34362c3131372c3131352c34352c3130312c39372c3131352c3131362c34352c35302c34362c39372c3131392c3131352c34362c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34392c31322c34382c31302c362c332c38352c342c31312c31322c332c36352c38372c38332c34392c31352c34382c31332c362c332c38352c342c31302c31322c362c36352c3130392c39372c3132322c3131312c3131302c34392c31312c34382c392c362c332c38352c342c362c31392c322c38352c38332c34392c31312c34382c392c362c332c38352c342c382c31322c322c38372c36352c34392c31362c34382c31342c362c332c38352c342c372c31322c372c38332c3130312c39372c3131362c3131362c3130382c3130312c34382c33302c32332c31332c35302c35322c34382c35342c35302c35362c34382c35342c35332c35312c34392c35342c39302c32332c31332c35302c35322c34382c35342c35302c35372c34382c35342c35332c35312c34392c35342c39302c34382c3132392c3134322c34392c31312c34382c392c362c332c38352c342c362c31392c322c38352c38332c34392c31392c34382c31372c362c332c38352c342c382c31322c31302c38372c39372c3131352c3130342c3130352c3131302c3130332c3131362c3131312c3131302c34392c31362c34382c31342c362c332c38352c342c372c31322c372c38332c3130312c39372c3131362c3131362c3130382c3130312c34392c31352c34382c31332c362c332c38352c342c31302c31322c362c36352c3130392c39372c3132322c3131312c3131302c34392c31322c34382c31302c362c332c38352c342c31312c31322c332c36352c38372c38332c34392c35372c34382c35352c362c332c38352c342c332c31322c34382c3130352c34352c34382c35362c39372c39382c3130312c34382c3130312c39382c3130312c35322c34392c3130322c3130312c39382c35302c3130302c39392c34362c3131372c3131352c34352c3130312c39372c3131352c3131362c34352c35302c34362c39372c3131392c3131352c34362c3131302c3130352c3131362c3131342c3131312c34352c3130312c3131302c39392c3130382c39372c3131382c3130312c3131352c34382c3131382c34382c31362c362c372c34322c3133342c37322c3230362c36312c322c312c362c352c34332c3132392c342c302c33342c332c39382c302c342c38372c3231312c3130342c31362c34392c3233392c3132382c3139362c38392c3233362c3136372c31342c3230332c3234362c372c3136362c38332c3233392c3130352c332c3138352c392c3139342c3139342c34312c33362c32322c372c3137332c3233322c3132322c32322c33392c3231392c31392c3234332c3133362c3135392c3130342c3231362c37362c3234382c39392c3131372c3137372c3132372c3231392c3132342c35302c3230352c3137382c3133322c31302c3130342c3139302c38302c3235352c3131302c34302c33352c38342c3135312c372c32382c36382c3139342c3138302c3132392c3135352c3234392c3134382c36352c3231362c37372c38332c34392c3231312c3136342c38332c3135382c3134352c38392c32332c3137382c39352c3138352c3130362c3132342c36362c3230312c37372c3135392c3235332c36342c3231372c31322c3136332c33382c34382c33362c34382c31382c362c332c38352c32392c31392c312c312c3235352c342c382c34382c362c312c312c3235352c322c312c302c34382c31342c362c332c38352c32392c31352c312c312c3235352c342c342c332c322c322c342c34382c31302c362c382c34322c3133342c37322c3230362c36312c342c332c332c332c3130342c302c34382c3130312c322c34382c34342c37322c38312c3131352c33392c3231382c3233362c32372c3232332c39352c3233302c3233322c3235352c36362c31382c3230392c3136312c3233362c32382c3136342c34302c35392c3231372c3232332c34332c3136372c3130372c3133382c342c33332c3232352c3230382c3138362c3136382c3138392c32372c3235312c3230362c3137312c3138392c3231332c33362c3139372c3138332c31332c362c38352c3133382c322c34392c302c3139322c3132312c32352c39342c3136332c3139332c3131332c32382c3139312c3134312c3233362c3137352c3133312c3133312c38372c39302c3132332c3135322c35312c3233382c3234342c34392c3231362c3136352c3233362c3232372c3135342c3136382c38362c3139372c3138372c38392c3135362c3137302c36332c3231302c382c312c34322c3137372c3139302c37342c3137342c3235322c3231352c3139322c35382c38302c3130362c3131322c3131372c39382c3130382c3130352c39392c39352c3130372c3130312c3132312c38382c36352c342c3130362c3132382c36352c35362c31392c3137372c3138342c3133302c3137342c3232322c36332c34382c34352c3133322c36372c3137372c3133362c35382c36392c3233332c3130322c3231382c3133322c3138302c34372c3136352c38372c37382c3134352c3231342c37322c37362c3232392c34302c3137302c3232322c3139342c38382c3234332c3137322c3138362c35352c3233362c3132352c3137332c37352c392c3230352c3138352c3130302c39372c3139372c3234382c3132312c39322c3230332c3138332c3138302c3233322c3132372c36342c39342c3233342c34372c3130352c3131372c3131352c3130312c3131342c39352c3130302c39372c3131362c39372c38382c36352c34372c3235302c32332c3231382c39312c32392c32302c3130312c3231352c3131322c3134362c32382c3137322c3137372c32372c3232382c36372c32382c3135342c3138332c38322c3135372c3139342c3133352c38372c3130302c34382c3232312c36312c3232392c3230352c34332c32312c3130352c35322c3233372c35372c352c3135322c3136392c3132362c39362c3230322c3130302c35362c3131382c33342c33302c39312c34322c32312c3135332c3137322c3231372c3131372c3131372c3139382c3138382c3230372c3136332c38342c3134302c3134352c3136352c32372c3130312c3131302c3131312c3131302c39392c3130312c3234362c38382c39362c32342c35392c3233332c39362c34392c3139302c35372c32332c31352c3230372c3130392c3231312c3133382c3137362c352c37372c34392c3130312c34342c3139342c3132362c3138362c3136352c3139332c3137312c3234322c3133302c34322c3133382c3134302c35352c3231362c3232372c332c34322c3131312c3137332c3230322c3130352c3134342c3139342c3234362c39352c3134352c39392c31302c3130382c3135372c3135332c3137342c3232362c3134312c3135342c3135392c3131382c3132382c36302c3232372c3235342c3132382c35302c37322c36372c33382c32342c3131342c3234302c3137322c3232312c36382c31312c3234332c3137352c3137342c3232372c3137342c3232312c31352c32382c3131332c39302c3139332c32392c3135372c36382c3138382c3136342c3132322c342c37312c33352c332c332c3139382c3137342c3136315d", + "quote": null + }, + "status": "ok" +} \ No newline at end of file diff --git a/provers/nitro/nitro-prover/nitro_enclave_config.json b/provers/nitro/nitro-prover/nitro_enclave_config.json new file mode 100644 index 000000000..e0d61c40f --- /dev/null +++ b/provers/nitro/nitro-prover/nitro_enclave_config.json @@ -0,0 +1,8 @@ +{ + "enclave_name": "raiko-host", + "cpu_count": 4, + "memory_mib": 2048, + "eif_path": "raiko-host.eif", + "enclave_cid": 16, + "debug_mode": true +} diff --git a/provers/nitro/nitro-prover/src/_protocol_helper.rs b/provers/nitro/nitro-prover/src/_protocol_helper.rs new file mode 100644 index 000000000..ca00c2c93 --- /dev/null +++ b/provers/nitro/nitro-prover/src/_protocol_helper.rs @@ -0,0 +1,54 @@ +use byteorder::{ByteOrder, LittleEndian}; +use nix::sys::socket::MsgFlags; +use nix::sys::socket::{recv, send}; +use std::convert::TryInto; +use std::mem::size_of; +use std::os::unix::io::RawFd; + +pub fn send_u64(fd: RawFd, val: u64) -> Result<(), String> { + let mut buf = [0u8; size_of::()]; + LittleEndian::write_u64(&mut buf, val); + send_loop(fd, &buf, size_of::().try_into().unwrap())?; + Ok(()) +} + +pub fn recv_u64(fd: RawFd) -> Result { + let mut buf = [0u8; size_of::()]; + recv_loop(fd, &mut buf, size_of::().try_into().unwrap())?; + let val = LittleEndian::read_u64(&buf); + Ok(val) +} + +/// Send `len` bytes from `buf` to a connection-oriented socket +pub fn send_loop(fd: RawFd, buf: &[u8], len: u64) -> Result<(), String> { + let len: usize = len.try_into().map_err(|err| format!("{:?}", err))?; + let mut send_bytes = 0; + + while send_bytes < len { + let size = match send(fd, &buf[send_bytes..len], MsgFlags::empty()) { + Ok(size) => size, + Err(nix::Error::EINTR) => 0, + Err(err) => return Err(format!("{:?}", err)), + }; + send_bytes += size; + } + + Ok(()) +} + +/// Receive `len` bytes from a connection-orriented socket +pub fn recv_loop(fd: RawFd, buf: &mut [u8], len: u64) -> Result<(), String> { + let len: usize = len.try_into().map_err(|err| format!("{:?}", err))?; + let mut recv_bytes = 0; + + while recv_bytes < len { + let size = match recv(fd, &mut buf[recv_bytes..len], MsgFlags::empty()) { + Ok(size) => size, + Err(nix::Error::EINTR) => 0, + Err(err) => return Err(format!("{:?}", err)), + }; + recv_bytes += size; + } + + Ok(()) +} diff --git a/provers/nitro/nitro-prover/src/lib.rs b/provers/nitro/nitro-prover/src/lib.rs new file mode 100644 index 000000000..830d5e17c --- /dev/null +++ b/provers/nitro/nitro-prover/src/lib.rs @@ -0,0 +1,144 @@ +use crate::protocol_helper::*; +use anyhow::{bail, Result}; +use aws_nitro_enclaves_nsm_api::{ + api::{Request, Response}, + driver::{nsm_exit, nsm_init, nsm_process_request}, +}; +use raiko_lib::{ + builder::calculate_block_header, + input::{GuestInput, GuestOutput}, + protocol_instance::ProtocolInstance, + prover::{IdWrite, Proof, Prover, ProverConfig, ProverError, ProverResult}, + signature::sign_message, +}; +use secp256k1::{Keypair, SECP256K1}; +use serde_bytes::ByteBuf; +use tracing::{debug, info}; +use vsock::{VsockAddr, VsockStream}; + +pub mod protocol_helper; + +pub const CID: u32 = 16; +pub const PORT: u32 = 26000; +pub const NON_HEX_PREFIX: &str = "XYZ"; + +const SECRET_LOCATION: &str = "/raiko-nitro/secret.key"; + +pub struct NitroProver; + +impl NitroProver { + pub fn load_key() -> Result { + let Ok(key_data) = std::fs::read(SECRET_LOCATION) else { + bail!("No SK found."); + }; + Ok(Keypair::from_seckey_slice( + SECP256K1, + &hex::decode(key_data)?, + )?) + } + pub fn get_attestation() -> Result> { + let Ok(key) = Self::load_key() else { + bail!("Non initialized enclave"); + }; + // Nitro prove of processed block + let nsm_fd = nsm_init(); + + let public = key.public_key(); + + let request = Request::Attestation { + user_data: None, + nonce: None, + public_key: Some(ByteBuf::from(public.serialize_uncompressed())), // use this provided key in doc to verify + }; + let Response::Attestation { document: result } = nsm_process_request(nsm_fd, request) + else { + bail!("Failed to collect attestation document".to_string()); + }; + + nsm_exit(nsm_fd); + Ok(result) + } + pub fn prove(input: GuestInput) -> ProverResult { + debug!("Starting VSock for nitro proof enclave communication"); + let mut stream = VsockStream::connect(&VsockAddr::new(CID, PORT)).map_err(|e| { + ProverError::GuestError(format!("Connection to VSoc failed with details {}", e)) + })?; + + let input_bytes = serde_json::to_string(&input)?; + // send proof request + debug!("Sending input to enclave"); + send_message(&mut stream, input_bytes).map_err(|e| { + ProverError::GuestError(format!( + "Failed to send proof request to enclave with details {}", + e + )) + })?; + // read proof response + debug!("Reading proof from enclave"); + let proving_result = recv_message(&mut stream).map_err(|e| { + ProverError::GuestError(format!( + "Failed to read proof from enclave with details {}", + e + )) + })?; + if proving_result.starts_with(NON_HEX_PREFIX) { + return Err(ProverError::GuestError( + proving_result + .trim_start_matches(NON_HEX_PREFIX) + .to_string(), + )); + } + debug!("Proof acquired. Returning it."); + Ok(serde_json::from_slice( + &hex::decode(proving_result).map_err(|e| { + ProverError::GuestError(format!( + "Failed to decode proof from enclave with details {}", + e + )) + })?, + )?) + } +} + +impl Prover for NitroProver { + async fn run( + input: GuestInput, + _output: &GuestOutput, + _config: &ProverConfig, + _store: Option<&mut dyn IdWrite>, + ) -> ProverResult { + // read and validate inputs + info!("Starting Nitro guest and proof generation"); + // process the block + let header = + calculate_block_header(&input).map_err(|e| ProverError::GuestError(e.to_string()))?; + // calculate the public input hash + let pi = ProtocolInstance::new(&input, &header, raiko_lib::consts::VerifierType::Nitro) + .map_err(|e| ProverError::GuestError(e.to_string()))?; + let pi_hash = pi.instance_hash(); + info!( + "Block {}. PI data to be signed {}", + input.block.header.number, pi_hash + ); + + let signing_key = Self::load_key().map_err(|e| ProverError::GuestError(e.to_string()))?; + let signature = sign_message(&signing_key.secret_key(), pi_hash) + .map_err(|e| ProverError::GuestError(e.to_string()))?; + let user_data = ByteBuf::from(signature.to_vec()); + + info!("Successfully generated proof for PI {}", pi_hash); + Ok(Proof { + proof: Some(hex::encode(user_data)), + quote: Some(hex::encode( + Self::get_attestation().map_err(|e| ProverError::GuestError(e.to_string()))?, + )), + }) + } + + async fn cancel( + _proof_key: raiko_lib::prover::ProofKey, + _read: Box<&mut dyn raiko_lib::prover::IdStore>, + ) -> ProverResult<()> { + Ok(()) + } +} diff --git a/provers/nitro/nitro-prover/src/main.rs b/provers/nitro/nitro-prover/src/main.rs new file mode 100644 index 000000000..9adae6d94 --- /dev/null +++ b/provers/nitro/nitro-prover/src/main.rs @@ -0,0 +1,84 @@ +use nitro_prover::{protocol_helper::*, NitroProver, NON_HEX_PREFIX, PORT}; +use raiko_lib::{input::GuestInput, prover::Prover}; +use tracing::{error, info, Level}; +use tracing_subscriber::FmtSubscriber; +use vsock::{VsockAddr, VsockListener}; + +#[tokio::main] +async fn main() { + // start tracing + logging + let subscriber = FmtSubscriber::builder() + .with_max_level(Level::INFO) + .finish(); + if let Err(e) = tracing::subscriber::set_global_default(subscriber) { + println!( + "Failed to set_global_default of tracing subscriber with details {}", + e + ); + } + info!("Initializing"); + if let Err(e) = NitroProver::load_key() { + error!("Failed to initialize SK storage: {e}"); + return; + } + let listener = VsockListener::bind(&VsockAddr::new(libc::VMADDR_CID_ANY, PORT)) + .expect("bind and listen failed"); + info!("Listener socket binded. Starting main loop"); + for stream in listener.incoming() { + info!("Received new proof request"); + match stream { + Ok(mut v_stream) => { + info!("Reading message from the socket"); + let Ok(data) = recv_message(&mut v_stream) else { + let msg = format!( + "{}Failed to read whole GuestInput bytes from socket!", + NON_HEX_PREFIX + ); + info!(msg); + if let Err(e) = send_message(&mut v_stream, msg) { + error!("Failed to write error message back into socket. Client disconnected?, Details: {}", e); + } + continue; + }; + let Ok(guest_input) = serde_json::from_str::(&data) else { + let msg = format!( + "{}provided bytes are not json serialized guestinput", + NON_HEX_PREFIX + ); + info!(msg); + if let Err(e) = send_message(&mut v_stream, msg) { + error!("Failed to write error message back into socket. Client disconnected?, Details: {}", e); + } + continue; + }; + let block = guest_input.block.header.number; + match NitroProver::run(guest_input, &Default::default(), &Default::default(), None) + .await + { + Err(e) => { + let msg = format!( + "{}Failed to generate nitro proof for block {} with details {}", + NON_HEX_PREFIX, block, e + ); + info!(msg); + if let Err(e) = send_message(&mut v_stream, msg) { + error!("Failed to write error message back into socket. Client disconnected?, Details: {}", e); + } + continue; + } + Ok(proof_value) => { + // safe unwrap - can't fail as is a `Value` + let proof = hex::encode(&serde_json::to_vec(&proof_value).unwrap()); + let Ok(_) = send_message(&mut v_stream, &proof) else { + info!("Failed to write proof back into socket. Client disconnected?"); + continue; + }; + info!("Proved block {} with resulting proof {}", block, proof); + } + } + } + // Nothing else we can do from enclave side... + Err(err) => info!("Accept failed: {:?}", err), + } + } +} diff --git a/provers/nitro/nitro-prover/src/protocol_helper.rs b/provers/nitro/nitro-prover/src/protocol_helper.rs new file mode 100644 index 000000000..7106930f6 --- /dev/null +++ b/provers/nitro/nitro-prover/src/protocol_helper.rs @@ -0,0 +1,41 @@ +use byteorder::{ByteOrder, LittleEndian}; +use std::io::{Read, Write}; +use std::mem::size_of; +use vsock::VsockStream; + +pub fn send_message(stream: &mut VsockStream, msg: impl AsRef) -> Result<(), anyhow::Error> { + let msg = msg.as_ref(); + // write message length + let payload_len: u64 = msg + .len() + .try_into() + .map_err(|err: std::num::TryFromIntError| anyhow::anyhow!("{:?}", err))?; + let mut header_buf = [0; size_of::()]; + LittleEndian::write_u64(&mut header_buf, payload_len); + stream + .write(&header_buf) + .map_err(|err| anyhow::anyhow!("{:?}", err))?; + + // write message body + let payload_buf = msg.as_bytes(); + stream + .write_all(payload_buf) + .map_err(|err| anyhow::anyhow!("{:?}", err))?; + + Ok(()) +} + +pub fn recv_message(stream: &mut VsockStream) -> Result { + // Buffer to hold the size of the incoming data + let mut size_buf = [0; size_of::()]; + stream.read_exact(&mut size_buf).unwrap(); + + // Convert the size buffer to u64 + let size = LittleEndian::read_u64(&size_buf); + + // Create a buffer of the size we just read + let mut payload_buffer = vec![0; size as usize]; + stream.read_exact(&mut payload_buffer).unwrap(); + + Ok(String::from_utf8(payload_buffer)?) +} diff --git a/provers/nitro/nitro-prover/test-enclave-kms-policy.json b/provers/nitro/nitro-prover/test-enclave-kms-policy.json new file mode 100644 index 000000000..49c20a81d --- /dev/null +++ b/provers/nitro/nitro-prover/test-enclave-kms-policy.json @@ -0,0 +1,53 @@ +{ + "Version": "2012-10-17", + "Id": "key-default-1", + "Statement": [ + { + "Sid": "Enable decrypt from enclave", + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:ec2:us-east-2: 891376927649:instance/i-08abe0ebe41feb2dc" + }, + "Action": "kms:Decrypt", + "Resource": "*", + "Condition": { + "StringEqualsIgnoreCase": { + "kms:RecipientAttestation:ImageSha384": "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" + } + } + }, + { + "Sid": "Enable encrypt from instance", + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:ec2:us-east-2:891376927649:instance/i-08abe0ebe41feb2dc" + }, + "Action": "kms:Encrypt", + "Resource": "*" + }, + { + "Sid": "Allow access for Key Administrators", + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:ec2:us-east-2:891376927649:instance/i-08abe0ebe41feb2dc" + }, + "Action": [ + "kms:Create*", + "kms:Describe*", + "kms:Enable*", + "kms:List*", + "kms:Put*", + "kms:Update*", + "kms:Revoke*", + "kms:Disable*", + "kms:Get*", + "kms:Delete*", + "kms:TagResource", + "kms:UntagResource", + "kms:ScheduleKeyDeletion", + "kms:CancelKeyDeletion" + ], + "Resource": "*" + } + ] +} \ No newline at end of file diff --git a/provers/sgx/guest/Cargo.toml b/provers/sgx/guest/Cargo.toml index d583dfa05..6ef1c09fe 100644 --- a/provers/sgx/guest/Cargo.toml +++ b/provers/sgx/guest/Cargo.toml @@ -7,10 +7,12 @@ edition = "2021" [dependencies] raiko-lib = { workspace = true, features = ["sgx"] } +raiko-core = { workspace = true, features = ["sgx"] } + tokio = { workspace = true } anyhow = { workspace = true } thiserror = { workspace = true } -secp256k1 = { workspace = true, features = ["rand-std"]} +secp256k1 = { workspace = true, features = ["rand-std"] } serde = { workspace = true } rand = { workspace = true } hex = { workspace = true } diff --git a/provers/sgx/guest/src/main.rs b/provers/sgx/guest/src/main.rs index accd54913..f6fea86d8 100644 --- a/provers/sgx/guest/src/main.rs +++ b/provers/sgx/guest/src/main.rs @@ -1,17 +1,15 @@ extern crate rand; extern crate secp256k1; -use anyhow::{anyhow, Result}; -use clap::Parser; - use crate::{ app_args::{App, Command}, one_shot::{bootstrap, load_bootstrap, one_shot}, }; +use anyhow::{anyhow, Result}; +use clap::Parser; mod app_args; mod one_shot; -mod signature; #[tokio::main] pub async fn main() -> Result<()> { diff --git a/provers/sgx/guest/src/one_shot.rs b/provers/sgx/guest/src/one_shot.rs index 4c4cfee71..14017070f 100644 --- a/provers/sgx/guest/src/one_shot.rs +++ b/provers/sgx/guest/src/one_shot.rs @@ -16,10 +16,8 @@ use serde::Serialize; base64_serde_type!(Base64Standard, base64::engine::general_purpose::STANDARD); -use crate::{ - app_args::{GlobalOpts, OneShotArgs}, - signature::*, -}; +use crate::app_args::{GlobalOpts, OneShotArgs}; +use raiko_lib::signature::*; pub const ATTESTATION_QUOTE_DEVICE_FILE: &str = "/dev/attestation/quote"; pub const ATTESTATION_TYPE_DEVICE_FILE: &str = "/dev/attestation/attestation_type"; @@ -129,7 +127,7 @@ pub async fn one_shot(global_opts: GlobalOpts, args: OneShotArgs) -> Result<()> bincode::deserialize_from(std::io::stdin()).expect("unable to deserialize input"); // Process the block - let header = calculate_block_header(&input); + let header = calculate_block_header(&input)?; // Calculate the public input hash let pi = ProtocolInstance::new(&input, &header, VerifierType::SGX)?.sgx_instance(new_instance); let pi_hash = pi.instance_hash(); diff --git a/script/build.sh b/script/build.sh index 9be0760aa..3ff69d19e 100755 --- a/script/build.sh +++ b/script/build.sh @@ -167,3 +167,20 @@ if [ "$1" == "sp1" ]; then fi fi fi + +# Nitro +if [ -z "$1" ] || [ "$1" == "nitro" ]; then + if command -v nitro-cli >/dev/null 2>&1 && command -v docker >/dev/null 2&>1; then + if [ -z "${RUN}" ]; then + source nitro_build_and_run_debug.sh + else + echo "Building prover image" + docker build -f provers/nitro/nitro-prover/Dockerfile . -t raiko-prover + + echo "Generating EIF enclave" + nitro-cli build-enclave --docker-uri raiko-prover:latest --output-file raiko-prover.eif + fi + else + echo "nitro-cli required for enclave creation, aborting" + fi +fi diff --git a/script/install.sh b/script/install.sh index a2862ac65..05764e640 100755 --- a/script/install.sh +++ b/script/install.sh @@ -47,6 +47,16 @@ if [ -z "$1" ] || [ "$1" == "sgx" ]; then sudo apt install -y /tmp/gramine.deb fi fi + +# Nitro +if [ -z "$1" ] || [ "$1" == "nitro" ]; then + if command -v nitro-cli >/dev/null 2>&1; then + echo "nitro-cli already installed" + else + echo "nitro-cli not installed, install it manually following this guide: https://github.com/aws/aws-nitro-enclaves-cli/blob/main/docs/ubuntu_20.04_how_to_install_nitro_cli_from_github_sources.md" + fi +fi + # RISC0 if [ -z "$1" ] || [ "$1" == "risc0" ]; then echo "Current TERM: $TERM" @@ -68,6 +78,7 @@ if [ -z "$1" ] || [ "$1" == "risc0" ]; then /home/runner/.risc0/bin/rzup --verbose install fi fi + # SP1 if [ -z "$1" ] || [ "$1" == "sp1" ]; then curl -L https://sp1.succinct.xyz | bash diff --git a/script/nitro_build_and_run_debug.sh b/script/nitro_build_and_run_debug.sh new file mode 100755 index 000000000..8708d87b0 --- /dev/null +++ b/script/nitro_build_and_run_debug.sh @@ -0,0 +1,12 @@ +#!/bin/bash +echo "Building prover image" +docker build -f provers/nitro/nitro-prover/Dockerfile . -t raiko-prover + +echo "Generating EIF enclave" +nitro-cli build-enclave --docker-uri raiko-prover:latest --output-file raiko-prover.eif + +echo "Stopping old enclaves" +nitro-cli terminate-enclave --all + +echo "Running dev enclave" +nitro-cli run-enclave --cpu-count 2 --memory 1024 --enclave-cid 16 --eif-path raiko-prover.eif --debug-mode --attach-console \ No newline at end of file diff --git a/script/prove-block.sh b/script/prove-block.sh index 7b0d387e7..20065427c 100755 --- a/script/prove-block.sh +++ b/script/prove-block.sh @@ -91,8 +91,14 @@ elif [ "$proof" == "risc0-bonsai" ]; then "execution_po2": 20 } ' +elif [ "$proof" == "nitro" ]; then + proofParam=' + "proof_type": "nitro", + "nitro": { + } + ' else - echo "Invalid proof name. Please use 'native', 'risc0[-bonsai]', 'sp1', or 'sgx'." + echo "Invalid proof name. Please use 'native', 'risc0[-bonsai]', 'sp1', 'nitro' or 'sgx'." exit 1 fi @@ -117,6 +123,12 @@ if [ "$rangeEnd" == "" ]; then rangeEnd=$rangeStart fi +proverHost="http://localhost:8080" + +if [ $PROVER_HOST ]; then + proverHost=$PROVER_HOST +fi + prover="0x70997970C51812dc3A010C7d01b50e0d17dc79C8" graffiti="8008500000000000000000000000000000000000000000000000000000000000" @@ -134,7 +146,7 @@ for block in $(eval echo {$rangeStart..$rangeEnd}); do fi echo "- proving block $block" - curl --location --request POST 'http://localhost:8080/proof' \ + curl --location --request POST "$proverHost/proof" \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer 4cbd753fbcbc2639de804f8ce425016a50e0ecd53db00cb5397912e83f5e570e' \ --data-raw "{