diff --git a/.github/scripts/slither-comment.js b/.github/scripts/slither-comment.js deleted file mode 100644 index a1d35db..0000000 --- a/.github/scripts/slither-comment.js +++ /dev/null @@ -1,31 +0,0 @@ -// Ref: https://github.com/marketplace/actions/slither-action#example-workflow-markdown-report - -module.exports = async ({ github, context, header, body }) => { - const collapse_details = '
Click me to view the full report '; - const close_details = '
'; - - const comment = [header, collapse_details, body, close_details].join("\n"); - - const { data: comments } = await github.rest.issues.listComments({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.number, - }); - - const botComment = comments.find( - (comment) => - // github-actions bot user - comment.user.id === 41898282 && comment.body.startsWith(header) - ); - - const commentFn = botComment ? "updateComment" : "createComment"; - - await github.rest.issues[commentFn]({ - owner: context.repo.owner, - repo: context.repo.repo, - body: comment, - ...(botComment - ? { comment_id: botComment.id } - : { issue_number: context.payload.number }), - }); - }; \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b764f97..be2f9ab 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,9 +8,6 @@ on: workflow_dispatch: -env: - DCAP_RISCZERO_IMAGE_ID: "0x83613a8beec226d1f29714530f1df791fa16c2c4dfcf22c50ab7edac59ca637f" - jobs: check: strategy: @@ -18,6 +15,11 @@ jobs: name: Foundry project runs-on: ubuntu-latest + + defaults: + run: + working-directory: evm + steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/slither.yml b/.github/workflows/slither.yml index afb65cf..535674f 100644 --- a/.github/workflows/slither.yml +++ b/.github/workflows/slither.yml @@ -18,6 +18,10 @@ jobs: env: commit_url: ${{ github.server_url }}/${{ github.repository }}/blob/${{ github.event.pull_request.head.sha }}/ + defaults: + run: + working-directory: evm + steps: - uses: actions/checkout@v3 @@ -32,16 +36,4 @@ jobs: - name: Upload SARIF file uses: github/codeql-action/upload-sarif@v3 with: - sarif_file: ${{ steps.slither.outputs.sarif }} - - # - name: Create/update checklist as PR comment - # uses: actions/github-script@v7 - # if: github.event_name == 'pull_request' - # env: - # REPORT: ${{ steps.slither.outputs.stdout }} - # with: - # script: | - # const script = require('.github/scripts/slither-comment') - # const header = '# Slither report' - # const body = process.env.REPORT - # await script({ github, context, header, body }) \ No newline at end of file + sarif_file: ${{ steps.slither.outputs.sarif }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 65a2030..09bcffd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,3 @@ -artifacts/ -cache*/ -node_modules/ -typechain-types/ **/.DS_Store -out/ -**/.env - -# Ignores development broadcast logs -broadcast/**/31337/ -broadcast/**/run-*.json -broadcast/**/dry-run/ -!broadcast/**/*-latest.json \ No newline at end of file +**/target +**/.env \ No newline at end of file diff --git a/.gitmodules b/.gitmodules index 9417c65..1e329b5 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,13 +1,13 @@ -[submodule "lib/forge-std"] - path = lib/forge-std +[submodule "evm/lib/forge-std"] + path = evm/lib/forge-std url = https://github.com/foundry-rs/forge-std -[submodule "lib/sp1-contracts"] - path = lib/sp1-contracts - url = https://github.com/succinctlabs/sp1-contracts -[submodule "lib/risc0-ethereum"] - path = lib/risc0-ethereum - url = https://github.com/risc0/risc0-ethereum -[submodule "lib/automata-on-chain-pccs"] - path = lib/automata-on-chain-pccs +[submodule "evm/lib/automata-on-chain-pccs"] + path = evm/lib/automata-on-chain-pccs url = https://github.com/automata-network/automata-on-chain-pccs branch = main +[submodule "evm/lib/sp1-contracts"] + path = evm/lib/sp1-contracts + url = https://github.com/succinctlabs/sp1-contracts +[submodule "evm/lib/risc0-ethereum"] + path = evm/lib/risc0-ethereum + url = https://github.com/risc0/risc0-ethereum diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..eaa0e6e --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,6982 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "Inflector" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" +dependencies = [ + "lazy_static", + "regex", +] + +[[package]] +name = "addr2line" +version = "0.24.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" +dependencies = [ + "gimli", +] + +[[package]] +name = "adler2" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627" + +[[package]] +name = "aead" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0" +dependencies = [ + "crypto-common", + "generic-array", +] + +[[package]] +name = "aes" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" +dependencies = [ + "cfg-if", + "cipher", + "cpufeatures", +] + +[[package]] +name = "aes-gcm-siv" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae0784134ba9375416d469ec31e7c5f9fa94405049cf08c5ce5b4698be673e0d" +dependencies = [ + "aead", + "aes", + "cipher", + "ctr", + "polyval", + "subtle", + "zeroize", +] + +[[package]] +name = "agave-transaction-view" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e479181a1b6702e9d85e213757646c9011b525a3489101ed887b3fbae182659b" +dependencies = [ + "solana-sdk", + "solana-svm-transaction", +] + +[[package]] +name = "ahash" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" +dependencies = [ + "cfg-if", + "getrandom 0.2.15", + "once_cell", + "version_check", + "zerocopy", +] + +[[package]] +name = "aho-corasick" +version = "1.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" +dependencies = [ + "memchr", +] + +[[package]] +name = "alloc-no-stdlib" +version = "2.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3" + +[[package]] +name = "alloc-stdlib" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece" +dependencies = [ + "alloc-no-stdlib", +] + +[[package]] +name = "android-tzdata" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] +name = "anyhow" +version = "1.0.95" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04" + +[[package]] +name = "aquamarine" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1da02abba9f9063d786eab1509833ebb2fac0f966862ca59439c76b9c566760" +dependencies = [ + "include_dir", + "itertools 0.10.5", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-bn254" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a22f4561524cd949590d78d7d4c5df8f592430d221f7f3c9497bbafd8972120f" +dependencies = [ + "ark-ec", + "ark-ff", + "ark-std", +] + +[[package]] +name = "ark-ec" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "defd9a439d56ac24968cca0571f598a61bc8c55f71d50a89cda591cb750670ba" +dependencies = [ + "ark-ff", + "ark-poly", + "ark-serialize", + "ark-std", + "derivative", + "hashbrown 0.13.2", + "itertools 0.10.5", + "num-traits", + "zeroize", +] + +[[package]] +name = "ark-ff" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec847af850f44ad29048935519032c33da8aa03340876d351dfab5660d2966ba" +dependencies = [ + "ark-ff-asm", + "ark-ff-macros", + "ark-serialize", + "ark-std", + "derivative", + "digest 0.10.7", + "itertools 0.10.5", + "num-bigint 0.4.6", + "num-traits", + "paste", + "rustc_version", + "zeroize", +] + +[[package]] +name = "ark-ff-asm" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ed4aa4fe255d0bc6d79373f7e31d2ea147bcf486cba1be5ba7ea85abdb92348" +dependencies = [ + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-ff-macros" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7abe79b0e4288889c4574159ab790824d0033b9fdcb2a112a3182fac2e514565" +dependencies = [ + "num-bigint 0.4.6", + "num-traits", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-poly" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d320bfc44ee185d899ccbadfa8bc31aab923ce1558716e1997a1e74057fe86bf" +dependencies = [ + "ark-ff", + "ark-serialize", + "ark-std", + "derivative", + "hashbrown 0.13.2", +] + +[[package]] +name = "ark-serialize" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adb7b85a02b83d2f22f89bd5cac66c9c89474240cb6207cb1efc16d098e822a5" +dependencies = [ + "ark-serialize-derive", + "ark-std", + "digest 0.10.7", + "num-bigint 0.4.6", +] + +[[package]] +name = "ark-serialize-derive" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae3281bc6d0fd7e549af32b52511e1302185bd688fd3359fa36423346ff682ea" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "ark-std" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94893f1e0c6eeab764ade8dc4c0db24caf4fe7cbbaafc0eba0a9030f447b5185" +dependencies = [ + "num-traits", + "rand 0.8.5", +] + +[[package]] +name = "arrayref" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" + +[[package]] +name = "arrayvec" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + +[[package]] +name = "ascii" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eab1c04a571841102f5345a8fc0f6bb3d31c315dec879b5c6e42e40ce7ffa34e" + +[[package]] +name = "asn1-rs" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f6fd5ddaf0351dff5b8da21b2fb4ff8e08ddd02857f0bf69c47639106c0fff0" +dependencies = [ + "asn1-rs-derive", + "asn1-rs-impl", + "displaydoc", + "nom", + "num-traits", + "rusticata-macros", + "thiserror 1.0.69", + "time", +] + +[[package]] +name = "asn1-rs-derive" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "726535892e8eae7e70657b4c8ea93d26b8553afb1ce617caee529ef96d7dee6c" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", + "synstructure 0.12.6", +] + +[[package]] +name = "asn1-rs-impl" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2777730b2039ac0f95f093556e61b6d26cebed5393ca6f152717777cec3a42ed" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "assert_matches" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b34d609dfbaf33d6889b2b7106d3ca345eacad44200913df5ba02bfd31d2ba9" + +[[package]] +name = "async-channel" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81953c529336010edd6d8e358f886d9581267795c61b19475b71314bffa46d35" +dependencies = [ + "concurrent-queue", + "event-listener 2.5.3", + "futures-core", +] + +[[package]] +name = "async-compression" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df895a515f70646414f4b45c0b79082783b80552b373a68283012928df56f522" +dependencies = [ + "brotli", + "flate2", + "futures-core", + "memchr", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "async-lock" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff6e472cdea888a4bd64f342f09b3f50e1886d32afe8df3d663c01140b811b18" +dependencies = [ + "event-listener 5.4.0", + "event-listener-strategy", + "pin-project-lite", +] + +[[package]] +name = "async-trait" +version = "0.1.86" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "644dd749086bf3771a2fbc5f256fdb982d53f011c7d5d560304eafeecebce79d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "atty" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" +dependencies = [ + "hermit-abi 0.1.19", + "libc", + "winapi", +] + +[[package]] +name = "autocfg" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" + +[[package]] +name = "automata-dcap-client" +version = "0.1.0" +dependencies = [ + "anyhow", + "borsh 1.5.5", + "serde", + "serde_json", + "solana-rpc-client", + "solana-sdk", + "solana-transaction-status-client-types", +] + +[[package]] +name = "automata-dcap-program" +version = "0.1.0" +dependencies = [ + "anyhow", + "borsh 1.5.5", + "hex", + "sha2 0.10.8", + "solana-program", + "solana-program-test", + "solana-sdk", +] + +[[package]] +name = "backtrace" +version = "0.3.74" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a" +dependencies = [ + "addr2line", + "cfg-if", + "libc", + "miniz_oxide", + "object", + "rustc-demangle", + "windows-targets 0.52.6", +] + +[[package]] +name = "base64" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3441f0f7b02788e948e47f457ca01f1d7e6d92c693bc132c22b087d3141c03ff" + +[[package]] +name = "base64" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" + +[[package]] +name = "base64" +version = "0.21.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "bincode" +version = "1.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" +dependencies = [ + "serde", +] + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f68f53c83ab957f72c32642f3868eec03eb974d1fb82e453128456482613d36" +dependencies = [ + "serde", +] + +[[package]] +name = "bitmaps" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "031043d04099746d8db04daf1fa424b2bc8bd69d92b25962dcde24da39ab64a2" +dependencies = [ + "typenum", +] + +[[package]] +name = "blake3" +version = "1.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8ee0c1824c4dea5b5f81736aff91bae041d2c07ee1192bec91054e10e3e601e" +dependencies = [ + "arrayref", + "arrayvec", + "cc", + "cfg-if", + "constant_time_eq", + "digest 0.10.7", +] + +[[package]] +name = "block-buffer" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "borsh" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "115e54d64eb62cdebad391c19efc9dce4981c690c85a33a12199d99bb9546fee" +dependencies = [ + "borsh-derive 0.10.4", + "hashbrown 0.13.2", +] + +[[package]] +name = "borsh" +version = "1.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5430e3be710b68d984d1391c854eb431a9d548640711faa54eecb1df93db91cc" +dependencies = [ + "borsh-derive 1.5.5", + "cfg_aliases", +] + +[[package]] +name = "borsh-derive" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "831213f80d9423998dd696e2c5345aba6be7a0bd8cd19e31c5243e13df1cef89" +dependencies = [ + "borsh-derive-internal", + "borsh-schema-derive-internal", + "proc-macro-crate 0.1.5", + "proc-macro2", + "syn 1.0.109", +] + +[[package]] +name = "borsh-derive" +version = "1.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8b668d39970baad5356d7c83a86fee3a539e6f93bf6764c97368243e17a0487" +dependencies = [ + "once_cell", + "proc-macro-crate 3.2.0", + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "borsh-derive-internal" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65d6ba50644c98714aa2a70d13d7df3cd75cd2b523a2b452bf010443800976b3" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "borsh-schema-derive-internal" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "276691d96f063427be83e6692b86148e488ebba9f48f77788724ca027ba3b6d4" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "brotli" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc97b8f16f944bba54f0433f07e30be199b6dc2bd25937444bbad560bcea29bd" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", + "brotli-decompressor", +] + +[[package]] +name = "brotli-decompressor" +version = "4.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74fa05ad7d803d413eb8380983b092cbbaf9a85f151b871360e7b00cd7060b37" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", +] + +[[package]] +name = "bs58" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "bumpalo" +version = "3.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf" + +[[package]] +name = "bv" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8834bb1d8ee5dc048ee3124f2c7c1afcc6bc9aed03f11e9dfd8c69470a5db340" +dependencies = [ + "feature-probe", + "serde", +] + +[[package]] +name = "bytemuck" +version = "1.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef657dfab802224e671f5818e9a4935f9b1957ed18e58292690cc39e7a4092a3" +dependencies = [ + "bytemuck_derive", +] + +[[package]] +name = "bytemuck_derive" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fa76293b4f7bb636ab88fd78228235b5248b4d05cc589aed610f954af5d7c7a" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "bytes" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f61dac84819c6588b558454b194026eb1f09c293b9036ae9b159e74e73ab6cf9" + +[[package]] +name = "bzip2" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdb116a6ef3f6c3698828873ad02c3014b3c85cadb88496095628e3ef1e347f8" +dependencies = [ + "bzip2-sys", + "libc", +] + +[[package]] +name = "bzip2-sys" +version = "0.1.11+1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc" +dependencies = [ + "cc", + "libc", + "pkg-config", +] + +[[package]] +name = "caps" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "190baaad529bcfbde9e1a19022c42781bdb6ff9de25721abdb8fd98c0807730b" +dependencies = [ + "libc", + "thiserror 1.0.69", +] + +[[package]] +name = "cc" +version = "1.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "755717a7de9ec452bf7f3f1a3099085deabd7f2962b861dae91ecd7a365903d2" +dependencies = [ + "jobserver", + "libc", + "shlex", +] + +[[package]] +name = "cesu8" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" + +[[package]] +name = "cfg-if" +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 = "cfg_eval" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45565fc9416b9896014f5732ac776f810ee53a66730c17e4020c3ec064a8f88f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "chrono" +version = "0.4.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e36cc9d416881d2e24f9a963be5fb1cd90966419ac844274161d10488b3e825" +dependencies = [ + "android-tzdata", + "iana-time-zone", + "js-sys", + "num-traits", + "serde", + "wasm-bindgen", + "windows-targets 0.52.6", +] + +[[package]] +name = "chrono-humanize" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "799627e6b4d27827a814e837b9d8a504832086081806d45b1afa34dc982b023b" +dependencies = [ + "chrono", +] + +[[package]] +name = "cipher" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" +dependencies = [ + "crypto-common", + "inout", +] + +[[package]] +name = "combine" +version = "3.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da3da6baa321ec19e1cc41d31bf599f00c783d0517095cdaf0332e3fe8d20680" +dependencies = [ + "ascii", + "byteorder", + "either", + "memchr", + "unreachable", +] + +[[package]] +name = "combine" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "console" +version = "0.15.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea3c6ecd8059b57859df5c69830340ed3c41d30e3da0c1cbed90a96ac853041b" +dependencies = [ + "encode_unicode", + "libc", + "once_cell", + "unicode-width", + "windows-sys 0.59.0", +] + +[[package]] +name = "console_error_panic_hook" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a06aeb73f470f66dcdbf7223caeebb85984942f22f1adb2a088cf9668146bbbc" +dependencies = [ + "cfg-if", + "wasm-bindgen", +] + +[[package]] +name = "console_log" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e89f72f65e8501878b8a004d5a1afb780987e2ce2b4532c562e367a72c57499f" +dependencies = [ + "log", + "web-sys", +] + +[[package]] +name = "constant_time_eq" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6" + +[[package]] +name = "core-foundation" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-channel" +version = "0.5.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06ba6d68e24814cb8de6bb986db8222d3a027d15872cabc0d18817bc3c0e4471" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-deque" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + +[[package]] +name = "crunchy" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43da5946c66ffcc7745f48db692ffbb10a83bfe0afd96235c5c2a4fb23994929" + +[[package]] +name = "crypto-common" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" +dependencies = [ + "generic-array", + "rand_core 0.6.4", + "typenum", +] + +[[package]] +name = "crypto-mac" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b584a330336237c1eecd3e94266efb216c56ed91225d634cb2991c5f3fd1aeab" +dependencies = [ + "generic-array", + "subtle", +] + +[[package]] +name = "ctr" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835" +dependencies = [ + "cipher", +] + +[[package]] +name = "curve25519-dalek" +version = "3.2.1" +source = "git+https://github.com/ivs/curve25519-dalek?branch=rustls-dep-hell#e3e174d33be64f4f3247cacb0f6ce1dfab52e2ad" +dependencies = [ + "byteorder", + "digest 0.9.0", + "rand_core 0.5.1", + "subtle", + "zeroize", +] + +[[package]] +name = "curve25519-dalek" +version = "4.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" +dependencies = [ + "cfg-if", + "cpufeatures", + "curve25519-dalek-derive", + "digest 0.10.7", + "fiat-crypto", + "rand_core 0.6.4", + "rustc_version", + "serde", + "subtle", + "zeroize", +] + +[[package]] +name = "curve25519-dalek-derive" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "darling" +version = "0.20.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f63b86c8a8826a49b8c21f08a2d07338eec8d900540f8630dc76284be802989" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.20.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95133861a8032aaea082871032f5815eb9e98cef03fa916ab4500513994df9e5" +dependencies = [ + "fnv", + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 2.0.98", +] + +[[package]] +name = "darling_macro" +version = "0.20.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" +dependencies = [ + "darling_core", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "dashmap" +version = "5.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856" +dependencies = [ + "cfg-if", + "hashbrown 0.14.5", + "lock_api", + "once_cell", + "parking_lot_core", + "rayon", +] + +[[package]] +name = "data-encoding" +version = "2.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e60eed09d8c01d3cee5b7d30acb059b76614c918fa0f992e0dd6eeb10daad6f" + +[[package]] +name = "dcap-sp1-solana-program" +version = "0.1.0" +dependencies = [ + "borsh 1.5.5", + "hex", + "sha2 0.10.8", + "solana-program", + "sp1-solana", +] + +[[package]] +name = "der-parser" +version = "8.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dbd676fbbab537128ef0278adb5576cf363cff6aa22a7b24effe97347cfab61e" +dependencies = [ + "asn1-rs", + "displaydoc", + "nom", + "num-bigint 0.4.6", + "num-traits", + "rusticata-macros", +] + +[[package]] +name = "deranged" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4" +dependencies = [ + "powerfmt", +] + +[[package]] +name = "derivation-path" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e5c37193a1db1d8ed868c03ec7b152175f26160a5b740e5e484143877e0adf0" + +[[package]] +name = "derivative" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcc3dd5e9e9c0b295d6e1e4d811fb6f157d5ffd784b8d202fc62eac8035a770b" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "difflib" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6184e33543162437515c2e2b48714794e37845ec9851711914eec9d308f6ebe8" + +[[package]] +name = "digest" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" +dependencies = [ + "generic-array", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer 0.10.4", + "crypto-common", + "subtle", +] + +[[package]] +name = "dir-diff" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7ad16bf5f84253b50d6557681c58c3ab67c47c77d39fed9aeb56e947290bd10" +dependencies = [ + "walkdir", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "dlopen2" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09b4f5f101177ff01b8ec4ecc81eead416a8aa42819a2869311b3420fa114ffa" +dependencies = [ + "dlopen2_derive", + "libc", + "once_cell", + "winapi", +] + +[[package]] +name = "dlopen2_derive" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6cbae11b3de8fce2a456e8ea3dada226b35fe791f0dc1d360c0941f0bb681f3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "downcast" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1435fa1053d8b2fbbe9be7e97eca7f33d37b28409959813daefc1446a14247f1" + +[[package]] +name = "eager" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abe71d579d1812060163dff96056261deb5bf6729b100fa2e36a68b9649ba3d3" + +[[package]] +name = "ed25519" +version = "1.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91cff35c70bba8a626e3185d8cd48cc11b5437e1a5bcd15b9b5fa3c64b6dfee7" +dependencies = [ + "signature", +] + +[[package]] +name = "ed25519-dalek" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c762bae6dcaf24c4c84667b8579785430908723d5c889f469d76a41d59cc7a9d" +dependencies = [ + "curve25519-dalek 3.2.1", + "ed25519", + "rand 0.7.3", + "serde", + "sha2 0.9.9", + "zeroize", +] + +[[package]] +name = "ed25519-dalek-bip32" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d2be62a4061b872c8c0873ee4fc6f101ce7b889d039f019c5fa2af471a59908" +dependencies = [ + "derivation-path", + "ed25519-dalek", + "hmac 0.12.1", + "sha2 0.10.8", +] + +[[package]] +name = "educe" +version = "0.4.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f0042ff8246a363dbe77d2ceedb073339e85a804b9a47636c6e016a9a32c05f" +dependencies = [ + "enum-ordinalize", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "either" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" + +[[package]] +name = "encode_unicode" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0" + +[[package]] +name = "encoding_rs" +version = "0.8.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "enum-iterator" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fd242f399be1da0a5354aa462d57b4ab2b4ee0683cc552f7c007d2d12d36e94" +dependencies = [ + "enum-iterator-derive", +] + +[[package]] +name = "enum-iterator-derive" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1ab991c1362ac86c61ab6f556cff143daa22e5a15e4e189df818b2fd19fe65b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "enum-ordinalize" +version = "3.1.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bf1fa3f06bbff1ea5b1a9c7b14aa992a39657db60a2759457328d7e058f49ee" +dependencies = [ + "num-bigint 0.4.6", + "num-traits", + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "env_logger" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" +dependencies = [ + "atty", + "humantime", + "log", + "regex", + "termcolor", +] + +[[package]] +name = "equivalent" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" + +[[package]] +name = "errno" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d" +dependencies = [ + "libc", + "windows-sys 0.59.0", +] + +[[package]] +name = "event-listener" +version = "2.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0" + +[[package]] +name = "event-listener" +version = "5.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3492acde4c3fc54c845eaab3eed8bd00c7a7d881f78bfc801e43a93dec1331ae" +dependencies = [ + "concurrent-queue", + "parking", + "pin-project-lite", +] + +[[package]] +name = "event-listener-strategy" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c3e4e0dd3673c1139bf041f3008816d9cf2946bbfac2945c09e523b8d7b05b2" +dependencies = [ + "event-listener 5.4.0", + "pin-project-lite", +] + +[[package]] +name = "fastrand" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" + +[[package]] +name = "feature-probe" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "835a3dc7d1ec9e75e2b5fb4ba75396837112d2060b03f7d43bc1897c7f7211da" + +[[package]] +name = "fiat-crypto" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" + +[[package]] +name = "filetime" +version = "0.2.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35c0522e981e68cbfa8c3f978441a5f34b30b96e146b33cd3359176b50fe8586" +dependencies = [ + "cfg-if", + "libc", + "libredox", + "windows-sys 0.59.0", +] + +[[package]] +name = "five8_const" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b4f62f0f8ca357f93ae90c8c2dd1041a1f665fde2f889ea9b1787903829015" +dependencies = [ + "five8_core", +] + +[[package]] +name = "five8_core" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94474d15a76982be62ca8a39570dccce148d98c238ebb7408b0a21b2c4bdddc4" + +[[package]] +name = "flate2" +version = "1.0.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c936bfdafb507ebbf50b8074c54fa31c5be9a1e7e5f467dd659697041407d07c" +dependencies = [ + "crc32fast", + "miniz_oxide", +] + +[[package]] +name = "float-cmp" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98de4bbd547a563b716d8dfa9aad1cb19bfab00f4fa09a6a4ed21dbcf44ce9c4" +dependencies = [ + "num-traits", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foreign-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +dependencies = [ + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" + +[[package]] +name = "form_urlencoded" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "fragile" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c2141d6d6c8512188a7891b4b01590a45f6dac67afb4f255c4124dbb86d4eaa" + +[[package]] +name = "futures" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" + +[[package]] +name = "futures-executor" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" + +[[package]] +name = "futures-macro" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "futures-sink" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" + +[[package]] +name = "futures-task" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" + +[[package]] +name = "futures-timer" +version = "3.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f288b0a4f20f9a56b5d1da57e2227c661b7b16168e2f72365f57b63326e29b24" + +[[package]] +name = "futures-util" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "pin-utils", + "slab", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "serde", + "typenum", + "version_check", +] + +[[package]] +name = "gethostname" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1ebd34e35c46e00bb73e81363248d627782724609fe1b6396f553f68fe3862e" +dependencies = [ + "libc", + "winapi", +] + +[[package]] +name = "getrandom" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "wasi 0.9.0+wasi-snapshot-preview1", + "wasm-bindgen", +] + +[[package]] +name = "getrandom" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "wasi 0.11.0+wasi-snapshot-preview1", + "wasm-bindgen", +] + +[[package]] +name = "getrandom" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43a49c392881ce6d5c3b8cb70f98717b7c07aabbdff06687b9030dbfbe2725f8" +dependencies = [ + "cfg-if", + "libc", + "wasi 0.13.3+wasi-0.2.2", + "windows-targets 0.52.6", +] + +[[package]] +name = "gimli" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" + +[[package]] +name = "governor" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68a7f542ee6b35af73b06abc0dad1c1bae89964e4e253bc4b587b91c9637867b" +dependencies = [ + "cfg-if", + "dashmap", + "futures", + "futures-timer", + "no-std-compat", + "nonzero_ext", + "parking_lot", + "portable-atomic", + "quanta", + "rand 0.8.5", + "smallvec", + "spinning_top", +] + +[[package]] +name = "groth16-solana" +version = "0.0.3" +source = "git+https://github.com/sp1-patches/groth16-solana?branch=patch-v0.0.3#8850c04c3cbda326a65622dcf72f6ac6a2c60a4f" +dependencies = [ + "ark-bn254", + "ark-ec", + "ark-ff", + "ark-serialize", + "num-bigint 0.4.6", + "solana-bn254", + "solana-program", + "thiserror 1.0.69", +] + +[[package]] +name = "h2" +version = "0.3.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81fe527a889e1532da5c525686d96d4c2e74cdd345badf8dfef9f6b39dd5f5e8" +dependencies = [ + "bytes", + "fnv", + "futures-core", + "futures-sink", + "futures-util", + "http", + "indexmap", + "slab", + "tokio", + "tokio-util 0.7.13", + "tracing", +] + +[[package]] +name = "hash32" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0c35f58762feb77d74ebe43bdbc3210f09be9fe6742234d573bacc26ed92b67" +dependencies = [ + "byteorder", +] + +[[package]] +name = "hashbrown" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" +dependencies = [ + "ahash", +] + +[[package]] +name = "hashbrown" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" + +[[package]] +name = "hashbrown" +version = "0.15.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289" + +[[package]] +name = "heck" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" + +[[package]] +name = "hermit-abi" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" +dependencies = [ + "libc", +] + +[[package]] +name = "hermit-abi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "histogram" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12cb882ccb290b8646e554b157ab0b71e64e8d5bef775cd66b6531e52d302669" + +[[package]] +name = "hmac" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840" +dependencies = [ + "crypto-mac", + "digest 0.9.0", +] + +[[package]] +name = "hmac" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +dependencies = [ + "digest 0.10.7", +] + +[[package]] +name = "hmac-drbg" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17ea0a1394df5b6574da6e0c1ade9e78868c9fb0a4e5ef4428e32da4676b85b1" +dependencies = [ + "digest 0.9.0", + "generic-array", + "hmac 0.8.1", +] + +[[package]] +name = "http" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" +dependencies = [ + "bytes", + "fnv", + "itoa", +] + +[[package]] +name = "http-body" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" +dependencies = [ + "bytes", + "http", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2d708df4e7140240a16cd6ab0ab65c972d7433ab77819ea693fde9c43811e2a" + +[[package]] +name = "httpdate" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" + +[[package]] +name = "humantime" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" + +[[package]] +name = "hyper" +version = "0.14.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7" +dependencies = [ + "bytes", + "futures-channel", + "futures-core", + "futures-util", + "h2", + "http", + "http-body", + "httparse", + "httpdate", + "itoa", + "pin-project-lite", + "socket2", + "tokio", + "tower-service", + "tracing", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.24.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590" +dependencies = [ + "futures-util", + "http", + "hyper", + "rustls 0.21.12", + "tokio", + "tokio-rustls", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.61" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "235e081f3925a06703c2d0117ea8b91f042756fd6e7a6e5d901e8ca1a996b220" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "wasm-bindgen", + "windows-core", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "icu_collections" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locid" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_locid_transform" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_locid_transform_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_locid_transform_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e" + +[[package]] +name = "icu_normalizer" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "utf16_iter", + "utf8_iter", + "write16", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516" + +[[package]] +name = "icu_properties" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locid_transform", + "icu_properties_data", + "icu_provider", + "tinystr", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569" + +[[package]] +name = "icu_provider" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" +dependencies = [ + "displaydoc", + "icu_locid", + "icu_provider_macros", + "stable_deref_trait", + "tinystr", + "writeable", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_provider_macros" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "idna" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "im" +version = "15.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0acd33ff0285af998aaf9b57342af478078f53492322fafc47450e09397e0e9" +dependencies = [ + "bitmaps", + "rand_core 0.6.4", + "rand_xoshiro", + "rayon", + "serde", + "sized-chunks", + "typenum", + "version_check", +] + +[[package]] +name = "include_dir" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "923d117408f1e49d914f1a379a309cffe4f18c05cf4e3d12e613a15fc81bd0dd" +dependencies = [ + "include_dir_macros", +] + +[[package]] +name = "include_dir_macros" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cab85a7ed0bd5f0e76d93846e0147172bed2e2d3f859bcc33a8d9699cad1a75" +dependencies = [ + "proc-macro2", + "quote", +] + +[[package]] +name = "index_list" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa38453685e5fe724fd23ff6c1a158c1e2ca21ce0c2718fa11e96e70e99fd4de" + +[[package]] +name = "indexmap" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c9c992b02b5b4c94ea26e32fe5bccb7aa7d9f390ab5c1221ff895bc7ea8b652" +dependencies = [ + "equivalent", + "hashbrown 0.15.2", +] + +[[package]] +name = "indicatif" +version = "0.17.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "183b3088984b400f4cfac3620d5e076c84da5364016b4f49473de574b2586235" +dependencies = [ + "console", + "number_prefix", + "portable-atomic", + "unicode-width", + "web-time", +] + +[[package]] +name = "inout" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0c10553d664a4d0bcff9f4215d0aac67a639cc68ef660840afe309b807bc9f5" +dependencies = [ + "generic-array", +] + +[[package]] +name = "ipnet" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" + +[[package]] +name = "itertools" +version = "0.10.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" +dependencies = [ + "either", +] + +[[package]] +name = "itertools" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674" + +[[package]] +name = "jni" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6df18c2e3db7e453d3c6ac5b3e9d5182664d28788126d39b91f2d1e22b017ec" +dependencies = [ + "cesu8", + "combine 4.6.7", + "jni-sys", + "log", + "thiserror 1.0.69", + "walkdir", +] + +[[package]] +name = "jni-sys" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" + +[[package]] +name = "jobserver" +version = "0.1.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0" +dependencies = [ + "libc", +] + +[[package]] +name = "js-sys" +version = "0.3.77" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f" +dependencies = [ + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "jsonrpc-core" +version = "18.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14f7f76aef2d054868398427f6c54943cf3d1caa9a7ec7d0c38d69df97a965eb" +dependencies = [ + "futures", + "futures-executor", + "futures-util", + "log", + "serde", + "serde_derive", + "serde_json", +] + +[[package]] +name = "keccak" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc2af9a1119c51f12a14607e783cb977bde58bc069ff0c3da1095e635d70654" +dependencies = [ + "cpufeatures", +] + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + +[[package]] +name = "libc" +version = "0.2.169" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" + +[[package]] +name = "libredox" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" +dependencies = [ + "bitflags 2.8.0", + "libc", + "redox_syscall", +] + +[[package]] +name = "libsecp256k1" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9d220bc1feda2ac231cb78c3d26f27676b8cf82c96971f7aeef3d0cf2797c73" +dependencies = [ + "arrayref", + "base64 0.12.3", + "digest 0.9.0", + "hmac-drbg", + "libsecp256k1-core", + "libsecp256k1-gen-ecmult", + "libsecp256k1-gen-genmult", + "rand 0.7.3", + "serde", + "sha2 0.9.9", + "typenum", +] + +[[package]] +name = "libsecp256k1-core" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0f6ab710cec28cef759c5f18671a27dae2a5f952cdaaee1d8e2908cb2478a80" +dependencies = [ + "crunchy", + "digest 0.9.0", + "subtle", +] + +[[package]] +name = "libsecp256k1-gen-ecmult" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccab96b584d38fac86a83f07e659f0deafd0253dc096dab5a36d53efe653c5c3" +dependencies = [ + "libsecp256k1-core", +] + +[[package]] +name = "libsecp256k1-gen-genmult" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67abfe149395e3aa1c48a2beb32b068e2334402df8181f818d3aee2b304c4f5d" +dependencies = [ + "libsecp256k1-core", +] + +[[package]] +name = "light-poseidon" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c9a85a9752c549ceb7578064b4ed891179d20acd85f27318573b64d2d7ee7ee" +dependencies = [ + "ark-bn254", + "ark-ff", + "num-bigint 0.4.6", + "thiserror 1.0.69", +] + +[[package]] +name = "linux-raw-sys" +version = "0.4.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" + +[[package]] +name = "litemap" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104" + +[[package]] +name = "lock_api" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" +dependencies = [ + "autocfg", + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04cbf5b083de1c7e0222a7a51dbfdba1cbe1c6ab0b15e29fff3f6c077fd9cd9f" + +[[package]] +name = "lz4" +version = "1.28.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a20b523e860d03443e98350ceaac5e71c6ba89aea7d960769ec3ce37f4de5af4" +dependencies = [ + "lz4-sys", +] + +[[package]] +name = "lz4-sys" +version = "1.11.1+lz4-1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6bd8c0d6c6ed0cd30b3652886bb8711dc4bb01d637a68105a3d5158039b418e6" +dependencies = [ + "cc", + "libc", +] + +[[package]] +name = "memchr" +version = "2.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" + +[[package]] +name = "memmap2" +version = "0.5.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83faa42c0a078c393f6b29d5db232d8be22776a891f8f56e5284faee4a20b327" +dependencies = [ + "libc", +] + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "merlin" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58c38e2799fc0978b65dfff8023ec7843e2330bb462f19198840b34b6582397d" +dependencies = [ + "byteorder", + "keccak", + "rand_core 0.6.4", + "zeroize", +] + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "mime_guess" +version = "2.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e" +dependencies = [ + "mime", + "unicase", +] + +[[package]] +name = "minimal-lexical" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" + +[[package]] +name = "miniz_oxide" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8402cab7aefae129c6977bb0ff1b8fd9a04eb5b51efc50a70bea51cda0c7924" +dependencies = [ + "adler2", +] + +[[package]] +name = "mio" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" +dependencies = [ + "libc", + "wasi 0.11.0+wasi-snapshot-preview1", + "windows-sys 0.52.0", +] + +[[package]] +name = "mockall" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c84490118f2ee2d74570d114f3d0493cbf02790df303d2707606c3e14e07c96" +dependencies = [ + "cfg-if", + "downcast", + "fragile", + "lazy_static", + "mockall_derive", + "predicates", + "predicates-tree", +] + +[[package]] +name = "mockall_derive" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22ce75669015c4f47b289fd4d4f56e894e4c96003ffdf3ac51313126f94c6cbb" +dependencies = [ + "cfg-if", + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "modular-bitfield" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a53d79ba8304ac1c4f9eb3b9d281f21f7be9d4626f72ce7df4ad8fbde4f38a74" +dependencies = [ + "modular-bitfield-impl", + "static_assertions", +] + +[[package]] +name = "modular-bitfield-impl" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a7d5f7076603ebc68de2dc6a650ec331a062a13abaa346975be747bbfa4b789" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "nix" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46" +dependencies = [ + "bitflags 2.8.0", + "cfg-if", + "cfg_aliases", + "libc", + "memoffset", +] + +[[package]] +name = "no-std-compat" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b93853da6d84c2e3c7d730d6473e8817692dd89be387eb01b94d7f108ecb5b8c" + +[[package]] +name = "nom" +version = "7.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" +dependencies = [ + "memchr", + "minimal-lexical", +] + +[[package]] +name = "nonzero_ext" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38bf9645c8b145698bb0b18a4637dcacbc421ea49bef2317e4fd8065a387cf21" + +[[package]] +name = "normalize-line-endings" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61807f77802ff30975e01f4f071c8ba10c022052f98b3294119f3e615d13e5be" + +[[package]] +name = "num" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8536030f9fea7127f841b45bb6243b27255787fb4eb83958aa1ef9d2fdc0c36" +dependencies = [ + "num-bigint 0.2.6", + "num-complex", + "num-integer", + "num-iter", + "num-rational", + "num-traits", +] + +[[package]] +name = "num-bigint" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "090c7f9998ee0ff65aa5b723e4009f7b217707f1fb5ea551329cc4d6231fb304" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-bigint" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-complex" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6b19411a9719e753aff12e5187b74d60d3dc449ec3f4dc21e3989c3f554bc95" +dependencies = [ + "autocfg", + "num-traits", +] + +[[package]] +name = "num-conv" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" + +[[package]] +name = "num-derive" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "num-integer" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-iter" +version = "0.1.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1429034a0490724d0075ebb2bc9e875d6503c3cf69e235a8941aa757d83ef5bf" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-rational" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c000134b5dbf44adc5cb772486d335293351644b801551abe8f75c84cfa4aef" +dependencies = [ + "autocfg", + "num-bigint 0.2.6", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "num_cpus" +version = "1.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" +dependencies = [ + "hermit-abi 0.3.9", + "libc", +] + +[[package]] +name = "num_enum" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e613fc340b2220f734a8595782c551f1250e969d87d3be1ae0579e8d4065179" +dependencies = [ + "num_enum_derive", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af1844ef2428cc3e1cb900be36181049ef3d3193c63e43026cfe202983b27a56" +dependencies = [ + "proc-macro-crate 3.2.0", + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "number_prefix" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3" + +[[package]] +name = "object" +version = "0.36.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87" +dependencies = [ + "memchr", +] + +[[package]] +name = "oid-registry" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bedf36ffb6ba96c2eb7144ef6270557b52e54b20c0a8e1eb2ff99a6c6959bff" +dependencies = [ + "asn1-rs", +] + +[[package]] +name = "once_cell" +version = "1.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" + +[[package]] +name = "opaque-debug" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" + +[[package]] +name = "openssl" +version = "0.10.70" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61cfb4e166a8bb8c9b55c500bc2308550148ece889be90f609377e58140f42c6" +dependencies = [ + "bitflags 2.8.0", + "cfg-if", + "foreign-types", + "libc", + "once_cell", + "openssl-macros", + "openssl-sys", +] + +[[package]] +name = "openssl-macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "openssl-probe" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" + +[[package]] +name = "openssl-src" +version = "300.4.1+3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "faa4eac4138c62414b5622d1b31c5c304f34b406b013c079c2bbc652fdd6678c" +dependencies = [ + "cc", +] + +[[package]] +name = "openssl-sys" +version = "0.9.105" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b22d5b84be05a8d6947c7cb71f7c849aa0f112acd4bf51c2a7c1c988ac0a9dc" +dependencies = [ + "cc", + "libc", + "openssl-src", + "pkg-config", + "vcpkg", +] + +[[package]] +name = "opentelemetry" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6105e89802af13fdf48c49d7646d3b533a70e536d818aae7e78ba0433d01acb8" +dependencies = [ + "async-trait", + "crossbeam-channel", + "futures-channel", + "futures-executor", + "futures-util", + "js-sys", + "lazy_static", + "percent-encoding", + "pin-project", + "rand 0.8.5", + "thiserror 1.0.69", +] + +[[package]] +name = "parking" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" + +[[package]] +name = "parking_lot" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-targets 0.52.6", +] + +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + +[[package]] +name = "pbkdf2" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83a0692ec44e4cf1ef28ca317f14f8f07da2d95ec3fa01f86e4467b725e60917" +dependencies = [ + "digest 0.10.7", +] + +[[package]] +name = "pem" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8835c273a76a90455d7344889b0964598e3316e2a79ede8e36f16bdcf2228b8" +dependencies = [ + "base64 0.13.1", +] + +[[package]] +name = "percent-encoding" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" + +[[package]] +name = "percentage" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fd23b938276f14057220b707937bcb42fa76dda7560e57a2da30cb52d557937" +dependencies = [ + "num", +] + +[[package]] +name = "pin-project" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfe2e71e1471fe07709406bf725f710b02927c9c54b2b5b2ec0e8087d97c327d" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6e859e6e5bd50440ab63c47e3ebabc90f26251f7c73c3d3e837b74a1cc3fa67" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" + +[[package]] +name = "pin-utils" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" + +[[package]] +name = "pkg-config" +version = "0.3.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2" + +[[package]] +name = "polyval" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d1fe60d06143b2430aa532c94cfe9e29783047f06c0d7fd359a9a51b729fa25" +dependencies = [ + "cfg-if", + "cpufeatures", + "opaque-debug", + "universal-hash", +] + +[[package]] +name = "portable-atomic" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "280dc24453071f1b63954171985a0b0d30058d287960968b9b2aca264c8d4ee6" + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "ppv-lite86" +version = "0.2.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "predicates" +version = "2.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59230a63c37f3e18569bdb90e4a89cbf5bf8b06fea0b84e65ea10cc4df47addd" +dependencies = [ + "difflib", + "float-cmp", + "itertools 0.10.5", + "normalize-line-endings", + "predicates-core", + "regex", +] + +[[package]] +name = "predicates-core" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "727e462b119fe9c93fd0eb1429a5f7647394014cf3c04ab2c0350eeb09095ffa" + +[[package]] +name = "predicates-tree" +version = "1.0.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72dd2d6d381dfb73a193c7fca536518d7caee39fc8503f74e7dc0be0531b425c" +dependencies = [ + "predicates-core", + "termtree", +] + +[[package]] +name = "proc-macro-crate" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785" +dependencies = [ + "toml", +] + +[[package]] +name = "proc-macro-crate" +version = "3.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecf48c7ca261d60b74ab1a7b20da18bede46776b2e55535cb958eb595c5fa7b" +dependencies = [ + "toml_edit", +] + +[[package]] +name = "proc-macro-error" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +dependencies = [ + "proc-macro-error-attr", + "proc-macro2", + "quote", + "syn 1.0.109", + "version_check", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + +[[package]] +name = "proc-macro2" +version = "1.0.93" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "qstring" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d464fae65fff2680baf48019211ce37aaec0c78e9264c84a3e484717f965104e" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "qualifier_attr" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e2e25ee72f5b24d773cae88422baddefff7714f97aab68d96fe2b6fc4a28fb2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "quanta" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3bd1fe6824cea6538803de3ff1bc0cf3949024db3d43c9643024bfb33a807c0e" +dependencies = [ + "crossbeam-utils", + "libc", + "once_cell", + "raw-cpuid", + "wasi 0.11.0+wasi-snapshot-preview1", + "web-sys", + "winapi", +] + +[[package]] +name = "quinn" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62e96808277ec6f97351a2380e6c25114bc9e67037775464979f3037c92d05ef" +dependencies = [ + "bytes", + "pin-project-lite", + "quinn-proto", + "quinn-udp", + "rustc-hash", + "rustls 0.23.22", + "socket2", + "thiserror 2.0.11", + "tokio", + "tracing", +] + +[[package]] +name = "quinn-proto" +version = "0.11.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2fe5ef3495d7d2e377ff17b1a8ce2ee2ec2a18cde8b6ad6619d65d0701c135d" +dependencies = [ + "bytes", + "getrandom 0.2.15", + "rand 0.8.5", + "ring", + "rustc-hash", + "rustls 0.23.22", + "rustls-pki-types", + "rustls-platform-verifier", + "slab", + "thiserror 2.0.11", + "tinyvec", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-udp" +version = "0.5.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c40286217b4ba3a71d644d752e6a0b71f13f1b6a2c5311acfcbe0c2418ed904" +dependencies = [ + "cfg_aliases", + "libc", + "once_cell", + "socket2", + "tracing", + "windows-sys 0.59.0", +] + +[[package]] +name = "quote" +version = "1.0.38" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "rand" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" +dependencies = [ + "getrandom 0.1.16", + "libc", + "rand_chacha 0.2.2", + "rand_core 0.5.1", + "rand_hc", +] + +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" +dependencies = [ + "ppv-lite86", + "rand_core 0.5.1", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_core" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" +dependencies = [ + "getrandom 0.1.16", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.15", +] + +[[package]] +name = "rand_hc" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +dependencies = [ + "rand_core 0.5.1", +] + +[[package]] +name = "rand_xoshiro" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f97cdb2a36ed4183de61b2f824cc45c9f1037f28afe0a322e9fff4c108b5aaa" +dependencies = [ + "rand_core 0.6.4", +] + +[[package]] +name = "raw-cpuid" +version = "11.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6928fa44c097620b706542d428957635951bade7143269085389d42c8a4927e" +dependencies = [ + "bitflags 2.8.0", +] + +[[package]] +name = "rayon" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b418a60154510ca1a002a752ca9714984e21e4241e804d32555251faf8b78ffa" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1465873a3dfdaa8ae7cb14b4383657caab0b3e8a0aa9ae8e04b044854c8dfce2" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", +] + +[[package]] +name = "redox_syscall" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03a862b389f93e68874fbf580b9de08dd02facb9a788ebadaf4a3fd33cf58834" +dependencies = [ + "bitflags 2.8.0", +] + +[[package]] +name = "regex" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" + +[[package]] +name = "reqwest" +version = "0.11.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd67538700a17451e7cba03ac727fb961abb7607553461627b97de0b89cf4a62" +dependencies = [ + "async-compression", + "base64 0.21.7", + "bytes", + "encoding_rs", + "futures-core", + "futures-util", + "h2", + "http", + "http-body", + "hyper", + "hyper-rustls", + "ipnet", + "js-sys", + "log", + "mime", + "mime_guess", + "once_cell", + "percent-encoding", + "pin-project-lite", + "rustls 0.21.12", + "rustls-pemfile 1.0.4", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "system-configuration", + "tokio", + "tokio-rustls", + "tokio-util 0.7.13", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "webpki-roots 0.25.4", + "winreg", +] + +[[package]] +name = "reqwest-middleware" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a735987236a8e238bf0296c7e351b999c188ccc11477f311b82b55c93984216" +dependencies = [ + "anyhow", + "async-trait", + "http", + "reqwest", + "serde", + "task-local-extensions", + "thiserror 1.0.69", +] + +[[package]] +name = "ring" +version = "0.17.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d" +dependencies = [ + "cc", + "cfg-if", + "getrandom 0.2.15", + "libc", + "spin", + "untrusted", + "windows-sys 0.52.0", +] + +[[package]] +name = "rustc-demangle" +version = "0.1.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" + +[[package]] +name = "rustc-hash" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7fb8039b3032c191086b10f11f319a6e99e1e82889c5cc6046f515c9db1d497" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rusticata-macros" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "faf0c4a6ece9950b9abdb62b1cfcf2a68b3b67a10ba445b3bb85be2a293d0632" +dependencies = [ + "nom", +] + +[[package]] +name = "rustix" +version = "0.38.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" +dependencies = [ + "bitflags 2.8.0", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.59.0", +] + +[[package]] +name = "rustls" +version = "0.21.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e" +dependencies = [ + "log", + "ring", + "rustls-webpki 0.101.7", + "sct", +] + +[[package]] +name = "rustls" +version = "0.23.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fb9263ab4eb695e42321db096e3b8fbd715a59b154d5c88d82db2175b681ba7" +dependencies = [ + "once_cell", + "ring", + "rustls-pki-types", + "rustls-webpki 0.102.8", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-native-certs" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5bfb394eeed242e909609f56089eecfe5fda225042e8b171791b9c95f5931e5" +dependencies = [ + "openssl-probe", + "rustls-pemfile 2.2.0", + "rustls-pki-types", + "schannel", + "security-framework", +] + +[[package]] +name = "rustls-pemfile" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" +dependencies = [ + "base64 0.21.7", +] + +[[package]] +name = "rustls-pemfile" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "rustls-pki-types" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "917ce264624a4b4db1c364dcc35bfca9ded014d0a958cd47ad3e960e988ea51c" +dependencies = [ + "web-time", +] + +[[package]] +name = "rustls-platform-verifier" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4c7dc240fec5517e6c4eab3310438636cfe6391dfc345ba013109909a90d136" +dependencies = [ + "core-foundation", + "core-foundation-sys", + "jni", + "log", + "once_cell", + "rustls 0.23.22", + "rustls-native-certs", + "rustls-platform-verifier-android", + "rustls-webpki 0.102.8", + "security-framework", + "security-framework-sys", + "webpki-root-certs", + "windows-sys 0.52.0", +] + +[[package]] +name = "rustls-platform-verifier-android" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f" + +[[package]] +name = "rustls-webpki" +version = "0.101.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765" +dependencies = [ + "ring", + "untrusted", +] + +[[package]] +name = "rustls-webpki" +version = "0.102.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9" +dependencies = [ + "ring", + "rustls-pki-types", + "untrusted", +] + +[[package]] +name = "rustversion" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4" + +[[package]] +name = "ryu" +version = "1.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ea1a2d0a644769cc99faa24c3ad26b379b786fe7c36fd3c546254801650e6dd" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "schannel" +version = "0.1.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d" +dependencies = [ + "windows-sys 0.59.0", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "scroll" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04c565b551bafbef4157586fa379538366e4385d42082f255bfd96e4fe8519da" + +[[package]] +name = "sct" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414" +dependencies = [ + "ring", + "untrusted", +] + +[[package]] +name = "security-framework" +version = "2.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" +dependencies = [ + "bitflags 2.8.0", + "core-foundation", + "core-foundation-sys", + "libc", + "num-bigint 0.4.6", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "semver" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f79dfe2d285b0488816f30e700a7438c5a73d816b5b7d3ac72fbc48b0d185e03" + +[[package]] +name = "seqlock" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5c67b6f14ecc5b86c66fa63d76b5092352678545a8a3cdae80aef5128371910" +dependencies = [ + "parking_lot", +] + +[[package]] +name = "serde" +version = "1.0.217" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_bytes" +version = "0.11.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "387cc504cb06bb40a96c8e04e951fe01854cf6bc921053c954e4a606d9675c6a" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_derive" +version = "1.0.217" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "serde_json" +version = "1.0.138" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d434192e7da787e94a6ea7e9670b26a036d0ca41e0b7efb2676dd32bae872949" +dependencies = [ + "itoa", + "memchr", + "ryu", + "serde", +] + +[[package]] +name = "serde_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "serde_with" +version = "3.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6b6f7f2fcb69f747921f79f3926bd1e203fce4fef62c268dd3abfb6d86029aa" +dependencies = [ + "serde", + "serde_derive", + "serde_with_macros", +] + +[[package]] +name = "serde_with_macros" +version = "3.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d00caa5193a3c8362ac2b73be6b9e768aa5a4b2f721d8f4b339600c3cb51f8e" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "sha1" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest 0.10.7", +] + +[[package]] +name = "sha2" +version = "0.9.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" +dependencies = [ + "block-buffer 0.9.0", + "cfg-if", + "cpufeatures", + "digest 0.9.0", + "opaque-debug", +] + +[[package]] +name = "sha2" +version = "0.10.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest 0.10.7", +] + +[[package]] +name = "sha3" +version = "0.10.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75872d278a8f37ef87fa0ddbda7802605cb18344497949862c0d4dcb291eba60" +dependencies = [ + "digest 0.10.7", + "keccak", +] + +[[package]] +name = "sharded-slab" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" +dependencies = [ + "lazy_static", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "signal-hook-registry" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9e9e0b4211b72e7b8b6e85c807d36c212bdb33ea8587f7569562a84df5465b1" +dependencies = [ + "libc", +] + +[[package]] +name = "signature" +version = "1.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74233d3b3b2f6d4b006dc19dee745e73e2a6bfb6f93607cd3b02bd5b00797d7c" + +[[package]] +name = "siphasher" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" + +[[package]] +name = "sized-chunks" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16d69225bde7a69b235da73377861095455d298f2b970996eec25ddbb42b3d1e" +dependencies = [ + "bitmaps", + "typenum", +] + +[[package]] +name = "slab" +version = "0.4.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" +dependencies = [ + "autocfg", +] + +[[package]] +name = "smallvec" +version = "1.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" + +[[package]] +name = "socket2" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c970269d99b64e60ec3bd6ad27270092a5394c4e309314b18ae3fe575695fbe8" +dependencies = [ + "libc", + "windows-sys 0.52.0", +] + +[[package]] +name = "solana-account" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5b4e43476f7e13b6a8f571008cc6aff6ff0cae6e9c71ca96e6feb787e3409fd" +dependencies = [ + "bincode", + "serde", + "serde_bytes", + "serde_derive", + "solana-instruction", + "solana-program", +] + +[[package]] +name = "solana-account-decoder" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c195abdb9665bb390eda3972b750d04f87a5b023cfde6674a61b03452de15585" +dependencies = [ + "Inflector", + "base64 0.22.1", + "bincode", + "bs58", + "bv", + "lazy_static", + "serde", + "serde_derive", + "serde_json", + "solana-account-decoder-client-types", + "solana-config-program", + "solana-sdk", + "spl-token", + "spl-token-2022", + "spl-token-group-interface", + "spl-token-metadata-interface", + "thiserror 1.0.69", + "zstd", +] + +[[package]] +name = "solana-account-decoder-client-types" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88b743d836d14dea475cc0a82a3f31316563888af97d06f5575a90f8ceb859f2" +dependencies = [ + "base64 0.22.1", + "bs58", + "serde", + "serde_derive", + "serde_json", + "solana-account", + "solana-pubkey", + "zstd", +] + +[[package]] +name = "solana-account-info" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42051fa2def3a2d9123f0e33b62a983b25c13d153a30e707b14d3c3b79a91592" +dependencies = [ + "bincode", + "serde", + "solana-program-error", + "solana-program-memory", + "solana-pubkey", +] + +[[package]] +name = "solana-accounts-db" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06cd13cf8d4db51dd1bb94c6b6a7ca5a1f4f26ddd1c5f708d9631838790d1931" +dependencies = [ + "ahash", + "bincode", + "blake3", + "bv", + "bytemuck", + "bytemuck_derive", + "bzip2", + "crossbeam-channel", + "dashmap", + "index_list", + "indexmap", + "itertools 0.12.1", + "lazy_static", + "log", + "lz4", + "memmap2", + "modular-bitfield", + "num_cpus", + "num_enum", + "rand 0.8.5", + "rayon", + "seqlock", + "serde", + "serde_derive", + "smallvec", + "solana-bucket-map", + "solana-inline-spl", + "solana-lattice-hash", + "solana-measure", + "solana-metrics", + "solana-nohash-hasher", + "solana-rayon-threadlimit", + "solana-sdk", + "solana-svm-transaction", + "static_assertions", + "tar", + "tempfile", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-address-lookup-table-program" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1ecf05f94decc544055d61a2071a4dddd590d29c945061cf9abeac662020ec7" +dependencies = [ + "bincode", + "bytemuck", + "log", + "num-derive", + "num-traits", + "solana-feature-set", + "solana-log-collector", + "solana-program", + "solana-program-runtime", + "solana-sdk", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-atomic-u64" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10dad9cf8527bbf74d3668505f563bd362e2e14d0fc77338d20973e881bbad0b" +dependencies = [ + "parking_lot", +] + +[[package]] +name = "solana-banks-client" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cad332be8ddaadb313b811853c21ff373a821c5e7a52a3e0757aabef4570b9d1" +dependencies = [ + "borsh 1.5.5", + "futures", + "solana-banks-interface", + "solana-program", + "solana-sdk", + "tarpc", + "thiserror 1.0.69", + "tokio", + "tokio-serde", +] + +[[package]] +name = "solana-banks-interface" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52f1ba996f5b9214865dfe561d113f2cec114910ab82097035918aab228c0ede" +dependencies = [ + "serde", + "serde_derive", + "solana-sdk", + "tarpc", +] + +[[package]] +name = "solana-banks-server" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35e3c78eb17b9af871f34c213115cfc1b0fe5125686a0a21171d62ea7ac44b96" +dependencies = [ + "bincode", + "crossbeam-channel", + "futures", + "solana-banks-interface", + "solana-client", + "solana-feature-set", + "solana-runtime", + "solana-sdk", + "solana-send-transaction-service", + "solana-svm", + "tarpc", + "tokio", + "tokio-serde", +] + +[[package]] +name = "solana-bincode" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e3b178d3783809a2480c542cd7c57c06e1bab2c0f21562fcb8cd13eabd0138e" +dependencies = [ + "bincode", + "serde", + "solana-instruction", +] + +[[package]] +name = "solana-bn254" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8f9c849dac8e6ef87c3c8035886df648ef5ec4c6d9d45b96fc045477e23a9b0" +dependencies = [ + "ark-bn254", + "ark-ec", + "ark-ff", + "ark-serialize", + "bytemuck", + "solana-program", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-borsh" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "870197ea4929500d8e6f624c3eb578912b5063bbd5c8bfbe87396cd5b4257465" +dependencies = [ + "borsh 0.10.4", + "borsh 1.5.5", +] + +[[package]] +name = "solana-bpf-loader-program" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a529f5e85392e5c628f188a4b5f40e90d25bf303380b04c4f6272412a0501c0" +dependencies = [ + "bincode", + "byteorder", + "libsecp256k1", + "log", + "scopeguard", + "solana-bn254", + "solana-compute-budget", + "solana-curve25519", + "solana-feature-set", + "solana-log-collector", + "solana-measure", + "solana-poseidon", + "solana-program-memory", + "solana-program-runtime", + "solana-sdk", + "solana-timings", + "solana-type-overrides", + "solana_rbpf", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-bucket-map" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aeecd14db2155d6576ad5694bbc27e201b0a08c018e5e15c6d5be4893b503a14" +dependencies = [ + "bv", + "bytemuck", + "bytemuck_derive", + "log", + "memmap2", + "modular-bitfield", + "num_enum", + "rand 0.8.5", + "solana-measure", + "solana-sdk", + "tempfile", +] + +[[package]] +name = "solana-builtins-default-costs" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3327ae9cd1e31aed84f2c34ed17b7a940d2ca1fcc1ab414f551833a51d6cbf3a" +dependencies = [ + "ahash", + "lazy_static", + "log", + "solana-address-lookup-table-program", + "solana-bpf-loader-program", + "solana-compute-budget-program", + "solana-config-program", + "solana-loader-v4-program", + "solana-sdk", + "solana-stake-program", + "solana-system-program", + "solana-vote-program", +] + +[[package]] +name = "solana-client" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1502052be06ff6bfc86363955c2bf06e5f9640689fdb5900e5aa7d5b22633a9d" +dependencies = [ + "async-trait", + "bincode", + "dashmap", + "futures", + "futures-util", + "indexmap", + "indicatif", + "log", + "quinn", + "rayon", + "solana-connection-cache", + "solana-measure", + "solana-pubsub-client", + "solana-quic-client", + "solana-rpc-client", + "solana-rpc-client-api", + "solana-rpc-client-nonce-utils", + "solana-sdk", + "solana-streamer", + "solana-thin-client", + "solana-tpu-client", + "solana-udp-client", + "thiserror 1.0.69", + "tokio", +] + +[[package]] +name = "solana-clock" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b26a68f89972fddb370ba33a49340bd3419da529893d9ee851211588aee811fa" +dependencies = [ + "serde", + "serde_derive", + "solana-sdk-macro", + "solana-sysvar-id", +] + +[[package]] +name = "solana-compute-budget" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3366dd8be1d12ea197392cdc261ea1630d156b5685647ed7769959ef473f8aae" +dependencies = [ + "solana-sdk", +] + +[[package]] +name = "solana-compute-budget-program" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "700e90029b4aa3907bef8f5964451a5495cfc25a89374d0e94b7887b780ca587" +dependencies = [ + "solana-program-runtime", + "solana-sdk", +] + +[[package]] +name = "solana-config-program" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01b94dd5229242839bf71572d903a38f2ea40db5ad408eca57015bcaaf2a7607" +dependencies = [ + "bincode", + "chrono", + "serde", + "serde_derive", + "solana-log-collector", + "solana-program-runtime", + "solana-sdk", + "solana-short-vec", +] + +[[package]] +name = "solana-connection-cache" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1445dd6a6d47b7a025af9f9c44ecb333716a5a6859f77f8da210d86bb89a7627" +dependencies = [ + "async-trait", + "bincode", + "crossbeam-channel", + "futures-util", + "indexmap", + "log", + "rand 0.8.5", + "rayon", + "solana-measure", + "solana-metrics", + "solana-sdk", + "thiserror 1.0.69", + "tokio", +] + +[[package]] +name = "solana-cost-model" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21f05cbc354339b05f7ceb9e3ee8ac95ef1abdf260383d57b93f6a06cd06805e" +dependencies = [ + "ahash", + "lazy_static", + "log", + "solana-builtins-default-costs", + "solana-compute-budget", + "solana-feature-set", + "solana-metrics", + "solana-runtime-transaction", + "solana-sdk", + "solana-svm-transaction", + "solana-vote-program", +] + +[[package]] +name = "solana-cpi" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e3b62e1ca838f92b90c25ab68c297272cee8e2256dad18806a219b05cfcd247" +dependencies = [ + "solana-account-info", + "solana-define-syscall", + "solana-instruction", + "solana-program-error", + "solana-pubkey", + "solana-stable-layout", +] + +[[package]] +name = "solana-curve25519" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2ce85c03e05856b4094891fbaedf9ea9b0334b19d8fba72bd4b106442b46e12" +dependencies = [ + "bytemuck", + "bytemuck_derive", + "curve25519-dalek 4.1.3", + "solana-program", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-decode-error" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1323dbdb7c8ca717bcd7987a3f45619b5b6517dc3ee22a21342122a5516125c3" +dependencies = [ + "num-traits", +] + +[[package]] +name = "solana-define-syscall" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a23cf0144176f94019a27ce46372661f67007232eea16cae96cb985fc25131d5" + +[[package]] +name = "solana-derivation-path" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1ccae348499724f35dd03f395b415c54ab3929799c90df0d33e9878947e0987" +dependencies = [ + "derivation-path", + "qstring", + "uriparse", +] + +[[package]] +name = "solana-epoch-schedule" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c60dde3613fcd1af91c2033e67ffe8c8d2bcd58085c53c842fa7903fa839ad38" +dependencies = [ + "serde", + "serde_derive", + "solana-sdk-macro", + "solana-sysvar-id", +] + +[[package]] +name = "solana-feature-set" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c225a8a8be02a514d4180e6a7c6ff68e193c8e722ac14cde565fe68b671a4a" +dependencies = [ + "lazy_static", + "solana-clock", + "solana-epoch-schedule", + "solana-hash", + "solana-pubkey", + "solana-sha256-hasher", +] + +[[package]] +name = "solana-fee" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8b87b940cad820c4ae7af3fed8598e35c042adade5b91dee51218015bb5f906" +dependencies = [ + "solana-sdk", + "solana-svm-transaction", +] + +[[package]] +name = "solana-fee-calculator" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c706f3d151d0abc197ca2fcecf877ace03d613be6fae766de12f5fb41c96b04" +dependencies = [ + "log", + "serde", + "serde_derive", +] + +[[package]] +name = "solana-hash" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a86aabbd7ebf807689a0355f053d6dc31d2131c2d83613011a374a18cc5d61b7" +dependencies = [ + "borsh 1.5.5", + "bs58", + "bytemuck", + "bytemuck_derive", + "js-sys", + "serde", + "serde_derive", + "solana-atomic-u64", + "solana-sanitize", + "wasm-bindgen", +] + +[[package]] +name = "solana-inflation" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6954cd9fb4cd351e9e01d3fda020936f7cb44eb9efab3baecc3a5de1c9de8c1a" +dependencies = [ + "serde", + "serde_derive", +] + +[[package]] +name = "solana-inline-spl" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f116f35b0b8ec99abf0e0cda7064eb3dfb6d16e8bc8767c116f91c256db9b859" +dependencies = [ + "bytemuck", + "solana-pubkey", +] + +[[package]] +name = "solana-instruction" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94ed5710c998efd09ffb596cf5e7266c11cd56e3a136c8a1f940e8525fd5be6e" +dependencies = [ + "bincode", + "borsh 1.5.5", + "getrandom 0.2.15", + "js-sys", + "num-traits", + "serde", + "serde_derive", + "solana-define-syscall", + "solana-pubkey", + "wasm-bindgen", +] + +[[package]] +name = "solana-last-restart-slot" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd5647af0980c796c942e33f1f7dbffca29b7747630b720e6975abb1d7c531f6" +dependencies = [ + "serde", + "serde_derive", + "solana-sdk-macro", + "solana-sysvar-id", +] + +[[package]] +name = "solana-lattice-hash" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1cb58f78f4c7424344cca3fffa3210f5c10bae9b57639a5bc43b2111e8551160" +dependencies = [ + "base64 0.22.1", + "blake3", + "bs58", + "bytemuck", +] + +[[package]] +name = "solana-loader-v4-program" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86d281df3057ee55a83081b399947fcbf50b5a1726c64b1d86bae291fe16db08" +dependencies = [ + "log", + "solana-bpf-loader-program", + "solana-compute-budget", + "solana-log-collector", + "solana-measure", + "solana-program-runtime", + "solana-sdk", + "solana-type-overrides", + "solana_rbpf", +] + +[[package]] +name = "solana-log-collector" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "636132217fc00b32a72a3fff2dfdda5a377291edc788d3286a3fbf73caaf89cf" +dependencies = [ + "log", +] + +[[package]] +name = "solana-logger" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "037e89416c5f3e160841a3717241f86e5a3e1b3edf4d946e976b4960c11e1073" +dependencies = [ + "env_logger", + "lazy_static", + "log", +] + +[[package]] +name = "solana-measure" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2cc2470b663cde7fcd3dc644fdcb19181cf5d87ece8cab270e182ff33b48b357" + +[[package]] +name = "solana-metrics" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc3248d11553718544485736382dd9a8b619f42f39fba41b9211638d35414bbc" +dependencies = [ + "crossbeam-channel", + "gethostname", + "lazy_static", + "log", + "reqwest", + "solana-sdk", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-msg" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d6a46fcbbaa38193b5b6aeec531395da8dac8dcd183ac6d80d94e6513fc4ad8" +dependencies = [ + "solana-define-syscall", +] + +[[package]] +name = "solana-native-token" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0aa3c5006bbea99b810ad8fc6ae168fc83891b607a13a9aa6be39db71a700f87" + +[[package]] +name = "solana-net-utils" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521d93b4023bfce59bff12f7821ab6803ddfdf8d6ead19e8bbdeaee84a609a18" +dependencies = [ + "bincode", + "crossbeam-channel", + "log", + "nix", + "rand 0.8.5", + "serde", + "serde_derive", + "socket2", + "solana-sdk", + "tokio", + "url", +] + +[[package]] +name = "solana-nohash-hasher" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b8a731ed60e89177c8a7ab05fe0f1511cedd3e70e773f288f9de33a9cfdc21e" + +[[package]] +name = "solana-packet" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05fd58e2633824294a4eb1159e3f2cd9fed8d8c4d25fb4e3388f872c314e5ffd" +dependencies = [ + "bincode", + "bitflags 2.8.0", + "cfg_eval", + "serde", + "serde_derive", + "serde_with", +] + +[[package]] +name = "solana-perf" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adbb524303dd629a59dc08352da0d232f54172c5454948749966b370eac3ea2a" +dependencies = [ + "ahash", + "bincode", + "bv", + "caps", + "curve25519-dalek 4.1.3", + "dlopen2", + "fnv", + "lazy_static", + "libc", + "log", + "nix", + "rand 0.8.5", + "rayon", + "serde", + "solana-metrics", + "solana-rayon-threadlimit", + "solana-sdk", + "solana-short-vec", + "solana-vote-program", +] + +[[package]] +name = "solana-poseidon" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "789063a1bc183d95d5a62787c7d85fe1d0dc1f08f2282a7124dc5e913221ae3b" +dependencies = [ + "ark-bn254", + "light-poseidon", + "solana-define-syscall", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-precompile-error" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e289d47a9c60b9636d86458e050eca1a74f7c932abeee3bca2a0c256b8c9814e" +dependencies = [ + "num-traits", + "solana-decode-error", +] + +[[package]] +name = "solana-program" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8afc847b91b77c48113a55f7f492cc7e982e1778c6b954a05feb499f9b8c3cc4" +dependencies = [ + "base64 0.22.1", + "bincode", + "bitflags 2.8.0", + "blake3", + "borsh 0.10.4", + "borsh 1.5.5", + "bs58", + "bv", + "bytemuck", + "bytemuck_derive", + "console_error_panic_hook", + "console_log", + "curve25519-dalek 4.1.3", + "five8_const", + "getrandom 0.2.15", + "js-sys", + "lazy_static", + "log", + "memoffset", + "num-bigint 0.4.6", + "num-derive", + "num-traits", + "parking_lot", + "rand 0.8.5", + "serde", + "serde_bytes", + "serde_derive", + "sha2 0.10.8", + "sha3", + "solana-account-info", + "solana-atomic-u64", + "solana-bincode", + "solana-borsh", + "solana-clock", + "solana-cpi", + "solana-decode-error", + "solana-define-syscall", + "solana-epoch-schedule", + "solana-fee-calculator", + "solana-hash", + "solana-instruction", + "solana-last-restart-slot", + "solana-msg", + "solana-native-token", + "solana-program-entrypoint", + "solana-program-error", + "solana-program-memory", + "solana-program-option", + "solana-program-pack", + "solana-pubkey", + "solana-rent", + "solana-sanitize", + "solana-sdk-macro", + "solana-secp256k1-recover", + "solana-serde-varint", + "solana-serialize-utils", + "solana-sha256-hasher", + "solana-short-vec", + "solana-slot-hashes", + "solana-slot-history", + "solana-stable-layout", + "solana-sysvar-id", + "solana-transaction-error", + "thiserror 1.0.69", + "wasm-bindgen", +] + +[[package]] +name = "solana-program-entrypoint" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "988a49fb8231e95861d11b40931f49e06f0dea5a29241acf7cbca644c52abd6b" +dependencies = [ + "solana-account-info", + "solana-msg", + "solana-program-error", + "solana-pubkey", +] + +[[package]] +name = "solana-program-error" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2473773ee9cebf6ba3d7d1fe911938bc2a3a694e85bea33fd7a99d397cde1202" +dependencies = [ + "borsh 1.5.5", + "num-traits", + "serde", + "serde_derive", + "solana-decode-error", + "solana-instruction", + "solana-msg", + "solana-pubkey", +] + +[[package]] +name = "solana-program-memory" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d9e6ca90bbc3020b7b37091c05049f5de48e397545093ec303dc6eff3d4720c" +dependencies = [ + "num-traits", + "solana-define-syscall", +] + +[[package]] +name = "solana-program-option" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c2334c5f9adcc25c6390fbf87ac127adbfbd8943465726e5f389159677ceba2" + +[[package]] +name = "solana-program-pack" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "305475eef9404539cce0c561ab9997b875cc5509f7c553859cd059fdf93b0ab2" +dependencies = [ + "solana-program-error", +] + +[[package]] +name = "solana-program-runtime" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05abf5a66475f23769700597129cce9f76cfaacb45babf83ffec3157da8c7ce4" +dependencies = [ + "base64 0.22.1", + "bincode", + "enum-iterator", + "itertools 0.12.1", + "libc", + "log", + "num-derive", + "num-traits", + "percentage", + "rand 0.8.5", + "serde", + "solana-compute-budget", + "solana-feature-set", + "solana-log-collector", + "solana-measure", + "solana-metrics", + "solana-sdk", + "solana-timings", + "solana-type-overrides", + "solana-vote", + "solana_rbpf", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-program-test" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f12ddc1b98a4af13a4c0ff9b67ae5a4a58c79fcb7602501fcb6679d1e9d783b" +dependencies = [ + "assert_matches", + "async-trait", + "base64 0.22.1", + "bincode", + "chrono-humanize", + "crossbeam-channel", + "log", + "serde", + "solana-accounts-db", + "solana-banks-client", + "solana-banks-interface", + "solana-banks-server", + "solana-bpf-loader-program", + "solana-compute-budget", + "solana-feature-set", + "solana-inline-spl", + "solana-instruction", + "solana-log-collector", + "solana-logger", + "solana-program-runtime", + "solana-runtime", + "solana-sdk", + "solana-svm", + "solana-timings", + "solana-vote-program", + "solana_rbpf", + "thiserror 1.0.69", + "tokio", +] + +[[package]] +name = "solana-pubkey" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a954fba3af498201179981818b0ed61f95c32b4a3db5ea9cc042c971c84cdeae" +dependencies = [ + "borsh 0.10.4", + "borsh 1.5.5", + "bs58", + "bytemuck", + "bytemuck_derive", + "curve25519-dalek 4.1.3", + "five8_const", + "getrandom 0.2.15", + "js-sys", + "num-traits", + "rand 0.8.5", + "serde", + "serde_derive", + "solana-atomic-u64", + "solana-decode-error", + "solana-define-syscall", + "solana-sanitize", + "solana-sha256-hasher", + "wasm-bindgen", +] + +[[package]] +name = "solana-pubsub-client" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28f6f2c554cec02f87eca3e2461e1923db157d2d615e919fc2b93807465cbe6a" +dependencies = [ + "crossbeam-channel", + "futures-util", + "log", + "reqwest", + "semver", + "serde", + "serde_derive", + "serde_json", + "solana-account-decoder", + "solana-rpc-client-api", + "solana-sdk", + "thiserror 1.0.69", + "tokio", + "tokio-stream", + "tokio-tungstenite", + "tungstenite", + "url", +] + +[[package]] +name = "solana-quic-client" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c707a5c4aba604c06c0eeced102355229a7696ed4dc6a26c71bba5d74d86fc5" +dependencies = [ + "async-lock", + "async-trait", + "futures", + "itertools 0.12.1", + "lazy_static", + "log", + "quinn", + "quinn-proto", + "rustls 0.23.22", + "solana-connection-cache", + "solana-measure", + "solana-metrics", + "solana-net-utils", + "solana-rpc-client-api", + "solana-sdk", + "solana-streamer", + "thiserror 1.0.69", + "tokio", +] + +[[package]] +name = "solana-rayon-threadlimit" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6eeb2db0e5055cc45bbb9b6f8e4bc879b49dadf5734397a749c4b7da9193e71e" +dependencies = [ + "lazy_static", + "num_cpus", +] + +[[package]] +name = "solana-rent" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ebcc59bff8b3c773214545d038b718a3e2e63c920b8172f85725463029f7f00" +dependencies = [ + "serde", + "serde_derive", + "solana-sdk-macro", + "solana-sysvar-id", +] + +[[package]] +name = "solana-rpc-client" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c85883f214cff98a97432646ace94eea3cfe309b068841c0feae93d0a1e7b238" +dependencies = [ + "async-trait", + "base64 0.22.1", + "bincode", + "bs58", + "indicatif", + "log", + "reqwest", + "reqwest-middleware", + "semver", + "serde", + "serde_derive", + "serde_json", + "solana-account-decoder-client-types", + "solana-rpc-client-api", + "solana-sdk", + "solana-transaction-status-client-types", + "solana-version", + "solana-vote-program", + "tokio", +] + +[[package]] +name = "solana-rpc-client-api" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "791168d04387734755d3a7e81f5228cb305041c09bf4fbfc0823c8380acdf3e7" +dependencies = [ + "anyhow", + "base64 0.22.1", + "bs58", + "jsonrpc-core", + "reqwest", + "reqwest-middleware", + "semver", + "serde", + "serde_derive", + "serde_json", + "solana-account-decoder-client-types", + "solana-inline-spl", + "solana-sdk", + "solana-transaction-status-client-types", + "solana-version", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-rpc-client-nonce-utils" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46e515480bef7a3476cee636a69aa237e2e8ba73f82ba95d6e307397144ce4fc" +dependencies = [ + "solana-rpc-client", + "solana-sdk", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-runtime" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "297794ae50b36180a7c769c864b83cbfb91ea438019ea15bcff66e21f6b7e048" +dependencies = [ + "ahash", + "aquamarine", + "arrayref", + "base64 0.22.1", + "bincode", + "blake3", + "bv", + "bytemuck", + "byteorder", + "bzip2", + "crossbeam-channel", + "dashmap", + "dir-diff", + "flate2", + "fnv", + "im", + "index_list", + "itertools 0.12.1", + "lazy_static", + "libc", + "log", + "lz4", + "memmap2", + "mockall", + "modular-bitfield", + "num-derive", + "num-traits", + "num_cpus", + "num_enum", + "percentage", + "qualifier_attr", + "rand 0.8.5", + "rayon", + "regex", + "serde", + "serde_derive", + "serde_json", + "serde_with", + "solana-accounts-db", + "solana-address-lookup-table-program", + "solana-bpf-loader-program", + "solana-bucket-map", + "solana-compute-budget", + "solana-compute-budget-program", + "solana-config-program", + "solana-cost-model", + "solana-feature-set", + "solana-fee", + "solana-inline-spl", + "solana-lattice-hash", + "solana-loader-v4-program", + "solana-measure", + "solana-metrics", + "solana-perf", + "solana-program", + "solana-program-runtime", + "solana-rayon-threadlimit", + "solana-runtime-transaction", + "solana-sdk", + "solana-stake-program", + "solana-svm", + "solana-svm-rent-collector", + "solana-svm-transaction", + "solana-system-program", + "solana-timings", + "solana-transaction-status", + "solana-version", + "solana-vote", + "solana-vote-program", + "solana-zk-elgamal-proof-program", + "solana-zk-sdk", + "solana-zk-token-proof-program", + "solana-zk-token-sdk", + "static_assertions", + "strum", + "strum_macros", + "symlink", + "tar", + "tempfile", + "thiserror 1.0.69", + "zstd", +] + +[[package]] +name = "solana-runtime-transaction" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0df2638adfc8975cb111bc2ab3ee2cb04572ecbc96d1b414f1c9838729dc0c54" +dependencies = [ + "agave-transaction-view", + "log", + "solana-builtins-default-costs", + "solana-compute-budget", + "solana-pubkey", + "solana-sdk", + "solana-svm-transaction", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-sanitize" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d05ecd7ec442abf0561cbf06984484d6368e71a4882213bfa68b658b0f8d6a0e" + +[[package]] +name = "solana-sdk" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "216fa7d6ef4d741ec21e0054e78d86c5da0c2033f377b03de5eb65d264d8df13" +dependencies = [ + "bincode", + "bitflags 2.8.0", + "borsh 1.5.5", + "bs58", + "bytemuck", + "bytemuck_derive", + "byteorder", + "chrono", + "digest 0.10.7", + "ed25519-dalek", + "ed25519-dalek-bip32", + "getrandom 0.1.16", + "hmac 0.12.1", + "itertools 0.12.1", + "js-sys", + "lazy_static", + "libsecp256k1", + "log", + "memmap2", + "num-derive", + "num-traits", + "num_enum", + "pbkdf2", + "rand 0.7.3", + "rand 0.8.5", + "serde", + "serde_bytes", + "serde_derive", + "serde_json", + "serde_with", + "sha2 0.10.8", + "sha3", + "siphasher", + "solana-account", + "solana-bn254", + "solana-decode-error", + "solana-derivation-path", + "solana-feature-set", + "solana-inflation", + "solana-instruction", + "solana-native-token", + "solana-packet", + "solana-precompile-error", + "solana-program", + "solana-program-memory", + "solana-pubkey", + "solana-sanitize", + "solana-sdk-macro", + "solana-secp256k1-recover", + "solana-secp256r1-program", + "solana-serde-varint", + "solana-short-vec", + "solana-signature", + "solana-transaction-error", + "thiserror 1.0.69", + "wasm-bindgen", +] + +[[package]] +name = "solana-sdk-macro" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85df4723291cfec8ffe9dadc59d565afcae12ea9a6460b7b28c4da21c2c4a887" +dependencies = [ + "bs58", + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "solana-secp256k1-recover" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41c38fc7bc33f78af99c4848c9a924b2b6e5d33d96f269d108777d982de72f73" +dependencies = [ + "borsh 1.5.5", + "libsecp256k1", + "solana-define-syscall", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-secp256r1-program" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5bbc17379248923203317b337ce871bbf1ba6c59f01c49dc65895ffdc684f0a" +dependencies = [ + "bytemuck", + "openssl", + "solana-feature-set", + "solana-instruction", + "solana-precompile-error", + "solana-pubkey", +] + +[[package]] +name = "solana-security-txt" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "468aa43b7edb1f9b7b7b686d5c3aeb6630dc1708e86e31343499dd5c4d775183" + +[[package]] +name = "solana-send-transaction-service" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1f09eea5dbb0f2489799f337caf51243bc8d1a9277a90d8a1bf7c170ad86595" +dependencies = [ + "crossbeam-channel", + "log", + "solana-client", + "solana-connection-cache", + "solana-measure", + "solana-metrics", + "solana-runtime", + "solana-sdk", + "solana-tpu-client", +] + +[[package]] +name = "solana-serde-varint" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e2fc696c10a2b02356584cbd45d83d42b01b10256cb36b5d0c3768e5adf9283" +dependencies = [ + "serde", +] + +[[package]] +name = "solana-serialize-utils" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b04c6fb71e4cdd10480bc8d306aca6d2a7494e6267e4f103085a89b2ec04e4c" +dependencies = [ + "solana-instruction", + "solana-pubkey", + "solana-sanitize", +] + +[[package]] +name = "solana-sha256-hasher" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4c977c6c4d95c8b43a9f405844f29a73c9d8b0a7c561b91d4f6a44f290d35c" +dependencies = [ + "sha2 0.10.8", + "solana-define-syscall", + "solana-hash", +] + +[[package]] +name = "solana-short-vec" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ca5799b37642e4e273d7d848564739eab45df670edcc61b4696ef0d5ebe4a8c" +dependencies = [ + "serde", +] + +[[package]] +name = "solana-signature" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d28fe70f88bffb651a6ff8c37c236b935e97589865ca32e4a4544cdd10c7b268" +dependencies = [ + "bs58", + "ed25519-dalek", + "generic-array", + "rand 0.8.5", + "serde", + "serde_derive", + "solana-sanitize", +] + +[[package]] +name = "solana-slot-hashes" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e596d3719b4c03987de87c8cc25b34b6afcf7464c82b4d9c9b114304d882c97" +dependencies = [ + "serde", + "serde_derive", + "solana-hash", + "solana-sysvar-id", +] + +[[package]] +name = "solana-slot-history" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4022b0e8a7f043bd61504fff79176c02b52f69a69299023884b194a1405c0f05" +dependencies = [ + "bv", + "serde", + "serde_derive", + "solana-sysvar-id", +] + +[[package]] +name = "solana-stable-layout" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e82f0665dfcfcb4433708abff54db5ee105fe1bb8db7fd409074bd0275582105" +dependencies = [ + "solana-instruction", + "solana-pubkey", +] + +[[package]] +name = "solana-stake-program" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d582421c0cffbf5174965c4a45aa05e90d584b6b13688ea1a13e9d332e3e4f25" +dependencies = [ + "bincode", + "log", + "solana-config-program", + "solana-feature-set", + "solana-log-collector", + "solana-program-runtime", + "solana-sdk", + "solana-type-overrides", + "solana-vote-program", +] + +[[package]] +name = "solana-streamer" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3173f4634b4e0acc366dec277744af50ffbf661dfe41291adf1406841a1b9c96" +dependencies = [ + "async-channel", + "bytes", + "crossbeam-channel", + "dashmap", + "futures", + "futures-util", + "governor", + "histogram", + "indexmap", + "itertools 0.12.1", + "libc", + "log", + "nix", + "pem", + "percentage", + "quinn", + "quinn-proto", + "rand 0.8.5", + "rustls 0.23.22", + "smallvec", + "socket2", + "solana-measure", + "solana-metrics", + "solana-perf", + "solana-sdk", + "solana-transaction-metrics-tracker", + "thiserror 1.0.69", + "tokio", + "tokio-util 0.7.13", + "x509-parser", +] + +[[package]] +name = "solana-svm" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2bf9d2af384033d0eae21a55124858ced941856364316626cf974a94be14ae5" +dependencies = [ + "itertools 0.12.1", + "log", + "percentage", + "serde", + "serde_derive", + "solana-bpf-loader-program", + "solana-compute-budget", + "solana-feature-set", + "solana-fee", + "solana-loader-v4-program", + "solana-log-collector", + "solana-measure", + "solana-program-runtime", + "solana-runtime-transaction", + "solana-sdk", + "solana-svm-rent-collector", + "solana-svm-transaction", + "solana-system-program", + "solana-timings", + "solana-type-overrides", + "solana-vote", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-svm-rent-collector" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "813e8669142396c7898ce9439d1ebfcfbf7f2edfc79f6fcaa35a87060a4af3ff" +dependencies = [ + "solana-sdk", +] + +[[package]] +name = "solana-svm-transaction" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "572fbc0b6fa828a7bfd2c7b3039f61c169981974f37882ca4fac138290be9ce0" +dependencies = [ + "solana-sdk", +] + +[[package]] +name = "solana-system-program" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d271fdd4194fcc7de75c724c05f3d4a7062dba6ef279c7e8bfbd694ef7fb7ab" +dependencies = [ + "bincode", + "log", + "serde", + "serde_derive", + "solana-log-collector", + "solana-program-runtime", + "solana-sdk", + "solana-type-overrides", +] + +[[package]] +name = "solana-sysvar-id" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6bbed7acdd711e0d620c9b7f788d041d35731c2c675d1d687498745d73826ca4" +dependencies = [ + "solana-pubkey", +] + +[[package]] +name = "solana-thin-client" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9facb2fbf83b8a3acb1cb4523bffa3db7be838faf2cfda374f0d99120917d870" +dependencies = [ + "bincode", + "log", + "rayon", + "solana-connection-cache", + "solana-rpc-client", + "solana-rpc-client-api", + "solana-sdk", +] + +[[package]] +name = "solana-timings" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6a83fbf8377e65d4c8e6a3c3c877c944a530ca9003f94389fd1528213c7c001" +dependencies = [ + "eager", + "enum-iterator", + "solana-sdk", +] + +[[package]] +name = "solana-tpu-client" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "31cb5c39698855b236b6266025b2f31b1948ee370cd53a5cca6c7c62eea3104d" +dependencies = [ + "async-trait", + "bincode", + "futures-util", + "indexmap", + "indicatif", + "log", + "rayon", + "solana-connection-cache", + "solana-measure", + "solana-pubsub-client", + "solana-rpc-client", + "solana-rpc-client-api", + "solana-sdk", + "thiserror 1.0.69", + "tokio", +] + +[[package]] +name = "solana-transaction-error" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae45f064c8e6006a426b31a1182123ec4daf8cca50bd7aea6e796e6205a7911e" +dependencies = [ + "serde", + "serde_derive", + "solana-instruction", + "solana-sanitize", +] + +[[package]] +name = "solana-transaction-metrics-tracker" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb406ed0db097a5d2067c3c737bec3f515ea70a2cfa5abec8fc0606098049e42" +dependencies = [ + "base64 0.22.1", + "bincode", + "lazy_static", + "log", + "rand 0.8.5", + "solana-perf", + "solana-sdk", + "solana-short-vec", +] + +[[package]] +name = "solana-transaction-status" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "254b3f1295b8654604d1f1b2980a4ec81621c071cc7bcbb8b3e6eb44ce98e8b1" +dependencies = [ + "Inflector", + "base64 0.22.1", + "bincode", + "borsh 1.5.5", + "bs58", + "lazy_static", + "log", + "serde", + "serde_derive", + "serde_json", + "solana-account-decoder", + "solana-sdk", + "solana-transaction-status-client-types", + "spl-associated-token-account", + "spl-memo", + "spl-token", + "spl-token-2022", + "spl-token-group-interface", + "spl-token-metadata-interface", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-transaction-status-client-types" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a853cb1b1d5d1b521a51ae4666668f321505f0280839b00337d2620a9aba641" +dependencies = [ + "base64 0.22.1", + "bincode", + "bs58", + "serde", + "serde_derive", + "serde_json", + "solana-account-decoder-client-types", + "solana-sdk", + "solana-signature", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-type-overrides" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4347abe10a8290cb6b135b1e40115e4d390d29588fb5ba598be891a98d09e10d" +dependencies = [ + "lazy_static", + "rand 0.8.5", +] + +[[package]] +name = "solana-udp-client" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b3064f000984b1f1032b3686577e452c423cbe3f8208efc713c16408f3a4086" +dependencies = [ + "async-trait", + "solana-connection-cache", + "solana-net-utils", + "solana-sdk", + "solana-streamer", + "thiserror 1.0.69", + "tokio", +] + +[[package]] +name = "solana-version" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85b16c635fe2ccc3287bd5f84c6c86fbf316510df4229506d0bd9af50f2f1780" +dependencies = [ + "semver", + "serde", + "serde_derive", + "solana-feature-set", + "solana-sanitize", + "solana-serde-varint", +] + +[[package]] +name = "solana-vote" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "228c93777a3ad6dc60abe422c558e8476ed0de4fe2b8784dfacb07951ca38355" +dependencies = [ + "itertools 0.12.1", + "log", + "serde", + "serde_derive", + "solana-sdk", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-vote-program" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94b556c4d1e742e8ab829bfa33b01cc22b823e7f42351e7ba24e4b2e26c3138f" +dependencies = [ + "bincode", + "log", + "num-derive", + "num-traits", + "serde", + "serde_derive", + "solana-feature-set", + "solana-metrics", + "solana-program", + "solana-program-runtime", + "solana-sdk", + "thiserror 1.0.69", +] + +[[package]] +name = "solana-zk-elgamal-proof-program" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16c16a1e687c3f2f88785d8fb8e802dba2b46430f970cd61588fbd3a78371ef4" +dependencies = [ + "bytemuck", + "num-derive", + "num-traits", + "solana-log-collector", + "solana-program-runtime", + "solana-sdk", + "solana-zk-sdk", +] + +[[package]] +name = "solana-zk-sdk" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bea58ce4bcac4c6f3577ffc753b8bff3d259169bde1827b4466acb5daae088d2" +dependencies = [ + "aes-gcm-siv", + "base64 0.22.1", + "bincode", + "bytemuck", + "bytemuck_derive", + "curve25519-dalek 4.1.3", + "itertools 0.12.1", + "js-sys", + "lazy_static", + "merlin", + "num-derive", + "num-traits", + "rand 0.8.5", + "serde", + "serde_derive", + "serde_json", + "sha3", + "solana-derivation-path", + "solana-program", + "solana-sdk", + "subtle", + "thiserror 1.0.69", + "wasm-bindgen", + "zeroize", +] + +[[package]] +name = "solana-zk-token-proof-program" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdf2fd51bccc6be1173e4541f8a1390746e080d77165ee5fc40a9a390a82c55b" +dependencies = [ + "bytemuck", + "num-derive", + "num-traits", + "solana-feature-set", + "solana-log-collector", + "solana-program-runtime", + "solana-sdk", + "solana-zk-token-sdk", +] + +[[package]] +name = "solana-zk-token-sdk" +version = "2.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4340e5b7e4c3aa1d41ee638ab7d13eb1bcfc32d59c275a9f41838f059728aa6" +dependencies = [ + "aes-gcm-siv", + "base64 0.22.1", + "bincode", + "bytemuck", + "bytemuck_derive", + "byteorder", + "curve25519-dalek 4.1.3", + "itertools 0.12.1", + "lazy_static", + "merlin", + "num-derive", + "num-traits", + "rand 0.8.5", + "serde", + "serde_derive", + "serde_json", + "sha3", + "solana-curve25519", + "solana-derivation-path", + "solana-program", + "solana-sdk", + "subtle", + "thiserror 1.0.69", + "zeroize", +] + +[[package]] +name = "solana_rbpf" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c1941b5ef0c3ce8f2ac5dd984d0fb1a97423c4ff2a02eec81e3913f02e2ac2b" +dependencies = [ + "byteorder", + "combine 3.8.1", + "hash32", + "libc", + "log", + "rand 0.8.5", + "rustc-demangle", + "scroll", + "thiserror 1.0.69", + "winapi", +] + +[[package]] +name = "sp1-solana" +version = "0.1.0" +source = "git+https://github.com/succinctlabs/sp1-solana#768d62d9a8831f2b5600574fd5d96948eb7ebfc0" +dependencies = [ + "ark-bn254", + "ark-ff", + "ark-serialize", + "groth16-solana", + "hex", + "num-bigint 0.4.6", + "sha2 0.10.8", + "thiserror 1.0.69", +] + +[[package]] +name = "spin" +version = "0.9.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" + +[[package]] +name = "spinning_top" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d96d2d1d716fb500937168cc09353ffdc7a012be8475ac7308e1bdf0e3923300" +dependencies = [ + "lock_api", +] + +[[package]] +name = "spl-associated-token-account" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68034596cf4804880d265f834af1ff2f821ad5293e41fa0f8f59086c181fc38e" +dependencies = [ + "assert_matches", + "borsh 1.5.5", + "num-derive", + "num-traits", + "solana-program", + "spl-token", + "spl-token-2022", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-discriminator" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a38ea8b6dedb7065887f12d62ed62c1743aa70749e8558f963609793f6fb12bc" +dependencies = [ + "bytemuck", + "solana-program", + "spl-discriminator-derive", +] + +[[package]] +name = "spl-discriminator-derive" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9e8418ea6269dcfb01c712f0444d2c75542c04448b480e87de59d2865edc750" +dependencies = [ + "quote", + "spl-discriminator-syn", + "syn 2.0.98", +] + +[[package]] +name = "spl-discriminator-syn" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c1f05593b7ca9eac7caca309720f2eafb96355e037e6d373b909a80fe7b69b9" +dependencies = [ + "proc-macro2", + "quote", + "sha2 0.10.8", + "syn 2.0.98", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-memo" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0dba2f2bb6419523405d21c301a32c9f9568354d4742552e7972af801f4bdb3" +dependencies = [ + "solana-program", +] + +[[package]] +name = "spl-pod" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c704c88fc457fa649ba3aabe195c79d885c3f26709efaddc453c8de352c90b87" +dependencies = [ + "borsh 1.5.5", + "bytemuck", + "bytemuck_derive", + "solana-program", + "solana-zk-token-sdk", + "spl-program-error", +] + +[[package]] +name = "spl-program-error" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7b28bed65356558133751cc32b48a7a5ddfc59ac4e941314630bbed1ac10532" +dependencies = [ + "num-derive", + "num-traits", + "solana-program", + "spl-program-error-derive", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-program-error-derive" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6d375dd76c517836353e093c2dbb490938ff72821ab568b545fd30ab3256b3e" +dependencies = [ + "proc-macro2", + "quote", + "sha2 0.10.8", + "syn 2.0.98", +] + +[[package]] +name = "spl-tlv-account-resolution" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37a75a5f0fcc58126693ed78a17042e9dc53f07e357d6be91789f7d62aff61a4" +dependencies = [ + "bytemuck", + "solana-program", + "spl-discriminator", + "spl-pod", + "spl-program-error", + "spl-type-length-value", +] + +[[package]] +name = "spl-token" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70a0f06ac7f23dc0984931b1fe309468f14ea58e32660439c1cef19456f5d0e3" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive", + "num-traits", + "num_enum", + "solana-program", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-token-2022" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c10f3483e48679619c76598d4e4aebb955bc49b0a5cc63323afbf44135c9bf" +dependencies = [ + "arrayref", + "bytemuck", + "num-derive", + "num-traits", + "num_enum", + "solana-program", + "solana-security-txt", + "solana-zk-token-sdk", + "spl-memo", + "spl-pod", + "spl-token", + "spl-token-group-interface", + "spl-token-metadata-interface", + "spl-transfer-hook-interface", + "spl-type-length-value", + "thiserror 1.0.69", +] + +[[package]] +name = "spl-token-group-interface" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df8752b85a5ecc1d9f3a43bce3dd9a6a053673aacf5deb513d1cbb88d3534ffd" +dependencies = [ + "bytemuck", + "solana-program", + "spl-discriminator", + "spl-pod", + "spl-program-error", +] + +[[package]] +name = "spl-token-metadata-interface" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6c2318ddff97e006ed9b1291ebec0750a78547f870f62a69c56fe3b46a5d8fc" +dependencies = [ + "borsh 1.5.5", + "solana-program", + "spl-discriminator", + "spl-pod", + "spl-program-error", + "spl-type-length-value", +] + +[[package]] +name = "spl-transfer-hook-interface" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a110f33d941275d9f868b96daaa993f1e73b6806cc8836e43075b4d3ad8338a7" +dependencies = [ + "arrayref", + "bytemuck", + "solana-program", + "spl-discriminator", + "spl-pod", + "spl-program-error", + "spl-tlv-account-resolution", + "spl-type-length-value", +] + +[[package]] +name = "spl-type-length-value" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdcd73ec187bc409464c60759232e309f83b52a18a9c5610bf281c9c6432918c" +dependencies = [ + "bytemuck", + "solana-program", + "spl-discriminator", + "spl-pod", + "spl-program-error", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "strum" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "063e6045c0e62079840579a7e47a355ae92f60eb74daaf156fb1e84ba164e63f" +dependencies = [ + "strum_macros", +] + +[[package]] +name = "strum_macros" +version = "0.24.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e385be0d24f186b4ce2f9982191e7101bb737312ad61c1f2f984f34bcf85d59" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "rustversion", + "syn 1.0.109", +] + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "symlink" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7973cce6668464ea31f176d85b13c7ab3bba2cb3b77a2ed26abd7801688010a" + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.98" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36147f1a48ae0ec2b5b3bc5b537d267457555a10dc06f3dbc8cb11ba3006d3b1" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" + +[[package]] +name = "synstructure" +version = "0.12.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f36bdaa60a83aca3921b5259d5400cbf5e90fc51931376a9bd4a0eb79aa7210f" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", + "unicode-xid", +] + +[[package]] +name = "synstructure" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "system-configuration" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" +dependencies = [ + "bitflags 1.3.2", + "core-foundation", + "system-configuration-sys", +] + +[[package]] +name = "system-configuration-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "tar" +version = "0.4.43" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c65998313f8e17d0d553d28f91a0df93e4dbbbf770279c7bc21ca0f09ea1a1f6" +dependencies = [ + "filetime", + "libc", + "xattr", +] + +[[package]] +name = "tarpc" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c38a012bed6fb9681d3bf71ffaa4f88f3b4b9ed3198cda6e4c8462d24d4bb80" +dependencies = [ + "anyhow", + "fnv", + "futures", + "humantime", + "opentelemetry", + "pin-project", + "rand 0.8.5", + "serde", + "static_assertions", + "tarpc-plugins", + "thiserror 1.0.69", + "tokio", + "tokio-serde", + "tokio-util 0.6.10", + "tracing", + "tracing-opentelemetry", +] + +[[package]] +name = "tarpc-plugins" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ee42b4e559f17bce0385ebf511a7beb67d5cc33c12c96b7f4e9789919d9c10f" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "task-local-extensions" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba323866e5d033818e3240feeb9f7db2c4296674e4d9e16b97b7bf8f490434e8" +dependencies = [ + "pin-utils", +] + +[[package]] +name = "tempfile" +version = "3.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38c246215d7d24f48ae091a2902398798e05d978b24315d6efbc00ede9a8bb91" +dependencies = [ + "cfg-if", + "fastrand", + "getrandom 0.3.1", + "once_cell", + "rustix", + "windows-sys 0.59.0", +] + +[[package]] +name = "termcolor" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "termtree" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f50febec83f5ee1df3015341d8bd429f2d1cc62bcba7ea2076759d315084683" + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d452f284b73e6d76dd36758a0c8684b1d5be31f92b89d07fd5822175732206fc" +dependencies = [ + "thiserror-impl 2.0.11", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26afc1baea8a989337eeb52b6e72a039780ce45c3edfcc9c5b9d112feeb173c2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "thread_local" +version = "1.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" +dependencies = [ + "cfg-if", + "once_cell", +] + +[[package]] +name = "time" +version = "0.3.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35e7868883861bd0e56d9ac6efcaaca0d6d5d82a2a7ec8209ff492c07cf37b21" +dependencies = [ + "deranged", + "itoa", + "num-conv", + "powerfmt", + "serde", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" + +[[package]] +name = "time-macros" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2834e6017e3e5e4b9834939793b282bc03b37a3336245fa820e35e233e2a85de" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tinystr" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "022db8904dfa342efe721985167e9fcd16c29b226db4397ed752a761cfce81e8" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "tokio" +version = "1.43.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d61fa4ffa3de412bfea335c6ecff681de2b609ba3c77ef3e00e521813a9ed9e" +dependencies = [ + "backtrace", + "bytes", + "libc", + "mio", + "parking_lot", + "pin-project-lite", + "signal-hook-registry", + "socket2", + "tokio-macros", + "windows-sys 0.52.0", +] + +[[package]] +name = "tokio-macros" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "tokio-rustls" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" +dependencies = [ + "rustls 0.21.12", + "tokio", +] + +[[package]] +name = "tokio-serde" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "911a61637386b789af998ee23f50aa30d5fd7edcec8d6d3dedae5e5815205466" +dependencies = [ + "bincode", + "bytes", + "educe", + "futures-core", + "futures-sink", + "pin-project", + "serde", + "serde_json", +] + +[[package]] +name = "tokio-stream" +version = "0.1.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eca58d7bba4a75707817a2c44174253f9236b2d5fbd055602e9d5c07c139a047" +dependencies = [ + "futures-core", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "tokio-tungstenite" +version = "0.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "212d5dcb2a1ce06d81107c3d0ffa3121fe974b73f068c8282cb1c32328113b6c" +dependencies = [ + "futures-util", + "log", + "rustls 0.21.12", + "tokio", + "tokio-rustls", + "tungstenite", + "webpki-roots 0.25.4", +] + +[[package]] +name = "tokio-util" +version = "0.6.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36943ee01a6d67977dd3f84a5a1d2efeb4ada3a1ae771cadfaa535d9d9fc6507" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "log", + "pin-project-lite", + "slab", + "tokio", +] + +[[package]] +name = "tokio-util" +version = "0.7.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7fcaa8d55a2bdd6b83ace262b016eca0d79ee02818c5c1bcdf0305114081078" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "toml" +version = "0.5.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" +dependencies = [ + "serde", +] + +[[package]] +name = "toml_datetime" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41" + +[[package]] +name = "toml_edit" +version = "0.22.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02a8b472d1a3d7c18e2d61a489aee3453fd9031c33e4f55bd533f4a7adca1bee" +dependencies = [ + "indexmap", + "toml_datetime", + "winnow", +] + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.41" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" +dependencies = [ + "log", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "395ae124c09f9e6918a2310af6038fba074bcf474ac352496d5910dd59a2226d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "tracing-core" +version = "0.1.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c" +dependencies = [ + "once_cell", + "valuable", +] + +[[package]] +name = "tracing-opentelemetry" +version = "0.17.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbbe89715c1dbbb790059e2565353978564924ee85017b5fff365c872ff6721f" +dependencies = [ + "once_cell", + "opentelemetry", + "tracing", + "tracing-core", + "tracing-subscriber", +] + +[[package]] +name = "tracing-subscriber" +version = "0.3.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8189decb5ac0fa7bc8b96b7cb9b2701d60d48805aca84a238004d665fcc4008" +dependencies = [ + "sharded-slab", + "thread_local", + "tracing-core", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "tungstenite" +version = "0.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e3dac10fd62eaf6617d3a904ae222845979aec67c615d1c842b4002c7666fb9" +dependencies = [ + "byteorder", + "bytes", + "data-encoding", + "http", + "httparse", + "log", + "rand 0.8.5", + "rustls 0.21.12", + "sha1", + "thiserror 1.0.69", + "url", + "utf-8", + "webpki-roots 0.24.0", +] + +[[package]] +name = "typenum" +version = "1.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" + +[[package]] +name = "unicase" +version = "2.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75b844d17643ee918803943289730bec8aac480150456169e647ed0b576ba539" + +[[package]] +name = "unicode-ident" +version = "1.0.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a210d160f08b701c8721ba1c726c11662f877ea6b7094007e1ca9a1041945034" + +[[package]] +name = "unicode-width" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd" + +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[package]] +name = "universal-hash" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea" +dependencies = [ + "crypto-common", + "subtle", +] + +[[package]] +name = "unreachable" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56" +dependencies = [ + "void", +] + +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[package]] +name = "uriparse" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0200d0fc04d809396c2ad43f3c95da3582a2556eba8d453c1087f4120ee352ff" +dependencies = [ + "fnv", + "lazy_static", +] + +[[package]] +name = "url" +version = "2.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", +] + +[[package]] +name = "utf-8" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" + +[[package]] +name = "utf16_iter" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "valuable" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" + +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "void" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + +[[package]] +name = "wasi" +version = "0.9.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" + +[[package]] +name = "wasi" +version = "0.11.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" + +[[package]] +name = "wasi" +version = "0.13.3+wasi-0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26816d2e1a4a36a2940b96c5296ce403917633dff8f3440e9b236ed6f6bacad2" +dependencies = [ + "wit-bindgen-rt", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", +] + +[[package]] +name = "wasm-bindgen-backend" +version = "0.2.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6" +dependencies = [ + "bumpalo", + "log", + "proc-macro2", + "quote", + "syn 2.0.98", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.50" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61" +dependencies = [ + "cfg-if", + "js-sys", + "once_cell", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", + "wasm-bindgen-backend", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "web-sys" +version = "0.3.77" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web-time" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "webpki-root-certs" +version = "0.26.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09aed61f5e8d2c18344b3faa33a4c837855fe56642757754775548fee21386c4" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "webpki-roots" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b291546d5d9d1eab74f069c77749f2cb8504a12caa20f0f2de93ddbf6f411888" +dependencies = [ + "rustls-webpki 0.101.7", +] + +[[package]] +name = "webpki-roots" +version = "0.25.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1" + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" +dependencies = [ + "windows-sys 0.59.0", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "windows-core" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +dependencies = [ + "windows-targets 0.48.5", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +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" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +dependencies = [ + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "winnow" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86e376c75f4f43f44db463cf729e0d3acbf954d13e22c51e26e4c264b4ab545f" +dependencies = [ + "memchr", +] + +[[package]] +name = "winreg" +version = "0.50.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1" +dependencies = [ + "cfg-if", + "windows-sys 0.48.0", +] + +[[package]] +name = "wit-bindgen-rt" +version = "0.33.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3268f3d866458b787f390cf61f4bbb563b922d091359f9608842999eaee3943c" +dependencies = [ + "bitflags 2.8.0", +] + +[[package]] +name = "write16" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936" + +[[package]] +name = "writeable" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51" + +[[package]] +name = "x509-parser" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e0ecbeb7b67ce215e40e3cc7f2ff902f94a223acf44995934763467e7b1febc8" +dependencies = [ + "asn1-rs", + "base64 0.13.1", + "data-encoding", + "der-parser", + "lazy_static", + "nom", + "oid-registry", + "rusticata-macros", + "thiserror 1.0.69", + "time", +] + +[[package]] +name = "xattr" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e105d177a3871454f754b33bb0ee637ecaaac997446375fd3e5d43a2ed00c909" +dependencies = [ + "libc", + "linux-raw-sys", + "rustix", +] + +[[package]] +name = "yoke" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "120e6aef9aa629e3d4f52dc8cc43a015c7724194c97dfaf45180d2daf2b77f40" +dependencies = [ + "serde", + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", + "synstructure 0.13.1", +] + +[[package]] +name = "zerocopy" +version = "0.7.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" +dependencies = [ + "byteorder", + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.7.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "zerofrom" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cff3ee08c995dee1859d998dea82f7374f2826091dd9cd47def953cae446cd2e" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", + "synstructure 0.13.1", +] + +[[package]] +name = "zeroize" +version = "1.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "zerovec" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.98", +] + +[[package]] +name = "zstd" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcf2b778a664581e31e389454a7072dab1647606d44f7feea22cd5abb9c9f3f9" +dependencies = [ + "zstd-safe", +] + +[[package]] +name = "zstd-safe" +version = "7.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54a3ab4db68cea366acc5c897c7b4d4d1b8994a9cd6e6f841f8964566a419059" +dependencies = [ + "zstd-sys", +] + +[[package]] +name = "zstd-sys" +version = "2.0.13+zstd.1.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38ff0f21cfee8f97d94cef41359e0c89aa6113028ab0291aa8ca0038995a95aa" +dependencies = [ + "cc", + "pkg-config", +] diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..81b3a27 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,26 @@ +[workspace] +resolver = "2" +members = [ + "solana/automata-dcap-client", + "solana/programs/*" +] + +[workspace.package] +version = "0.1.0" +edition = "2021" +authors = ["Automata Team"] +homepage = "https://ata.network/" +license = "Apache-2.0" + +[workspace.dependencies] +anyhow = { version = "^1.0.93" } +borsh = { version = "^1.5.3" } +sha2 = { version = "0.10.8" } +hex = { version = "0.4.3" } +solana-sdk = { version = "2.1.6" } +solana-rpc-client = { version = "2.1.6" } +solana-program = { version = "2.1.6" } + +# Patch zerorize, see: https://github.com/solana-labs/solana/issues/26688 +[patch.crates-io] +curve25519-dalek = { git = "https://github.com/ivs/curve25519-dalek", branch = "rustls-dep-hell" } diff --git a/README.md b/README.md index a7624db..96e597c 100644 --- a/README.md +++ b/README.md @@ -9,166 +9,53 @@ # Automata DCAP Attestation [![Automata DCAP Attestation](https://img.shields.io/badge/Power%20By-Automata-orange.svg)](https://github.com/automata-network) -## Summary - -Automata DCAP Attestation consists of three parts: - -- PCCS Router: A central contract to read collaterals from [`automata-on-chain-pccs`](https://github.com/automata-network/automata-on-chain-pccs) - -- Automata DCAP Attestation: This is the entrypoint contract for users to submit a quote to be verified. This contract parses the Quote header to identify the version, which then forwards the quote to the respective QuoteVerifier contract. - -- Quote Verifier(s): This contract provides the full implementation on verifying a given quote specific to its version. This contract is intended to be called only from the Automata DCAP Attestation contract. - -## On-Chain vs SNARK Attestations - -Automata DCAP Attestation contract implements two attestation methods available to users. Here is a quick comparison: - -| | On-Chain | Groth16 Proof Verification with RiscZero | Groth16 Proof Verification with SP1 V3 | Plonk Proof Verification with SP1 V3| -| --- | --- | --- | --- | --- | -| Quote Verification Time | Instant | Proving takes 2 - 5 minutes, instant verification | Proving takes <2 minutes, instant verification | Proving takes <2 minutes, instant verification | -| Gas Cost | ~4-5M gas (varies by collateral size) | 351k gas | 325k gas | 410k gas | -| Execution | Runs fully on-chain | Execution proven by remote prover Bonsai | Execution proven by the SP1 Network | Execution proven by the SP1 Network | - -## Integration - -To integrate your contract with Automata DCAP Attestation, you need to first install [Foundry](https://book.getfoundry.sh/getting-started/installation). - -Add to your dependency, by running: - -```bash -forge install automata-network/automata-dcap-attestation -``` - -Then, add the following to your `remappings.txt` - -``` -@automata-network/dcap-attestation/=lib/automata-dcap-attestation/contracts/ -``` - -### Example - -```solidity -import "@automata-network/dcap-attestation/AutomataDcapAttestationFee.sol"; - -contract ExampleDcapContract { - - AutomataDcapAttestationFee attest; - - constructor(address _attest) { - attest = AutomataDcapAttestationFee(_attest); - } - - // On-Chain Attestation example - function attestOnChain(bytes calldata quote) public { - (bool success, bytes memory output) = attest.verifyAndAttestOnChain(quote); - - if (success) { - // ... implementation to handle successful attestations - } else { - string memory errorMessage = string(output); - // ... implementation to handle failed attestations - } - } - - // SNARK Attestation example - // ZkCoProcessorType can either be RiscZero or Succinct - function attestWithSnark( - bytes calldata output, - ZkCoProcessorType zkvm, - bytes calldata proofBytes - ) public - { - (bool success, bytes memory output) = attest.verifyAndAttestWithZKProof( - output, - zkvm, - proofBytes - ); - - if (success) { - // ... implementation to handle successful attestations - } else { - string memory errorMessage = string(output); - // ... implementation to handle failed attestations - } - } - -} -``` - ---- - -# BUIDL 🛠️ - -## Getting Started - -Clone this repo, by running the following command: - -```bash -git clone git@github.com:automata-network/automata-dcap-attestation.git --recurse-submodules -``` - -Before you begin, make sure to create a copy of the `.env` file with the example provided. Then, please provide any remaining variables that are missing. - -```bash -cp .env.example .env -``` +## Table of Contents +- [Summary](#summary) +- [Automata DCAP Attestation on EVM](#automata-dcap-attestation-on-evm) +- [Automata DCAP Attestation on Solana](#automata-dcap-attestation-on-solana) --- -## Building With Foundry - -Compile the contracts: - -```bash -forge build -``` - -Testing the contracts: +## Summary -```bash -forge test -``` +This repo serves as a code base for the Intel Data Center Attestation Primitive (DCAP) Web3-based Quote Verification program for both EVM and Solana. -To view gas report, pass the `--gas-report` flag. +Currently on the EVM, users can verify DCAP quotes with either full on-chain execution or using SNARK proofs by executing [DCAP zkVM Programs](https://github.com/automata-network/tdx-attestation-sdk/tree/main/zk) on zkVMs, such as RiscZero or Succinct SP1. We plan to add support for more zkVMs in the future. -To provide additional test cases, please include those in the `/forge-test` directory. +The Solana program currently only supports SNARK proofs verification. -To provide additional scripts, please include those in the `/forge-script` directory. +### zkProgram Identifiers -### Deployment Scripts +These identifiers are a required parameter for SNARK proof verifications, to show that the proofs are generated by the intended zkVM Program. -Deploy the PCCS Router: +The [ImageID](https://dev.risczero.com/terminology#image-id) currently for the DCAP RiscZero Guest Program is `c2eafe1ba01610f3b71281f9dd3280b33d97370bb68d3ada2925d391be245e10`. -```bash -forge script DeployRouter --rpc-url $RPC_URL --broadcast -vvvv -``` +The [VKEY](https://docs.succinct.xyz/verification/onchain/solidity-sdk.html?#finding-your-program-vkey) currently for the DCAP SP1 Program is +`004be684aaf90b70fb2d8f586ec96c36cee5f6533850b14e8b5568f4dbf31f8e`. -Deploy Automata DCAP Attestation Entrypoint: +--- -```bash -forge script AttestationScript --rpc-url $RPC_URL --broadcast -vvvv --sig "deployEntrypoint()" -``` +## Automata DCAP Attestation on EVM -Deploy Quote Verifier(s): +It consists of three smart contracts: -```bash -forge script DeployV3 --rpc-url $RPC_URL --broadcast -vvvv -``` +- PCCS Router: A central contract to read collaterals from [`automata-on-chain-pccs`](https://github.com/automata-network/automata-on-chain-pccs) -The naming format for the script is simply `DeployV{x}`, where `x` is the quote version supported by the verifier. Currently, we only support V3 and V4 quotes. +- Automata DCAP Attestation: This is the entrypoint contract for users to submit a quote to be verified. This contract parses the Quote header to identify the version, which then forwards the quote to the respective QuoteVerifier contract. -Whitelist QuoteVerifier(s) in the Entrypoint contract: +- Quote Verifier(s): This contract provides the full implementation to verify a given quote specific to its version. This contract is intended to be called only from the Automata DCAP Attestation contract. -```bash -forge script AttestationScript --rpc-url $RPC_URL --broadcast -vvvv --sig "configVerifier(address)" -``` +### On-Chain vs SNARK Attestations -#### Deployment Information +Automata DCAP Attestation contract implements two attestation methods available to users. Here is a quick comparison: -The [ImageID](https://dev.risczero.com/terminology#image-id) currently used for the DCAP RiscZero Guest Program is `83613a8beec226d1f29714530f1df791fa16c2c4dfcf22c50ab7edac59ca637f`. +| | On-Chain | Groth16 Proof Verification with RiscZero v1.2.1 | Groth16 Proof Verification with SP1 V4 | Plonk Proof Verification with SP1 V4| +| --- | --- | --- | --- | --- | +| Quote Verification Time | Instant | Proving takes <2 minutes, instant verification | Proving takes ~3 minutes, instant verification | Proving takes ~5 minutes, instant verification | +| Gas Cost | ~4-5M gas (varies by collateral size) | 360k gas | 333k gas | 419k gas | +| Execution | Runs fully on-chain | Execution proven by remote prover Bonsai | Execution proven by the SP1 Network | Execution proven by the SP1 Network | -The [VKEY](https://docs.succinct.xyz/verification/onchain/solidity-sdk.html?#finding-your-program-vkey) currently used for the DCAP SP1 Program is -`0043e4e0c286cf4a2c03472ca2384f35a008558bc5de4e0f39d1d1bc989badca`. +### Deployment > ℹ️ **Note**: > @@ -176,7 +63,7 @@ The [VKEY](https://docs.succinct.xyz/verification/onchain/solidity-sdk.html?#fin > > To view deployments on the previous version (will be deprecated soon), you may refer to this [branch](https://github.com/automata-network/automata-dcap-attestation/tree/v0). -##### Testnet +#### Testnet | Contract | Network | Address | | --- | --- | --- | @@ -194,14 +81,14 @@ The [VKEY](https://docs.succinct.xyz/verification/onchain/solidity-sdk.html?#fin | | OP Sepolia | [0xaEd8bF5907fC8690b1cb70DFD459Ca5Ed1529246](https://sepolia-optimism.etherscan.io/address/0xaEd8bF5907fC8690b1cb70DFD459Ca5Ed1529246) | | | World Sepolia | [0xaEd8bF5907fC8690b1cb70DFD459Ca5Ed1529246](https://worldchain-sepolia.explorer.alchemy.com/address/0xaEd8bF5907fC8690b1cb70DFD459Ca5Ed1529246) | | | Arbitrum Sepolia | [0xaEd8bF5907fC8690b1cb70DFD459Ca5Ed1529246](https://sepolia.arbiscan.io/address/0xaEd8bF5907fC8690b1cb70DFD459Ca5Ed1529246) | -| `V3QuoteVerifier.sol` | Automata Testnet | [0x6cc70fDaB6248b374A7fD4930460F7b017190872](https://explorer-testnet.ata.network/address/0x6cc70fDaB6248b374A7fD4930460F7b017190872) | +| `V3QuoteVerifier.sol` | Automata Testnet | [0x03F3082cC6521179b30Bccf92561ea0576931Ffc](https://explorer-testnet.ata.network/address/0x03F3082cC6521179b30Bccf92561ea0576931Ffc) | | | Ethereum Sepolia | [0x6E64769A13617f528a2135692484B681Ee1a7169](https://sepolia.etherscan.io/address/0x6E64769A13617f528a2135692484B681Ee1a7169) | | | Ethereum Holesky | [0x4613038C93aF8963dc9E5e46c9fb3cbc68724df1](https://holesky.etherscan.io/address/0x4613038C93aF8963dc9E5e46c9fb3cbc68724df1) | | | Base Sepolia | [0x4613038C93aF8963dc9E5e46c9fb3cbc68724df1](https://sepolia.basescan.org/address/0x4613038C93aF8963dc9E5e46c9fb3cbc68724df1) | | | OP Sepolia | [0x4613038C93aF8963dc9E5e46c9fb3cbc68724df1](https://sepolia-optimism.etherscan.io/address/0x4613038C93aF8963dc9E5e46c9fb3cbc68724df1) | | | World Sepolia | [0x4613038C93aF8963dc9E5e46c9fb3cbc68724df1](https://worldchain-sepolia.explorer.alchemy.com/address/0x4613038C93aF8963dc9E5e46c9fb3cbc68724df1) | | | Arbitrum Sepolia | [0x4613038C93aF8963dc9E5e46c9fb3cbc68724df1](https://sepolia.arbiscan.io/address/0x4613038C93aF8963dc9E5e46c9fb3cbc68724df1) | -| `V4QuoteVerifier.sol` | Automata Testnet | [0x015E89a5fF935Fbc361DcB4Bac71e5cD8a5CeEe3](https://explorer-testnet.ata.network/address/0x015E89a5fF935Fbc361DcB4Bac71e5cD8a5CeEe3) | +| `V4QuoteVerifier.sol` | Automata Testnet | [0x72221D7D8eB8949383404B1d1027E5eBd39fE53C](https://explorer-testnet.ata.network/address/0x72221D7D8eB8949383404B1d1027E5eBd39fE53C) | | | Ethereum Sepolia | [0x90c14Bd25744d8b1E3971951BD56BfFf24dC053A](https://sepolia.etherscan.io/address/0x90c14Bd25744d8b1E3971951BD56BfFf24dC053A) | | | Ethereum Holesky | [0xdE13b52a02Bd0a48AcF4FCaefccb094b41135Ee2](https://holesky.etherscan.io/address/0xdE13b52a02Bd0a48AcF4FCaefccb094b41135Ee2) | | | Base Sepolia | [0xdE13b52a02Bd0a48AcF4FCaefccb094b41135Ee2](https://sepolia.basescan.org/address/0xdE13b52a02Bd0a48AcF4FCaefccb094b41135Ee2) | @@ -209,7 +96,7 @@ The [VKEY](https://docs.succinct.xyz/verification/onchain/solidity-sdk.html?#fin | | World Sepolia | [0xdE13b52a02Bd0a48AcF4FCaefccb094b41135Ee2](https://worldchain-sepolia.explorer.alchemy.com/address/0xdE13b52a02Bd0a48AcF4FCaefccb094b41135Ee2) | | | Arbitrum Sepolia | [0xdE13b52a02Bd0a48AcF4FCaefccb094b41135Ee2](https://sepolia.arbiscan.io/address/0xdE13b52a02Bd0a48AcF4FCaefccb094b41135Ee2) | -##### Mainnet +#### Mainnet | Contract | Network | Address | | --- | --- | --- | @@ -237,3 +124,39 @@ The [VKEY](https://docs.succinct.xyz/verification/onchain/solidity-sdk.html?#fin | | OP Mainnet | [0xdE13b52a02Bd0a48AcF4FCaefccb094b41135Ee2](https://optimistic.etherscan.io/address/0xdE13b52a02Bd0a48AcF4FCaefccb094b41135Ee2) | | | World Mainnet | [0xC86EE37Ee5030B9fF737F3E71f7611Abf5dfD9B7](https://worldchain-mainnet.explorer.alchemy.com/address/0xC86EE37Ee5030B9fF737F3E71f7611Abf5dfD9B7) | | | Arbitrum Mainnet | [0xdE13b52a02Bd0a48AcF4FCaefccb094b41135Ee2](https://arbiscan.io/address/0xdE13b52a02Bd0a48AcF4FCaefccb094b41135Ee2) | + + +--- + +## Automata DCAP Attestation on Solana + +### Overview + +The following diagram illustrates an overview of the execution flow of the DCAP Solana Program. + +![DCAP Solana Diagram](./docs/images/DCAP%20Solana%20Diagram.jpg) + +1. Invokes the `CreateDcapOutputAccount` instruction on the DCAP Program. +2. Reads the current count from DCAP Counter, which is used as seed to derive the address of the `VerifiedOutput` PDA. +3. Writes data to the `VerifiedOutput` PDA. +4. Increments the current count in DCAP Counter, which completes the `CreateDcapOutputAccount` instruction. +5. Invokes the `VerifyDcapProof` instruction on the DCAP Program. +6. Reads the output from the provided `VerifiedOutput` PDA address. +7. The output is pre-processed and converted into a Groth16 public input, then submitted along with the proofs to be verified with the corresponding zkVM verifier program. +8. Updates the data in `VerifiedOutput` PDA to indicate the status showing successful verification. +9. Downstream programs consume the data directly from the `VerifiedOutput` PDA. + +### zkVM Verifier Programs + +Depending on which zkVM programs that the user has chosen, the Automata DCAP Solana Program sends the processed `VerifiedOutput` along with proofs to one of the following programs: + +- [RiscZero Groth16 Verifier](https://github.com/risc0/risc0-solana/blob/main/solana-verifier/programs/groth_16_verifier/src/lib.rs), this is a general-purpose Groth16 Verifier built by RiscZero that can be called by any Solana programs to perform Groth16 Verifications. + +- [DCAP SP1 Solana Program](./solana/programs/dcap-sp1-solana-program/), this is a wrapper verifier program to be called only by the Automata DCAP Solana Program because it hardcodes the vkey. This program imports the [SP1 Solana Library](https://github.com/succinctlabs/sp1-solana/blob/master/example/program/src/lib.rs). + +### Deployment + +The DCAP Solana Program and Counter account have both been deployed to `devnet` at: + +- DCAP Program: `DcapE9GZZ2KSu6udeW1pVdmqBAHP9NMBLBrxUUYdw1Qk` +- DCAP Counter: `DcapH8Bt1y6MQHE1hR2Rp1WEBeWfog2Kh9UxtG8UMaNu` \ No newline at end of file diff --git a/docs/images/DCAP Solana Diagram.jpg b/docs/images/DCAP Solana Diagram.jpg new file mode 100644 index 0000000..c8f43d8 Binary files /dev/null and b/docs/images/DCAP Solana Diagram.jpg differ diff --git a/evm/.gitignore b/evm/.gitignore new file mode 100644 index 0000000..65a2030 --- /dev/null +++ b/evm/.gitignore @@ -0,0 +1,13 @@ +artifacts/ +cache*/ +node_modules/ +typechain-types/ +**/.DS_Store +out/ +**/.env + +# Ignores development broadcast logs +broadcast/**/31337/ +broadcast/**/run-*.json +broadcast/**/dry-run/ +!broadcast/**/*-latest.json \ No newline at end of file diff --git a/evm/README.md b/evm/README.md new file mode 100644 index 0000000..e803506 --- /dev/null +++ b/evm/README.md @@ -0,0 +1,151 @@ +# Automata DCAP Attestation on EVM Guide + +## Integration + +To integrate your contract with Automata DCAP Attestation, you need to first install [Foundry](https://book.getfoundry.sh/getting-started/installation). + +Add to your dependency, by running: + +```bash +forge install automata-network/automata-dcap-attestation +``` + +Then, add the following to your `remappings.txt` + +``` +@automata-network/dcap-attestation/=lib/automata-dcap-attestation/contracts/ +``` + +## Example + +```solidity +import "@automata-network/dcap-attestation/AutomataDcapAttestationFee.sol"; + +contract ExampleDcapContract { + + AutomataDcapAttestationFee attest; + + constructor(address _attest) { + attest = AutomataDcapAttestationFee(_attest); + } + + // On-Chain Attestation example + function attestOnChain(bytes calldata quote) public { + (bool success, bytes memory output) = attest.verifyAndAttestOnChain(quote); + + if (success) { + // ... implementation to handle successful attestations + } else { + string memory errorMessage = string(output); + // ... implementation to handle failed attestations + } + } + + // SNARK Attestation example + // ZkCoProcessorType can either be RiscZero or Succinct + function attestWithSnark( + bytes calldata output, + ZkCoProcessorType zkvm, + bytes calldata proofBytes + ) public + { + (bool success, bytes memory output) = attest.verifyAndAttestWithZKProof( + output, + zkvm, + proofBytes + ); + + if (success) { + // ... implementation to handle successful attestations + } else { + string memory errorMessage = string(output); + // ... implementation to handle failed attestations + } + } + +} +``` + +--- + +## BUIDL 🛠️ + +### Getting Started + +Clone this repo, by running the following command: + +```bash +git clone https://github.com/automata-network/automata-dcap-attestation.git --recurse-submodules +``` + +Before you begin, make sure to create a copy of the `.env` file with the example provided. Then, please provide any remaining variables that are missing. + +```bash +cp env/.testnet.env.example .env #or you can make a copy from examples for any network +``` + +### Building With Foundry + +Compile the contracts: + +```bash +forge build +``` + +Testing the contracts: + +```bash +forge test +``` + +To view gas report, pass the `--gas-report` flag. + +To provide additional test cases, please include those in the `/forge-test` directory. + +To provide additional scripts, please include those in the `/forge-script` directory. + +### Deployment Scripts + +#### Deploy the PCCS Router: + +```bash +forge script DeployRouter --rpc-url $RPC_URL --broadcast -vvvv +``` + +#### Deploy Automata DCAP Attestation Entrypoint: + +```bash +forge script AttestationScript --rpc-url $RPC_URL --broadcast -vvvv --sig "deployEntrypoint()" +``` + +### Automata DCAP Entrypoint zkVM Configuration + +RiscZero: +```bash +forge script AttestationScript --rpc-url $RPC_URL --broadcast -vvvv --sig "onfigureZk(uint8,address,bytes32)" 1 $RISC0_VERIFIER $DCAP_RISCZERO_IMAGE_ID +``` + +SP1: +```bash +forge script AttestationScript --rpc-url $RPC_URL --broadcast -vvvv --sig "onfigureZk(uint8,address,bytes32)" 2 $SP1_VERIFIER_GATEWAY $DCAP_SUCCINCT_VKEY +``` + +#### Deploy Quote Verifier(s): + +```bash +forge script DeployV3 --rpc-url $RPC_URL --broadcast -vvvv +``` + +The naming format for the script is simply `DeployV{x}`, where `x` is the quote version supported by the verifier. Currently, we only support V3 and V4 quotes. + +#### Add QuoteVerifier(s) to the Entrypoint contract: + +```bash +forge script AttestationScript --rpc-url $RPC_URL --broadcast -vvvv --sig "configVerifier(address)" +``` + +#### Grant QuoteVerifier(s) READ permission from the PCCS Router + +```bash +forge script DeployRouter --rpc-url $RPC_URL --broadcast -vvvv --sig "setAuthorizedCaller(address,bool)" true +``` \ No newline at end of file diff --git a/broadcast/AttestationScript.s.sol/1/configVerifier-latest.json b/evm/broadcast/AttestationScript.s.sol/1/configVerifier-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/1/configVerifier-latest.json rename to evm/broadcast/AttestationScript.s.sol/1/configVerifier-latest.json diff --git a/broadcast/AttestationScript.s.sol/1/configureZk-latest.json b/evm/broadcast/AttestationScript.s.sol/1/configureZk-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/1/configureZk-latest.json rename to evm/broadcast/AttestationScript.s.sol/1/configureZk-latest.json diff --git a/broadcast/AttestationScript.s.sol/1/deployEntrypoint-latest.json b/evm/broadcast/AttestationScript.s.sol/1/deployEntrypoint-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/1/deployEntrypoint-latest.json rename to evm/broadcast/AttestationScript.s.sol/1/deployEntrypoint-latest.json diff --git a/broadcast/AttestationScript.s.sol/10/configVerifier-latest.json b/evm/broadcast/AttestationScript.s.sol/10/configVerifier-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/10/configVerifier-latest.json rename to evm/broadcast/AttestationScript.s.sol/10/configVerifier-latest.json diff --git a/broadcast/AttestationScript.s.sol/10/configureZk-latest.json b/evm/broadcast/AttestationScript.s.sol/10/configureZk-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/10/configureZk-latest.json rename to evm/broadcast/AttestationScript.s.sol/10/configureZk-latest.json diff --git a/broadcast/AttestationScript.s.sol/10/deployEntrypoint-latest.json b/evm/broadcast/AttestationScript.s.sol/10/deployEntrypoint-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/10/deployEntrypoint-latest.json rename to evm/broadcast/AttestationScript.s.sol/10/deployEntrypoint-latest.json diff --git a/broadcast/AttestationScript.s.sol/11155111/configVerifier-latest.json b/evm/broadcast/AttestationScript.s.sol/11155111/configVerifier-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/11155111/configVerifier-latest.json rename to evm/broadcast/AttestationScript.s.sol/11155111/configVerifier-latest.json diff --git a/broadcast/AttestationScript.s.sol/11155111/configureZk-latest.json b/evm/broadcast/AttestationScript.s.sol/11155111/configureZk-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/11155111/configureZk-latest.json rename to evm/broadcast/AttestationScript.s.sol/11155111/configureZk-latest.json diff --git a/broadcast/AttestationScript.s.sol/11155111/deployEntrypoint-latest.json b/evm/broadcast/AttestationScript.s.sol/11155111/deployEntrypoint-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/11155111/deployEntrypoint-latest.json rename to evm/broadcast/AttestationScript.s.sol/11155111/deployEntrypoint-latest.json diff --git a/broadcast/AttestationScript.s.sol/11155420/configVerifier-latest.json b/evm/broadcast/AttestationScript.s.sol/11155420/configVerifier-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/11155420/configVerifier-latest.json rename to evm/broadcast/AttestationScript.s.sol/11155420/configVerifier-latest.json diff --git a/broadcast/AttestationScript.s.sol/11155420/configureZk-latest.json b/evm/broadcast/AttestationScript.s.sol/11155420/configureZk-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/11155420/configureZk-latest.json rename to evm/broadcast/AttestationScript.s.sol/11155420/configureZk-latest.json diff --git a/broadcast/AttestationScript.s.sol/11155420/deployEntrypoint-latest.json b/evm/broadcast/AttestationScript.s.sol/11155420/deployEntrypoint-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/11155420/deployEntrypoint-latest.json rename to evm/broadcast/AttestationScript.s.sol/11155420/deployEntrypoint-latest.json diff --git a/broadcast/AttestationScript.s.sol/1398243/configVerifier-latest.json b/evm/broadcast/AttestationScript.s.sol/1398243/configVerifier-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/1398243/configVerifier-latest.json rename to evm/broadcast/AttestationScript.s.sol/1398243/configVerifier-latest.json diff --git a/broadcast/AttestationScript.s.sol/1398243/configureZk-latest.json b/evm/broadcast/AttestationScript.s.sol/1398243/configureZk-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/1398243/configureZk-latest.json rename to evm/broadcast/AttestationScript.s.sol/1398243/configureZk-latest.json diff --git a/broadcast/AttestationScript.s.sol/1398243/deployEntrypoint-latest.json b/evm/broadcast/AttestationScript.s.sol/1398243/deployEntrypoint-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/1398243/deployEntrypoint-latest.json rename to evm/broadcast/AttestationScript.s.sol/1398243/deployEntrypoint-latest.json diff --git a/broadcast/AttestationScript.s.sol/1398243/risc0Config-latest.json b/evm/broadcast/AttestationScript.s.sol/1398243/risc0Config-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/1398243/risc0Config-latest.json rename to evm/broadcast/AttestationScript.s.sol/1398243/risc0Config-latest.json diff --git a/broadcast/AttestationScript.s.sol/17000/configVerifier-latest.json b/evm/broadcast/AttestationScript.s.sol/17000/configVerifier-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/17000/configVerifier-latest.json rename to evm/broadcast/AttestationScript.s.sol/17000/configVerifier-latest.json diff --git a/broadcast/AttestationScript.s.sol/17000/configureZk-latest.json b/evm/broadcast/AttestationScript.s.sol/17000/configureZk-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/17000/configureZk-latest.json rename to evm/broadcast/AttestationScript.s.sol/17000/configureZk-latest.json diff --git a/broadcast/AttestationScript.s.sol/17000/deployEntrypoint-latest.json b/evm/broadcast/AttestationScript.s.sol/17000/deployEntrypoint-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/17000/deployEntrypoint-latest.json rename to evm/broadcast/AttestationScript.s.sol/17000/deployEntrypoint-latest.json diff --git a/broadcast/AttestationScript.s.sol/42161/configVerifier-latest.json b/evm/broadcast/AttestationScript.s.sol/42161/configVerifier-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/42161/configVerifier-latest.json rename to evm/broadcast/AttestationScript.s.sol/42161/configVerifier-latest.json diff --git a/broadcast/AttestationScript.s.sol/42161/configureZk-latest.json b/evm/broadcast/AttestationScript.s.sol/42161/configureZk-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/42161/configureZk-latest.json rename to evm/broadcast/AttestationScript.s.sol/42161/configureZk-latest.json diff --git a/broadcast/AttestationScript.s.sol/42161/deployEntrypoint-latest.json b/evm/broadcast/AttestationScript.s.sol/42161/deployEntrypoint-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/42161/deployEntrypoint-latest.json rename to evm/broadcast/AttestationScript.s.sol/42161/deployEntrypoint-latest.json diff --git a/broadcast/AttestationScript.s.sol/421614/configVerifier-latest.json b/evm/broadcast/AttestationScript.s.sol/421614/configVerifier-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/421614/configVerifier-latest.json rename to evm/broadcast/AttestationScript.s.sol/421614/configVerifier-latest.json diff --git a/broadcast/AttestationScript.s.sol/421614/configureZk-latest.json b/evm/broadcast/AttestationScript.s.sol/421614/configureZk-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/421614/configureZk-latest.json rename to evm/broadcast/AttestationScript.s.sol/421614/configureZk-latest.json diff --git a/broadcast/AttestationScript.s.sol/421614/deployEntrypoint-latest.json b/evm/broadcast/AttestationScript.s.sol/421614/deployEntrypoint-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/421614/deployEntrypoint-latest.json rename to evm/broadcast/AttestationScript.s.sol/421614/deployEntrypoint-latest.json diff --git a/broadcast/AttestationScript.s.sol/480/configVerifier-latest.json b/evm/broadcast/AttestationScript.s.sol/480/configVerifier-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/480/configVerifier-latest.json rename to evm/broadcast/AttestationScript.s.sol/480/configVerifier-latest.json diff --git a/broadcast/AttestationScript.s.sol/480/configureZk-latest.json b/evm/broadcast/AttestationScript.s.sol/480/configureZk-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/480/configureZk-latest.json rename to evm/broadcast/AttestationScript.s.sol/480/configureZk-latest.json diff --git a/broadcast/AttestationScript.s.sol/480/deployEntrypoint-latest.json b/evm/broadcast/AttestationScript.s.sol/480/deployEntrypoint-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/480/deployEntrypoint-latest.json rename to evm/broadcast/AttestationScript.s.sol/480/deployEntrypoint-latest.json diff --git a/broadcast/AttestationScript.s.sol/4801/configVerifier-latest.json b/evm/broadcast/AttestationScript.s.sol/4801/configVerifier-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/4801/configVerifier-latest.json rename to evm/broadcast/AttestationScript.s.sol/4801/configVerifier-latest.json diff --git a/broadcast/AttestationScript.s.sol/4801/configureZk-latest.json b/evm/broadcast/AttestationScript.s.sol/4801/configureZk-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/4801/configureZk-latest.json rename to evm/broadcast/AttestationScript.s.sol/4801/configureZk-latest.json diff --git a/broadcast/AttestationScript.s.sol/4801/deployEntrypoint-latest.json b/evm/broadcast/AttestationScript.s.sol/4801/deployEntrypoint-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/4801/deployEntrypoint-latest.json rename to evm/broadcast/AttestationScript.s.sol/4801/deployEntrypoint-latest.json diff --git a/broadcast/AttestationScript.s.sol/65536/configVerifier-latest.json b/evm/broadcast/AttestationScript.s.sol/65536/configVerifier-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/65536/configVerifier-latest.json rename to evm/broadcast/AttestationScript.s.sol/65536/configVerifier-latest.json diff --git a/broadcast/AttestationScript.s.sol/65536/configureZk-latest.json b/evm/broadcast/AttestationScript.s.sol/65536/configureZk-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/65536/configureZk-latest.json rename to evm/broadcast/AttestationScript.s.sol/65536/configureZk-latest.json diff --git a/broadcast/AttestationScript.s.sol/65536/deployEntrypoint-latest.json b/evm/broadcast/AttestationScript.s.sol/65536/deployEntrypoint-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/65536/deployEntrypoint-latest.json rename to evm/broadcast/AttestationScript.s.sol/65536/deployEntrypoint-latest.json diff --git a/broadcast/AttestationScript.s.sol/8453/configVerifier-latest.json b/evm/broadcast/AttestationScript.s.sol/8453/configVerifier-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/8453/configVerifier-latest.json rename to evm/broadcast/AttestationScript.s.sol/8453/configVerifier-latest.json diff --git a/broadcast/AttestationScript.s.sol/8453/configureZk-latest.json b/evm/broadcast/AttestationScript.s.sol/8453/configureZk-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/8453/configureZk-latest.json rename to evm/broadcast/AttestationScript.s.sol/8453/configureZk-latest.json diff --git a/broadcast/AttestationScript.s.sol/8453/deployEntrypoint-latest.json b/evm/broadcast/AttestationScript.s.sol/8453/deployEntrypoint-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/8453/deployEntrypoint-latest.json rename to evm/broadcast/AttestationScript.s.sol/8453/deployEntrypoint-latest.json diff --git a/broadcast/AttestationScript.s.sol/84532/configVerifier-latest.json b/evm/broadcast/AttestationScript.s.sol/84532/configVerifier-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/84532/configVerifier-latest.json rename to evm/broadcast/AttestationScript.s.sol/84532/configVerifier-latest.json diff --git a/broadcast/AttestationScript.s.sol/84532/configureZk-latest.json b/evm/broadcast/AttestationScript.s.sol/84532/configureZk-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/84532/configureZk-latest.json rename to evm/broadcast/AttestationScript.s.sol/84532/configureZk-latest.json diff --git a/broadcast/AttestationScript.s.sol/84532/deployEntrypoint-latest.json b/evm/broadcast/AttestationScript.s.sol/84532/deployEntrypoint-latest.json similarity index 100% rename from broadcast/AttestationScript.s.sol/84532/deployEntrypoint-latest.json rename to evm/broadcast/AttestationScript.s.sol/84532/deployEntrypoint-latest.json diff --git a/broadcast/DeployRouter.s.sol/1/run-latest.json b/evm/broadcast/DeployRouter.s.sol/1/run-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/1/run-latest.json rename to evm/broadcast/DeployRouter.s.sol/1/run-latest.json diff --git a/broadcast/DeployRouter.s.sol/1/setAuthorizedCaller-latest.json b/evm/broadcast/DeployRouter.s.sol/1/setAuthorizedCaller-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/1/setAuthorizedCaller-latest.json rename to evm/broadcast/DeployRouter.s.sol/1/setAuthorizedCaller-latest.json diff --git a/broadcast/DeployRouter.s.sol/10/run-latest.json b/evm/broadcast/DeployRouter.s.sol/10/run-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/10/run-latest.json rename to evm/broadcast/DeployRouter.s.sol/10/run-latest.json diff --git a/broadcast/DeployRouter.s.sol/10/setAuthorizedCaller-latest.json b/evm/broadcast/DeployRouter.s.sol/10/setAuthorizedCaller-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/10/setAuthorizedCaller-latest.json rename to evm/broadcast/DeployRouter.s.sol/10/setAuthorizedCaller-latest.json diff --git a/broadcast/DeployRouter.s.sol/11155111/run-latest.json b/evm/broadcast/DeployRouter.s.sol/11155111/run-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/11155111/run-latest.json rename to evm/broadcast/DeployRouter.s.sol/11155111/run-latest.json diff --git a/broadcast/DeployRouter.s.sol/11155111/setAuthorizedCaller-latest.json b/evm/broadcast/DeployRouter.s.sol/11155111/setAuthorizedCaller-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/11155111/setAuthorizedCaller-latest.json rename to evm/broadcast/DeployRouter.s.sol/11155111/setAuthorizedCaller-latest.json diff --git a/broadcast/DeployRouter.s.sol/11155420/run-latest.json b/evm/broadcast/DeployRouter.s.sol/11155420/run-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/11155420/run-latest.json rename to evm/broadcast/DeployRouter.s.sol/11155420/run-latest.json diff --git a/broadcast/DeployRouter.s.sol/11155420/setAuthorizedCaller-latest.json b/evm/broadcast/DeployRouter.s.sol/11155420/setAuthorizedCaller-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/11155420/setAuthorizedCaller-latest.json rename to evm/broadcast/DeployRouter.s.sol/11155420/setAuthorizedCaller-latest.json diff --git a/broadcast/DeployRouter.s.sol/1398243/run-latest.json b/evm/broadcast/DeployRouter.s.sol/1398243/run-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/1398243/run-latest.json rename to evm/broadcast/DeployRouter.s.sol/1398243/run-latest.json diff --git a/broadcast/DeployRouter.s.sol/1398243/setAuthorizedCaller-latest.json b/evm/broadcast/DeployRouter.s.sol/1398243/setAuthorizedCaller-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/1398243/setAuthorizedCaller-latest.json rename to evm/broadcast/DeployRouter.s.sol/1398243/setAuthorizedCaller-latest.json diff --git a/broadcast/DeployRouter.s.sol/1398243/updateConfig-latest.json b/evm/broadcast/DeployRouter.s.sol/1398243/updateConfig-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/1398243/updateConfig-latest.json rename to evm/broadcast/DeployRouter.s.sol/1398243/updateConfig-latest.json diff --git a/broadcast/DeployRouter.s.sol/17000/run-latest.json b/evm/broadcast/DeployRouter.s.sol/17000/run-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/17000/run-latest.json rename to evm/broadcast/DeployRouter.s.sol/17000/run-latest.json diff --git a/broadcast/DeployRouter.s.sol/17000/setAuthorizedCaller-latest.json b/evm/broadcast/DeployRouter.s.sol/17000/setAuthorizedCaller-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/17000/setAuthorizedCaller-latest.json rename to evm/broadcast/DeployRouter.s.sol/17000/setAuthorizedCaller-latest.json diff --git a/broadcast/DeployRouter.s.sol/42161/run-latest.json b/evm/broadcast/DeployRouter.s.sol/42161/run-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/42161/run-latest.json rename to evm/broadcast/DeployRouter.s.sol/42161/run-latest.json diff --git a/broadcast/DeployRouter.s.sol/42161/setAuthorizedCaller-latest.json b/evm/broadcast/DeployRouter.s.sol/42161/setAuthorizedCaller-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/42161/setAuthorizedCaller-latest.json rename to evm/broadcast/DeployRouter.s.sol/42161/setAuthorizedCaller-latest.json diff --git a/broadcast/DeployRouter.s.sol/421614/run-latest.json b/evm/broadcast/DeployRouter.s.sol/421614/run-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/421614/run-latest.json rename to evm/broadcast/DeployRouter.s.sol/421614/run-latest.json diff --git a/broadcast/DeployRouter.s.sol/421614/setAuthorizedCaller-latest.json b/evm/broadcast/DeployRouter.s.sol/421614/setAuthorizedCaller-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/421614/setAuthorizedCaller-latest.json rename to evm/broadcast/DeployRouter.s.sol/421614/setAuthorizedCaller-latest.json diff --git a/broadcast/DeployRouter.s.sol/480/run-latest.json b/evm/broadcast/DeployRouter.s.sol/480/run-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/480/run-latest.json rename to evm/broadcast/DeployRouter.s.sol/480/run-latest.json diff --git a/broadcast/DeployRouter.s.sol/480/setAuthorizedCaller-latest.json b/evm/broadcast/DeployRouter.s.sol/480/setAuthorizedCaller-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/480/setAuthorizedCaller-latest.json rename to evm/broadcast/DeployRouter.s.sol/480/setAuthorizedCaller-latest.json diff --git a/broadcast/DeployRouter.s.sol/4801/run-latest.json b/evm/broadcast/DeployRouter.s.sol/4801/run-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/4801/run-latest.json rename to evm/broadcast/DeployRouter.s.sol/4801/run-latest.json diff --git a/broadcast/DeployRouter.s.sol/4801/setAuthorizedCaller-latest.json b/evm/broadcast/DeployRouter.s.sol/4801/setAuthorizedCaller-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/4801/setAuthorizedCaller-latest.json rename to evm/broadcast/DeployRouter.s.sol/4801/setAuthorizedCaller-latest.json diff --git a/broadcast/DeployRouter.s.sol/65536/run-latest.json b/evm/broadcast/DeployRouter.s.sol/65536/run-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/65536/run-latest.json rename to evm/broadcast/DeployRouter.s.sol/65536/run-latest.json diff --git a/broadcast/DeployRouter.s.sol/65536/setAuthorizedCaller-latest.json b/evm/broadcast/DeployRouter.s.sol/65536/setAuthorizedCaller-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/65536/setAuthorizedCaller-latest.json rename to evm/broadcast/DeployRouter.s.sol/65536/setAuthorizedCaller-latest.json diff --git a/broadcast/DeployRouter.s.sol/8453/run-latest.json b/evm/broadcast/DeployRouter.s.sol/8453/run-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/8453/run-latest.json rename to evm/broadcast/DeployRouter.s.sol/8453/run-latest.json diff --git a/broadcast/DeployRouter.s.sol/8453/setAuthorizedCaller-latest.json b/evm/broadcast/DeployRouter.s.sol/8453/setAuthorizedCaller-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/8453/setAuthorizedCaller-latest.json rename to evm/broadcast/DeployRouter.s.sol/8453/setAuthorizedCaller-latest.json diff --git a/broadcast/DeployRouter.s.sol/84532/run-latest.json b/evm/broadcast/DeployRouter.s.sol/84532/run-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/84532/run-latest.json rename to evm/broadcast/DeployRouter.s.sol/84532/run-latest.json diff --git a/broadcast/DeployRouter.s.sol/84532/setAuthorizedCaller-latest.json b/evm/broadcast/DeployRouter.s.sol/84532/setAuthorizedCaller-latest.json similarity index 100% rename from broadcast/DeployRouter.s.sol/84532/setAuthorizedCaller-latest.json rename to evm/broadcast/DeployRouter.s.sol/84532/setAuthorizedCaller-latest.json diff --git a/broadcast/DeployV3.s.sol/1/run-latest.json b/evm/broadcast/DeployV3.s.sol/1/run-latest.json similarity index 100% rename from broadcast/DeployV3.s.sol/1/run-latest.json rename to evm/broadcast/DeployV3.s.sol/1/run-latest.json diff --git a/broadcast/DeployV3.s.sol/10/run-latest.json b/evm/broadcast/DeployV3.s.sol/10/run-latest.json similarity index 100% rename from broadcast/DeployV3.s.sol/10/run-latest.json rename to evm/broadcast/DeployV3.s.sol/10/run-latest.json diff --git a/broadcast/DeployV3.s.sol/11155111/run-latest.json b/evm/broadcast/DeployV3.s.sol/11155111/run-latest.json similarity index 100% rename from broadcast/DeployV3.s.sol/11155111/run-latest.json rename to evm/broadcast/DeployV3.s.sol/11155111/run-latest.json diff --git a/broadcast/DeployV3.s.sol/11155420/run-latest.json b/evm/broadcast/DeployV3.s.sol/11155420/run-latest.json similarity index 100% rename from broadcast/DeployV3.s.sol/11155420/run-latest.json rename to evm/broadcast/DeployV3.s.sol/11155420/run-latest.json diff --git a/broadcast/DeployV3.s.sol/1398243/run-latest.json b/evm/broadcast/DeployV3.s.sol/1398243/run-latest.json similarity index 100% rename from broadcast/DeployV3.s.sol/1398243/run-latest.json rename to evm/broadcast/DeployV3.s.sol/1398243/run-latest.json diff --git a/broadcast/DeployV3.s.sol/17000/run-latest.json b/evm/broadcast/DeployV3.s.sol/17000/run-latest.json similarity index 100% rename from broadcast/DeployV3.s.sol/17000/run-latest.json rename to evm/broadcast/DeployV3.s.sol/17000/run-latest.json diff --git a/broadcast/DeployV3.s.sol/42161/run-latest.json b/evm/broadcast/DeployV3.s.sol/42161/run-latest.json similarity index 100% rename from broadcast/DeployV3.s.sol/42161/run-latest.json rename to evm/broadcast/DeployV3.s.sol/42161/run-latest.json diff --git a/broadcast/DeployV3.s.sol/421614/run-latest.json b/evm/broadcast/DeployV3.s.sol/421614/run-latest.json similarity index 100% rename from broadcast/DeployV3.s.sol/421614/run-latest.json rename to evm/broadcast/DeployV3.s.sol/421614/run-latest.json diff --git a/broadcast/DeployV3.s.sol/480/run-latest.json b/evm/broadcast/DeployV3.s.sol/480/run-latest.json similarity index 100% rename from broadcast/DeployV3.s.sol/480/run-latest.json rename to evm/broadcast/DeployV3.s.sol/480/run-latest.json diff --git a/broadcast/DeployV3.s.sol/4801/run-latest.json b/evm/broadcast/DeployV3.s.sol/4801/run-latest.json similarity index 100% rename from broadcast/DeployV3.s.sol/4801/run-latest.json rename to evm/broadcast/DeployV3.s.sol/4801/run-latest.json diff --git a/broadcast/DeployV3.s.sol/65536/run-latest.json b/evm/broadcast/DeployV3.s.sol/65536/run-latest.json similarity index 100% rename from broadcast/DeployV3.s.sol/65536/run-latest.json rename to evm/broadcast/DeployV3.s.sol/65536/run-latest.json diff --git a/broadcast/DeployV3.s.sol/8453/run-latest.json b/evm/broadcast/DeployV3.s.sol/8453/run-latest.json similarity index 100% rename from broadcast/DeployV3.s.sol/8453/run-latest.json rename to evm/broadcast/DeployV3.s.sol/8453/run-latest.json diff --git a/broadcast/DeployV3.s.sol/84532/run-latest.json b/evm/broadcast/DeployV3.s.sol/84532/run-latest.json similarity index 100% rename from broadcast/DeployV3.s.sol/84532/run-latest.json rename to evm/broadcast/DeployV3.s.sol/84532/run-latest.json diff --git a/broadcast/DeployV4.s.sol/1/run-latest.json b/evm/broadcast/DeployV4.s.sol/1/run-latest.json similarity index 100% rename from broadcast/DeployV4.s.sol/1/run-latest.json rename to evm/broadcast/DeployV4.s.sol/1/run-latest.json diff --git a/broadcast/DeployV4.s.sol/10/run-latest.json b/evm/broadcast/DeployV4.s.sol/10/run-latest.json similarity index 100% rename from broadcast/DeployV4.s.sol/10/run-latest.json rename to evm/broadcast/DeployV4.s.sol/10/run-latest.json diff --git a/broadcast/DeployV4.s.sol/11155111/run-latest.json b/evm/broadcast/DeployV4.s.sol/11155111/run-latest.json similarity index 100% rename from broadcast/DeployV4.s.sol/11155111/run-latest.json rename to evm/broadcast/DeployV4.s.sol/11155111/run-latest.json diff --git a/broadcast/DeployV4.s.sol/11155420/run-latest.json b/evm/broadcast/DeployV4.s.sol/11155420/run-latest.json similarity index 100% rename from broadcast/DeployV4.s.sol/11155420/run-latest.json rename to evm/broadcast/DeployV4.s.sol/11155420/run-latest.json diff --git a/broadcast/DeployV4.s.sol/1398243/run-latest.json b/evm/broadcast/DeployV4.s.sol/1398243/run-latest.json similarity index 100% rename from broadcast/DeployV4.s.sol/1398243/run-latest.json rename to evm/broadcast/DeployV4.s.sol/1398243/run-latest.json diff --git a/broadcast/DeployV4.s.sol/17000/run-latest.json b/evm/broadcast/DeployV4.s.sol/17000/run-latest.json similarity index 100% rename from broadcast/DeployV4.s.sol/17000/run-latest.json rename to evm/broadcast/DeployV4.s.sol/17000/run-latest.json diff --git a/broadcast/DeployV4.s.sol/42161/run-latest.json b/evm/broadcast/DeployV4.s.sol/42161/run-latest.json similarity index 100% rename from broadcast/DeployV4.s.sol/42161/run-latest.json rename to evm/broadcast/DeployV4.s.sol/42161/run-latest.json diff --git a/broadcast/DeployV4.s.sol/421614/run-latest.json b/evm/broadcast/DeployV4.s.sol/421614/run-latest.json similarity index 100% rename from broadcast/DeployV4.s.sol/421614/run-latest.json rename to evm/broadcast/DeployV4.s.sol/421614/run-latest.json diff --git a/broadcast/DeployV4.s.sol/480/run-latest.json b/evm/broadcast/DeployV4.s.sol/480/run-latest.json similarity index 100% rename from broadcast/DeployV4.s.sol/480/run-latest.json rename to evm/broadcast/DeployV4.s.sol/480/run-latest.json diff --git a/broadcast/DeployV4.s.sol/4801/run-latest.json b/evm/broadcast/DeployV4.s.sol/4801/run-latest.json similarity index 100% rename from broadcast/DeployV4.s.sol/4801/run-latest.json rename to evm/broadcast/DeployV4.s.sol/4801/run-latest.json diff --git a/broadcast/DeployV4.s.sol/65536/run-latest.json b/evm/broadcast/DeployV4.s.sol/65536/run-latest.json similarity index 100% rename from broadcast/DeployV4.s.sol/65536/run-latest.json rename to evm/broadcast/DeployV4.s.sol/65536/run-latest.json diff --git a/broadcast/DeployV4.s.sol/8453/run-latest.json b/evm/broadcast/DeployV4.s.sol/8453/run-latest.json similarity index 100% rename from broadcast/DeployV4.s.sol/8453/run-latest.json rename to evm/broadcast/DeployV4.s.sol/8453/run-latest.json diff --git a/broadcast/DeployV4.s.sol/84532/run-latest.json b/evm/broadcast/DeployV4.s.sol/84532/run-latest.json similarity index 100% rename from broadcast/DeployV4.s.sol/84532/run-latest.json rename to evm/broadcast/DeployV4.s.sol/84532/run-latest.json diff --git a/contracts/AttestationEntrypointBase.sol b/evm/contracts/AttestationEntrypointBase.sol similarity index 100% rename from contracts/AttestationEntrypointBase.sol rename to evm/contracts/AttestationEntrypointBase.sol diff --git a/contracts/AutomataDcapAttestationFee.sol b/evm/contracts/AutomataDcapAttestationFee.sol similarity index 100% rename from contracts/AutomataDcapAttestationFee.sol rename to evm/contracts/AutomataDcapAttestationFee.sol diff --git a/contracts/PCCSRouter.sol b/evm/contracts/PCCSRouter.sol similarity index 100% rename from contracts/PCCSRouter.sol rename to evm/contracts/PCCSRouter.sol diff --git a/contracts/bases/EnclaveIdBase.sol b/evm/contracts/bases/EnclaveIdBase.sol similarity index 100% rename from contracts/bases/EnclaveIdBase.sol rename to evm/contracts/bases/EnclaveIdBase.sol diff --git a/contracts/bases/FeeManagerBase.sol b/evm/contracts/bases/FeeManagerBase.sol similarity index 100% rename from contracts/bases/FeeManagerBase.sol rename to evm/contracts/bases/FeeManagerBase.sol diff --git a/contracts/bases/QuoteVerifierBase.sol b/evm/contracts/bases/QuoteVerifierBase.sol similarity index 100% rename from contracts/bases/QuoteVerifierBase.sol rename to evm/contracts/bases/QuoteVerifierBase.sol diff --git a/contracts/bases/TDXModuleBase.sol b/evm/contracts/bases/TDXModuleBase.sol similarity index 100% rename from contracts/bases/TDXModuleBase.sol rename to evm/contracts/bases/TDXModuleBase.sol diff --git a/contracts/bases/X509ChainBase.sol b/evm/contracts/bases/X509ChainBase.sol similarity index 100% rename from contracts/bases/X509ChainBase.sol rename to evm/contracts/bases/X509ChainBase.sol diff --git a/contracts/bases/tcb/TCBInfoV2Base.sol b/evm/contracts/bases/tcb/TCBInfoV2Base.sol similarity index 100% rename from contracts/bases/tcb/TCBInfoV2Base.sol rename to evm/contracts/bases/tcb/TCBInfoV2Base.sol diff --git a/contracts/bases/tcb/TCBInfoV3Base.sol b/evm/contracts/bases/tcb/TCBInfoV3Base.sol similarity index 100% rename from contracts/bases/tcb/TCBInfoV3Base.sol rename to evm/contracts/bases/tcb/TCBInfoV3Base.sol diff --git a/contracts/interfaces/IPCCSRouter.sol b/evm/contracts/interfaces/IPCCSRouter.sol similarity index 100% rename from contracts/interfaces/IPCCSRouter.sol rename to evm/contracts/interfaces/IPCCSRouter.sol diff --git a/contracts/interfaces/IQuoteVerifier.sol b/evm/contracts/interfaces/IQuoteVerifier.sol similarity index 100% rename from contracts/interfaces/IQuoteVerifier.sol rename to evm/contracts/interfaces/IQuoteVerifier.sol diff --git a/contracts/types/CommonStruct.sol b/evm/contracts/types/CommonStruct.sol similarity index 100% rename from contracts/types/CommonStruct.sol rename to evm/contracts/types/CommonStruct.sol diff --git a/contracts/types/Constants.sol b/evm/contracts/types/Constants.sol similarity index 100% rename from contracts/types/Constants.sol rename to evm/contracts/types/Constants.sol diff --git a/contracts/types/V3Structs.sol b/evm/contracts/types/V3Structs.sol similarity index 100% rename from contracts/types/V3Structs.sol rename to evm/contracts/types/V3Structs.sol diff --git a/contracts/types/V4Structs.sol b/evm/contracts/types/V4Structs.sol similarity index 100% rename from contracts/types/V4Structs.sol rename to evm/contracts/types/V4Structs.sol diff --git a/contracts/utils/BELE.sol b/evm/contracts/utils/BELE.sol similarity index 100% rename from contracts/utils/BELE.sol rename to evm/contracts/utils/BELE.sol diff --git a/contracts/utils/BytesUtils.sol b/evm/contracts/utils/BytesUtils.sol similarity index 100% rename from contracts/utils/BytesUtils.sol rename to evm/contracts/utils/BytesUtils.sol diff --git a/contracts/utils/P256Verifier.sol b/evm/contracts/utils/P256Verifier.sol similarity index 100% rename from contracts/utils/P256Verifier.sol rename to evm/contracts/utils/P256Verifier.sol diff --git a/contracts/verifiers/V3QuoteVerifier.sol b/evm/contracts/verifiers/V3QuoteVerifier.sol similarity index 100% rename from contracts/verifiers/V3QuoteVerifier.sol rename to evm/contracts/verifiers/V3QuoteVerifier.sol diff --git a/contracts/verifiers/V4QuoteVerifier.sol b/evm/contracts/verifiers/V4QuoteVerifier.sol similarity index 100% rename from contracts/verifiers/V4QuoteVerifier.sol rename to evm/contracts/verifiers/V4QuoteVerifier.sol diff --git a/env/.arbitrum-one.env.example b/evm/env/.arbitrum-one.env.example similarity index 84% rename from env/.arbitrum-one.env.example rename to evm/env/.arbitrum-one.env.example index cf5862c..5b1d163 100644 --- a/env/.arbitrum-one.env.example +++ b/evm/env/.arbitrum-one.env.example @@ -1,8 +1,8 @@ RPC_URL="https://arb1.arbitrum.io/rpc" ETHERSCAN_API_KEY_ARBITRUM= PRIVATE_KEY=0x -DCAP_RISCZERO_IMAGE_ID=0x83613a8beec226d1f29714530f1df791fa16c2c4dfcf22c50ab7edac59ca637f -DCAP_SUCCINCT_VKEY=0x0043e4e0c286cf4a2c03472ca2384f35a008558bc5de4e0f39d1d1bc989badca +DCAP_RISCZERO_IMAGE_ID=c2eafe1ba01610f3b71281f9dd3280b33d97370bb68d3ada2925d391be245e10 +DCAP_SUCCINCT_VKEY=004be684aaf90b70fb2d8f586ec96c36cee5f6533850b14e8b5568f4dbf31f8e ENCLAVE_IDENTITY_HELPER=0xae27D762EED6958bc34b358bd7C78c7211fe77F8 FMSPC_TCB_HELPER=0x71056B540b4E60D0E8eFb55FAd487C486B09FFF5 diff --git a/env/.arbitrum-sepolia.env.example b/evm/env/.arbitrum-sepolia.env.example similarity index 84% rename from env/.arbitrum-sepolia.env.example rename to evm/env/.arbitrum-sepolia.env.example index 7c79341..ac44a4c 100644 --- a/env/.arbitrum-sepolia.env.example +++ b/evm/env/.arbitrum-sepolia.env.example @@ -2,8 +2,8 @@ RPC_URL="https://sepolia-rollup.arbitrum.io/rpc" PRIVATE_KEY=0x ETHERSCAN_API_KEY_ARBITRUM="" -DCAP_RISCZERO_IMAGE_ID=0x83613a8beec226d1f29714530f1df791fa16c2c4dfcf22c50ab7edac59ca637f -DCAP_SUCCINCT_VKEY=0x0043e4e0c286cf4a2c03472ca2384f35a008558bc5de4e0f39d1d1bc989badca +DCAP_RISCZERO_IMAGE_ID=c2eafe1ba01610f3b71281f9dd3280b33d97370bb68d3ada2925d391be245e10 +DCAP_SUCCINCT_VKEY=004be684aaf90b70fb2d8f586ec96c36cee5f6533850b14e8b5568f4dbf31f8e ENCLAVE_IDENTITY_HELPER=0xae27D762EED6958bc34b358bd7C78c7211fe77F8 FMSPC_TCB_HELPER=0x71056B540b4E60D0E8eFb55FAd487C486B09FFF5 diff --git a/env/.base-mainnet.env.example b/evm/env/.base-mainnet.env.example similarity index 84% rename from env/.base-mainnet.env.example rename to evm/env/.base-mainnet.env.example index 588f5a8..6a2c7a8 100644 --- a/env/.base-mainnet.env.example +++ b/evm/env/.base-mainnet.env.example @@ -1,8 +1,8 @@ RPC_URL="https://mainnet.base.org" PRIVATE_KEY=0x ETHERSCAN_API_KEY_BASE="" -DCAP_RISCZERO_IMAGE_ID=0x83613a8beec226d1f29714530f1df791fa16c2c4dfcf22c50ab7edac59ca637f -DCAP_SUCCINCT_VKEY=0x0043e4e0c286cf4a2c03472ca2384f35a008558bc5de4e0f39d1d1bc989badca +DCAP_RISCZERO_IMAGE_ID=c2eafe1ba01610f3b71281f9dd3280b33d97370bb68d3ada2925d391be245e10 +DCAP_SUCCINCT_VKEY=004be684aaf90b70fb2d8f586ec96c36cee5f6533850b14e8b5568f4dbf31f8e ENCLAVE_IDENTITY_HELPER=0xae27D762EED6958bc34b358bd7C78c7211fe77F8 FMSPC_TCB_HELPER=0x71056B540b4E60D0E8eFb55FAd487C486B09FFF5 diff --git a/env/.base-sepolia.env.example b/evm/env/.base-sepolia.env.example similarity index 84% rename from env/.base-sepolia.env.example rename to evm/env/.base-sepolia.env.example index bd07809..34868a8 100644 --- a/env/.base-sepolia.env.example +++ b/evm/env/.base-sepolia.env.example @@ -1,8 +1,8 @@ RPC_URL="https://sepolia.base.org" PRIVATE_KEY=0x ETHERSCAN_API_KEY_BASE="" -DCAP_RISCZERO_IMAGE_ID=0x83613a8beec226d1f29714530f1df791fa16c2c4dfcf22c50ab7edac59ca637f -DCAP_SUCCINCT_VKEY=0x0043e4e0c286cf4a2c03472ca2384f35a008558bc5de4e0f39d1d1bc989badca +DCAP_RISCZERO_IMAGE_ID=c2eafe1ba01610f3b71281f9dd3280b33d97370bb68d3ada2925d391be245e10 +DCAP_SUCCINCT_VKEY=004be684aaf90b70fb2d8f586ec96c36cee5f6533850b14e8b5568f4dbf31f8e ENCLAVE_IDENTITY_HELPER=0xae27D762EED6958bc34b358bd7C78c7211fe77F8 FMSPC_TCB_HELPER=0x71056B540b4E60D0E8eFb55FAd487C486B09FFF5 diff --git a/env/.ethereum-mainnet.env.example b/evm/env/.ethereum-mainnet.env.example similarity index 84% rename from env/.ethereum-mainnet.env.example rename to evm/env/.ethereum-mainnet.env.example index 4ef059c..c1e965f 100644 --- a/env/.ethereum-mainnet.env.example +++ b/evm/env/.ethereum-mainnet.env.example @@ -1,8 +1,8 @@ RPC_URL="https://1rpc.io/eth" PRIVATE_KEY=0x ETHERSCAN_OG_API_KEY="" -DCAP_RISCZERO_IMAGE_ID=0x83613a8beec226d1f29714530f1df791fa16c2c4dfcf22c50ab7edac59ca637f -DCAP_SUCCINCT_VKEY=0x0043e4e0c286cf4a2c03472ca2384f35a008558bc5de4e0f39d1d1bc989badca +DCAP_RISCZERO_IMAGE_ID=c2eafe1ba01610f3b71281f9dd3280b33d97370bb68d3ada2925d391be245e10 +DCAP_SUCCINCT_VKEY=004be684aaf90b70fb2d8f586ec96c36cee5f6533850b14e8b5568f4dbf31f8e ENCLAVE_IDENTITY_HELPER=0x13BECaa512713Ac7C2d7a04ba221aD5E02D43DFE FMSPC_TCB_HELPER=0xc99bF04C31bF3d026B5B47b2574FC19C1459B732 diff --git a/env/.holesky.env.example b/evm/env/.holesky.env.example similarity index 84% rename from env/.holesky.env.example rename to evm/env/.holesky.env.example index 5b856bb..a04005d 100644 --- a/env/.holesky.env.example +++ b/evm/env/.holesky.env.example @@ -1,8 +1,8 @@ RPC_URL="https://1rpc.io/holesky" PRIVATE_KEY=0x ETHERSCAN_OG_API_KEY="" -DCAP_RISCZERO_IMAGE_ID=0x83613a8beec226d1f29714530f1df791fa16c2c4dfcf22c50ab7edac59ca637f -DCAP_SUCCINCT_VKEY=0x0043e4e0c286cf4a2c03472ca2384f35a008558bc5de4e0f39d1d1bc989badca +DCAP_RISCZERO_IMAGE_ID=c2eafe1ba01610f3b71281f9dd3280b33d97370bb68d3ada2925d391be245e10 +DCAP_SUCCINCT_VKEY=004be684aaf90b70fb2d8f586ec96c36cee5f6533850b14e8b5568f4dbf31f8e ENCLAVE_IDENTITY_HELPER=0xae27D762EED6958bc34b358bd7C78c7211fe77F8 FMSPC_TCB_HELPER=0x71056B540b4E60D0E8eFb55FAd487C486B09FFF5 diff --git a/env/.mainnet.env.example b/evm/env/.mainnet.env.example similarity index 83% rename from env/.mainnet.env.example rename to evm/env/.mainnet.env.example index 2232db0..ed483cb 100644 --- a/env/.mainnet.env.example +++ b/evm/env/.mainnet.env.example @@ -1,7 +1,7 @@ RPC_URL="https://rpc.ata.network" PRIVATE_KEY=0x -DCAP_RISCZERO_IMAGE_ID=0x83613a8beec226d1f29714530f1df791fa16c2c4dfcf22c50ab7edac59ca637f -DCAP_SUCCINCT_VKEY=0x0043e4e0c286cf4a2c03472ca2384f35a008558bc5de4e0f39d1d1bc989badca +DCAP_RISCZERO_IMAGE_ID=c2eafe1ba01610f3b71281f9dd3280b33d97370bb68d3ada2925d391be245e10 +DCAP_SUCCINCT_VKEY=004be684aaf90b70fb2d8f586ec96c36cee5f6533850b14e8b5568f4dbf31f8e ENCLAVE_IDENTITY_HELPER=0xae27D762EED6958bc34b358bd7C78c7211fe77F8 FMSPC_TCB_HELPER=0x71056B540b4E60D0E8eFb55FAd487C486B09FFF5 diff --git a/env/.optimism-mainnet.env.example b/evm/env/.optimism-mainnet.env.example similarity index 84% rename from env/.optimism-mainnet.env.example rename to evm/env/.optimism-mainnet.env.example index 8aae72d..14a5cc2 100644 --- a/env/.optimism-mainnet.env.example +++ b/evm/env/.optimism-mainnet.env.example @@ -1,8 +1,8 @@ RPC_URL="https://mainnet.optimism.io" PRIVATE_KEY=0x ETHERSCAN_API_KEY_OPTIMISM="" -DCAP_RISCZERO_IMAGE_ID=0x83613a8beec226d1f29714530f1df791fa16c2c4dfcf22c50ab7edac59ca637f -DCAP_SUCCINCT_VKEY=0x0043e4e0c286cf4a2c03472ca2384f35a008558bc5de4e0f39d1d1bc989badca +DCAP_RISCZERO_IMAGE_ID=c2eafe1ba01610f3b71281f9dd3280b33d97370bb68d3ada2925d391be245e10 +DCAP_SUCCINCT_VKEY=004be684aaf90b70fb2d8f586ec96c36cee5f6533850b14e8b5568f4dbf31f8e ENCLAVE_IDENTITY_HELPER=0xae27D762EED6958bc34b358bd7C78c7211fe77F8 FMSPC_TCB_HELPER=0x71056B540b4E60D0E8eFb55FAd487C486B09FFF5 diff --git a/env/.optimism-sepolia.env.example b/evm/env/.optimism-sepolia.env.example similarity index 84% rename from env/.optimism-sepolia.env.example rename to evm/env/.optimism-sepolia.env.example index 216c776..8f3ba16 100644 --- a/env/.optimism-sepolia.env.example +++ b/evm/env/.optimism-sepolia.env.example @@ -2,8 +2,8 @@ RPC_URL="https://sepolia.optimism.io" PRIVATE_KEY=0x ETHERSCAN_API_KEY_OPTIMISM="" -DCAP_RISCZERO_IMAGE_ID=0x83613a8beec226d1f29714530f1df791fa16c2c4dfcf22c50ab7edac59ca637f -DCAP_SUCCINCT_VKEY=0x0043e4e0c286cf4a2c03472ca2384f35a008558bc5de4e0f39d1d1bc989badca +DCAP_RISCZERO_IMAGE_ID=c2eafe1ba01610f3b71281f9dd3280b33d97370bb68d3ada2925d391be245e10 +DCAP_SUCCINCT_VKEY=004be684aaf90b70fb2d8f586ec96c36cee5f6533850b14e8b5568f4dbf31f8e ENCLAVE_IDENTITY_HELPER=0xae27D762EED6958bc34b358bd7C78c7211fe77F8 FMSPC_TCB_HELPER=0x71056B540b4E60D0E8eFb55FAd487C486B09FFF5 diff --git a/env/.sepolia.env.example b/evm/env/.sepolia.env.example similarity index 84% rename from env/.sepolia.env.example rename to evm/env/.sepolia.env.example index d370c37..1b7e6c7 100644 --- a/env/.sepolia.env.example +++ b/evm/env/.sepolia.env.example @@ -1,8 +1,8 @@ RPC_URL="https://1rpc.io/sepolia" PRIVATE_KEY=0x ETHERSCAN_OG_API_KEY="" -DCAP_RISCZERO_IMAGE_ID=0x83613a8beec226d1f29714530f1df791fa16c2c4dfcf22c50ab7edac59ca637f -DCAP_SUCCINCT_VKEY=0x0043e4e0c286cf4a2c03472ca2384f35a008558bc5de4e0f39d1d1bc989badca +DCAP_RISCZERO_IMAGE_ID=c2eafe1ba01610f3b71281f9dd3280b33d97370bb68d3ada2925d391be245e10 +DCAP_SUCCINCT_VKEY=004be684aaf90b70fb2d8f586ec96c36cee5f6533850b14e8b5568f4dbf31f8e ENCLAVE_IDENTITY_HELPER=0x2247B6dfE1bD9c376ECb58A68fa29603015a54a6 FMSPC_TCB_HELPER=0x4907280122325DbCeba657210Df2E3EE0e853cD0 diff --git a/env/.testnet.env.example b/evm/env/.testnet.env.example similarity index 84% rename from env/.testnet.env.example rename to evm/env/.testnet.env.example index 80e8bb4..cc18617 100644 --- a/env/.testnet.env.example +++ b/evm/env/.testnet.env.example @@ -1,8 +1,8 @@ # Environment Configuration PRIVATE_KEY=0x RPC_URL="https://1rpc.io/ata/testnet" -DCAP_RISCZERO_IMAGE_ID=0x83613a8beec226d1f29714530f1df791fa16c2c4dfcf22c50ab7edac59ca637f -DCAP_SUCCINCT_VKEY=0x0043e4e0c286cf4a2c03472ca2384f35a008558bc5de4e0f39d1d1bc989badca +DCAP_RISCZERO_IMAGE_ID=c2eafe1ba01610f3b71281f9dd3280b33d97370bb68d3ada2925d391be245e10 +DCAP_SUCCINCT_VKEY=004be684aaf90b70fb2d8f586ec96c36cee5f6533850b14e8b5568f4dbf31f8e # On-Chain PCCS Configurations ENCLAVE_IDENTITY_HELPER=0xae27D762EED6958bc34b358bd7C78c7211fe77F8 diff --git a/env/.worldchain-mainnet.env.example b/evm/env/.worldchain-mainnet.env.example similarity index 84% rename from env/.worldchain-mainnet.env.example rename to evm/env/.worldchain-mainnet.env.example index cade6fe..10f075a 100644 --- a/env/.worldchain-mainnet.env.example +++ b/evm/env/.worldchain-mainnet.env.example @@ -1,8 +1,8 @@ RPC_URL="https://worldchain-mainnet.g.alchemy.com/public" PRIVATE_KEY=0x ETHERSCAN_API_KEY_WORLDCHAIN="" -DCAP_RISCZERO_IMAGE_ID=0x83613a8beec226d1f29714530f1df791fa16c2c4dfcf22c50ab7edac59ca637f -DCAP_SUCCINCT_VKEY=0x0043e4e0c286cf4a2c03472ca2384f35a008558bc5de4e0f39d1d1bc989badca +DCAP_RISCZERO_IMAGE_ID=c2eafe1ba01610f3b71281f9dd3280b33d97370bb68d3ada2925d391be245e10 +DCAP_SUCCINCT_VKEY=004be684aaf90b70fb2d8f586ec96c36cee5f6533850b14e8b5568f4dbf31f8e ENCLAVE_IDENTITY_HELPER=0x13BECaa512713Ac7C2d7a04ba221aD5E02D43DFE FMSPC_TCB_HELPER=0xc99bF04C31bF3d026B5B47b2574FC19C1459B732 diff --git a/env/.worldchain-sepolia.env.example b/evm/env/.worldchain-sepolia.env.example similarity index 84% rename from env/.worldchain-sepolia.env.example rename to evm/env/.worldchain-sepolia.env.example index 72f812c..a3b7cbc 100644 --- a/env/.worldchain-sepolia.env.example +++ b/evm/env/.worldchain-sepolia.env.example @@ -2,8 +2,8 @@ RPC_URL="https://worldchain-sepolia.g.alchemy.com/public" PRIVATE_KEY=0x ETHERSCAN_API_KEY_WORLDCHAIN="" -DCAP_RISCZERO_IMAGE_ID=0x83613a8beec226d1f29714530f1df791fa16c2c4dfcf22c50ab7edac59ca637f -DCAP_SUCCINCT_VKEY=0x0043e4e0c286cf4a2c03472ca2384f35a008558bc5de4e0f39d1d1bc989badca +DCAP_RISCZERO_IMAGE_ID=c2eafe1ba01610f3b71281f9dd3280b33d97370bb68d3ada2925d391be245e10 +DCAP_SUCCINCT_VKEY=004be684aaf90b70fb2d8f586ec96c36cee5f6533850b14e8b5568f4dbf31f8e ENCLAVE_IDENTITY_HELPER=0xae27D762EED6958bc34b358bd7C78c7211fe77F8 FMSPC_TCB_HELPER=0x71056B540b4E60D0E8eFb55FAd487C486B09FFF5 diff --git a/forge-script/AttestationScript.s.sol b/evm/forge-script/AttestationScript.s.sol similarity index 100% rename from forge-script/AttestationScript.s.sol rename to evm/forge-script/AttestationScript.s.sol diff --git a/forge-script/DeployRouter.s.sol b/evm/forge-script/DeployRouter.s.sol similarity index 100% rename from forge-script/DeployRouter.s.sol rename to evm/forge-script/DeployRouter.s.sol diff --git a/forge-script/utils/P256Configuration.sol b/evm/forge-script/utils/P256Configuration.sol similarity index 100% rename from forge-script/utils/P256Configuration.sol rename to evm/forge-script/utils/P256Configuration.sol diff --git a/forge-script/verifiers/DeployV3.s.sol b/evm/forge-script/verifiers/DeployV3.s.sol similarity index 100% rename from forge-script/verifiers/DeployV3.s.sol rename to evm/forge-script/verifiers/DeployV3.s.sol diff --git a/forge-script/verifiers/DeployV4.s.sol b/evm/forge-script/verifiers/DeployV4.s.sol similarity index 100% rename from forge-script/verifiers/DeployV4.s.sol rename to evm/forge-script/verifiers/DeployV4.s.sol diff --git a/forge-test/AutomataDcapAttestationFeeTest.t.sol b/evm/forge-test/AutomataDcapAttestationFeeTest.t.sol similarity index 99% rename from forge-test/AutomataDcapAttestationFeeTest.t.sol rename to evm/forge-test/AutomataDcapAttestationFeeTest.t.sol index 0fad8a2..255515e 100644 --- a/forge-test/AutomataDcapAttestationFeeTest.t.sol +++ b/evm/forge-test/AutomataDcapAttestationFeeTest.t.sol @@ -21,7 +21,6 @@ contract AutomataDcapAttestationFeeTest is PCCSSetupBase, RiscZeroSetup { AutomataDcapAttestationFee attestation; PCCSRouter pccsRouter; - bytes32 imageId = vm.envBytes32("DCAP_RISCZERO_IMAGE_ID"); address user = address(69); function setUp() public override { diff --git a/forge-test/AutomataDcapAttestationTest.t.sol b/evm/forge-test/AutomataDcapAttestationTest.t.sol similarity index 67% rename from forge-test/AutomataDcapAttestationTest.t.sol rename to evm/forge-test/AutomataDcapAttestationTest.t.sol index fea4d68..2bea56b 100644 --- a/forge-test/AutomataDcapAttestationTest.t.sol +++ b/evm/forge-test/AutomataDcapAttestationTest.t.sol @@ -106,31 +106,38 @@ contract AutomataDcapAttestationFeeTest is PCCSSetupBase, RiscZeroSetup { assertTrue(success); } - function testRiscZeroProofAttestation() public { - bytes32 imageId = vm.envBytes32("DCAP_RISCZERO_IMAGE_ID"); - setUpRiscZero(); - ZkCoProcessorConfig memory riscZeroConfig = - ZkCoProcessorConfig({dcapProgramIdentifier: imageId, zkVerifier: address(riscZeroVerifier)}); - vm.prank(admin); - attestation.setZkConfiguration(ZkCoProcessorType.RiscZero, riscZeroConfig); - - // pinned May 19th, 2024, Midnight GMT - vm.warp(1731974400); - + modifier setupZk() { + vm.warp(1739589300); vm.startPrank(admin); + + // upserts bytes memory pckCrlUpdate = - hex"30820a6330820a08020101300a06082a8648ce3d04030230703122302006035504030c19496e74656c205347582050434b20506c6174666f726d204341311a3018060355040a0c11496e74656c20436f72706f726174696f6e3114301206035504070c0b53616e746120436c617261310b300906035504080c024341310b3009060355040613025553170d3234313131383134303035345a170d3234313231383134303035345a30820934303302146fc34e5023e728923435d61aa4b83c618166ad35170d3234313131383134303035345a300c300a0603551d1504030a01013034021500efae6e9715fca13b87e333e8261ed6d990a926ad170d3234313131383134303035345a300c300a0603551d1504030a01013034021500fd608648629cba73078b4d492f4b3ea741ad08cd170d3234313131383134303035345a300c300a0603551d1504030a010130340215008af924184e1d5afddd73c3d63a12f5e8b5737e56170d3234313131383134303035345a300c300a0603551d1504030a01013034021500b1257978cfa9ccdd0759abf8c5ca72fae3a78a9b170d3234313131383134303035345a300c300a0603551d1504030a01013033021474fea614a972be0e2843f2059835811ed872f9b3170d3234313131383134303035345a300c300a0603551d1504030a01013034021500f9c4ef56b3ab48d577e108baedf4bf88014214b9170d3234313131383134303035345a300c300a0603551d1504030a010130330214071de0778f9e5fc4f2878f30d6b07c9a30e6b30b170d3234313131383134303035345a300c300a0603551d1504030a01013034021500cde2424f972cea94ff239937f4d80c25029dd60b170d3234313131383134303035345a300c300a0603551d1504030a0101303302146c3319e5109b64507d3cf1132ce00349ef527319170d3234313131383134303035345a300c300a0603551d1504030a01013034021500df08d756b66a7497f43b5bb58ada04d3f4f7a937170d3234313131383134303035345a300c300a0603551d1504030a01013033021428af485b6cf67e409a39d5cb5aee4598f7a8fa7b170d3234313131383134303035345a300c300a0603551d1504030a01013034021500fb8b2daec092cada8aa9bc4ff2f1c20d0346668c170d3234313131383134303035345a300c300a0603551d1504030a01013034021500cd4850ac52bdcc69a6a6f058c8bc57bbd0b5f864170d3234313131383134303035345a300c300a0603551d1504030a01013034021500994dd3666f5275fb805f95dd02bd50cb2679d8ad170d3234313131383134303035345a300c300a0603551d1504030a0101303302140702136900252274d9035eedf5457462fad0ef4c170d3234313131383134303035345a300c300a0603551d1504030a01013033021461f2bf73e39b4e04aa27d801bd73d24319b5bf80170d3234313131383134303035345a300c300a0603551d1504030a0101303302143992be851b96902eff38959e6c2eff1b0651a4b5170d3234313131383134303035345a300c300a0603551d1504030a010130330214639f139a5040fdcff191e8a4fb1bf086ed603971170d3234313131383134303035345a300c300a0603551d1504030a01013034021500959d533f9249dc1e513544cdc830bf19b7f1f301170d3234313131383134303035345a300c300a0603551d1504030a0101303302140fda43a00b68ea79b7c2deaeac0b498bdfb2af90170d3234313131383134303035345a300c300a0603551d1504030a010130340215009d67753b81e47090aea763fbec4c4549bcdb9933170d3234313131383134303035345a300c300a0603551d1504030a01013033021434bfbb7a1d9c568147e118b614f7b76ed3ef68df170d3234313131383134303035345a300c300a0603551d1504030a0101303402150085d3c9381b77a7e04d119c9e5ad6749ff3ffab87170d3234313131383134303035345a300c300a0603551d1504030a0101303402150093887ca4411e7a923bd1fed2819b2949f201b5b4170d3234313131383134303035345a300c300a0603551d1504030a0101303302142498dc6283930996fd8bf23a37acbe26a3bed457170d3234313131383134303035345a300c300a0603551d1504030a010130340215008a66f1a749488667689cc3903ac54c662b712e73170d3234313131383134303035345a300c300a0603551d1504030a01013034021500afc13610bdd36cb7985d106481a880d3a01fda07170d3234313131383134303035345a300c300a0603551d1504030a01013034021500efe04b2c33d036aac96ca673bf1e9a47b64d5cbb170d3234313131383134303035345a300c300a0603551d1504030a0101303402150083d9ac8d8bb509d1c6c809ad712e8430559ed7f3170d3234313131383134303035345a300c300a0603551d1504030a0101303302147931fd50b5071c1bbfc5b7b6ded8b45b9d8b8529170d3234313131383134303035345a300c300a0603551d1504030a0101303302141fa20e2970bde5d57f7b8ddf8339484e1f1d0823170d3234313131383134303035345a300c300a0603551d1504030a0101303302141e87b2c3b32d8d23e411cef34197b95af0c8adf5170d3234313131383134303035345a300c300a0603551d1504030a010130340215009afd2ee90a473550a167d996911437c7502d1f09170d3234313131383134303035345a300c300a0603551d1504030a0101303302144481b0f11728a13b696d3ea9c770a0b15ec58dda170d3234313131383134303035345a300c300a0603551d1504030a01013034021500a7859f57982ef0e67d37bc8ef2ef5ac835ff1aa9170d3234313131383134303035345a300c300a0603551d1504030a0101303302147ae37748a9f912f4c63ba7ab07c593ce1d1d1181170d3234313131383134303035345a300c300a0603551d1504030a01013033021413884b33269938c195aa170fca75da177538df0b170d3234313131383134303035345a300c300a0603551d1504030a0101303302142c3cc6fe9279db1516d5ce39f2a898cda5a175e1170d3234313131383134303035345a300c300a0603551d1504030a010130330214717948687509234be979e4b7dce6f31bef64b68c170d3234313131383134303035345a300c300a0603551d1504030a010130340215009d76ef2c39c136e8658b6e7396b1d7445a27631f170d3234313131383134303035345a300c300a0603551d1504030a01013034021500c3e025fca995f36f59b48467939e3e34e6361a6f170d3234313131383134303035345a300c300a0603551d1504030a010130340215008c5f6b3257da05b17429e2e61ba965d67330606a170d3234313131383134303035345a300c300a0603551d1504030a01013034021500a17c51722ec1e0c3278fe8bdf052059cbec4e648170d3234313131383134303035345a300c300a0603551d1504030a0101a02f302d300a0603551d140403020101301f0603551d23041830168014956f5dcdbd1be1e94049c9d4f433ce01570bde54300a06082a8648ce3d04030203490030460221009d1e3cd0a09165302618555741c96c9ca04ddbea4009edf613f490360da54f16022100e08a94f9924efe124fecd862f5be8c4b6f12aa8d8756767cbba21a91d405bed0"; + hex"30820a6230820a08020101300a06082a8648ce3d04030230703122302006035504030c19496e74656c205347582050434b20506c6174666f726d204341311a3018060355040a0c11496e74656c20436f72706f726174696f6e3114301206035504070c0b53616e746120436c617261310b300906035504080c024341310b3009060355040613025553170d3235303231353032313635335a170d3235303331373032313635335a30820934303302146fc34e5023e728923435d61aa4b83c618166ad35170d3235303231353032313635335a300c300a0603551d1504030a01013034021500efae6e9715fca13b87e333e8261ed6d990a926ad170d3235303231353032313635335a300c300a0603551d1504030a01013034021500fd608648629cba73078b4d492f4b3ea741ad08cd170d3235303231353032313635335a300c300a0603551d1504030a010130340215008af924184e1d5afddd73c3d63a12f5e8b5737e56170d3235303231353032313635335a300c300a0603551d1504030a01013034021500b1257978cfa9ccdd0759abf8c5ca72fae3a78a9b170d3235303231353032313635335a300c300a0603551d1504030a01013033021474fea614a972be0e2843f2059835811ed872f9b3170d3235303231353032313635335a300c300a0603551d1504030a01013034021500f9c4ef56b3ab48d577e108baedf4bf88014214b9170d3235303231353032313635335a300c300a0603551d1504030a010130330214071de0778f9e5fc4f2878f30d6b07c9a30e6b30b170d3235303231353032313635335a300c300a0603551d1504030a01013034021500cde2424f972cea94ff239937f4d80c25029dd60b170d3235303231353032313635335a300c300a0603551d1504030a0101303302146c3319e5109b64507d3cf1132ce00349ef527319170d3235303231353032313635335a300c300a0603551d1504030a01013034021500df08d756b66a7497f43b5bb58ada04d3f4f7a937170d3235303231353032313635335a300c300a0603551d1504030a01013033021428af485b6cf67e409a39d5cb5aee4598f7a8fa7b170d3235303231353032313635335a300c300a0603551d1504030a01013034021500fb8b2daec092cada8aa9bc4ff2f1c20d0346668c170d3235303231353032313635335a300c300a0603551d1504030a01013034021500cd4850ac52bdcc69a6a6f058c8bc57bbd0b5f864170d3235303231353032313635335a300c300a0603551d1504030a01013034021500994dd3666f5275fb805f95dd02bd50cb2679d8ad170d3235303231353032313635335a300c300a0603551d1504030a0101303302140702136900252274d9035eedf5457462fad0ef4c170d3235303231353032313635335a300c300a0603551d1504030a01013033021461f2bf73e39b4e04aa27d801bd73d24319b5bf80170d3235303231353032313635335a300c300a0603551d1504030a0101303302143992be851b96902eff38959e6c2eff1b0651a4b5170d3235303231353032313635335a300c300a0603551d1504030a0101303302140fda43a00b68ea79b7c2deaeac0b498bdfb2af90170d3235303231353032313635335a300c300a0603551d1504030a010130330214639f139a5040fdcff191e8a4fb1bf086ed603971170d3235303231353032313635335a300c300a0603551d1504030a01013034021500959d533f9249dc1e513544cdc830bf19b7f1f301170d3235303231353032313635335a300c300a0603551d1504030a0101303302147ae37748a9f912f4c63ba7ab07c593ce1d1d1181170d3235303231353032313635335a300c300a0603551d1504030a01013033021413884b33269938c195aa170fca75da177538df0b170d3235303231353032313635335a300c300a0603551d1504030a0101303402150085d3c9381b77a7e04d119c9e5ad6749ff3ffab87170d3235303231353032313635335a300c300a0603551d1504030a0101303402150093887ca4411e7a923bd1fed2819b2949f201b5b4170d3235303231353032313635335a300c300a0603551d1504030a0101303302142498dc6283930996fd8bf23a37acbe26a3bed457170d3235303231353032313635335a300c300a0603551d1504030a010130340215008a66f1a749488667689cc3903ac54c662b712e73170d3235303231353032313635335a300c300a0603551d1504030a01013034021500afc13610bdd36cb7985d106481a880d3a01fda07170d3235303231353032313635335a300c300a0603551d1504030a01013034021500efe04b2c33d036aac96ca673bf1e9a47b64d5cbb170d3235303231353032313635335a300c300a0603551d1504030a0101303402150083d9ac8d8bb509d1c6c809ad712e8430559ed7f3170d3235303231353032313635335a300c300a0603551d1504030a0101303302147931fd50b5071c1bbfc5b7b6ded8b45b9d8b8529170d3235303231353032313635335a300c300a0603551d1504030a0101303302141fa20e2970bde5d57f7b8ddf8339484e1f1d0823170d3235303231353032313635335a300c300a0603551d1504030a0101303302141e87b2c3b32d8d23e411cef34197b95af0c8adf5170d3235303231353032313635335a300c300a0603551d1504030a010130340215009afd2ee90a473550a167d996911437c7502d1f09170d3235303231353032313635335a300c300a0603551d1504030a0101303302144481b0f11728a13b696d3ea9c770a0b15ec58dda170d3235303231353032313635335a300c300a0603551d1504030a01013034021500a7859f57982ef0e67d37bc8ef2ef5ac835ff1aa9170d3235303231353032313635335a300c300a0603551d1504030a010130340215009d67753b81e47090aea763fbec4c4549bcdb9933170d3235303231353032313635335a300c300a0603551d1504030a01013033021434bfbb7a1d9c568147e118b614f7b76ed3ef68df170d3235303231353032313635335a300c300a0603551d1504030a0101303302142c3cc6fe9279db1516d5ce39f2a898cda5a175e1170d3235303231353032313635335a300c300a0603551d1504030a010130330214717948687509234be979e4b7dce6f31bef64b68c170d3235303231353032313635335a300c300a0603551d1504030a010130340215009d76ef2c39c136e8658b6e7396b1d7445a27631f170d3235303231353032313635335a300c300a0603551d1504030a01013034021500c3e025fca995f36f59b48467939e3e34e6361a6f170d3235303231353032313635335a300c300a0603551d1504030a010130340215008c5f6b3257da05b17429e2e61ba965d67330606a170d3235303231353032313635335a300c300a0603551d1504030a01013034021500a17c51722ec1e0c3278fe8bdf052059cbec4e648170d3235303231353032313635335a300c300a0603551d1504030a0101a02f302d300a0603551d140403020101301f0603551d23041830168014956f5dcdbd1be1e94049c9d4f433ce01570bde54300a06082a8648ce3d0403020348003045022100a4b92f8d1dc69f4ce73f52e19b54e6a29ea36ada71438f6cfc65db234115f70102204f9911144adcbdf860d48953d65217cfed4fc9ec30804175c05f52fae1093f02"; pcsDao.upsertPckCrl(CA.PLATFORM, pckCrlUpdate); + qeIdDaoUpsert(4, "/forge-test/assets/0225/identity_tdx.json"); + fmspcTcbDaoUpsert("/forge-test/assets/0225/tcbinfo-tdx-v3.json"); + V4QuoteVerifier quoteVerifier = new V4QuoteVerifier(P256_VERIFIER, address(pccsRouter)); attestation.setQuoteVerifier(address(quoteVerifier)); pccsRouter.setAuthorized(address(quoteVerifier), true); assertEq(address(attestation.quoteVerifiers(4)), address(quoteVerifier)); + vm.stopPrank(); + _; + } + + function testRiscZeroProofAttestation() public setupZk { + bytes32 imageId = 0xc2eafe1ba01610f3b71281f9dd3280b33d97370bb68d3ada2925d391be245e10; + setUpRiscZero(); + ZkCoProcessorConfig memory riscZeroConfig = + ZkCoProcessorConfig({dcapProgramIdentifier: imageId, zkVerifier: address(riscZeroVerifier)}); + vm.prank(admin); + attestation.setZkConfiguration(ZkCoProcessorType.RiscZero, riscZeroConfig); bytes memory journal = - hex"02550004000000810790c06f000000040102000000000000000000000000009790d89a10210ec6968a773cee2ca05b5aa97309f36727a968527be4606fc19e6f73acce350946c9d46a9bf7a63f843000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000080e702060000000000f2dd2696f69b950645832bdc095ffd11247eeff687eeacdb57a58d2ddb9a9f94fea40c961e19460c00ffa31420ecbc180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000998204508d58dcbfebe5e11c48669f7a921ac2da744dfb7d014ecdff2acdff1c9f665fdad52aadacf296a1df9909eb2383d100224f1716aeb431f7cb3cf028197dbd872487f27b0f6329ab17647dc9953c7014109818634f879e6550bc60f93eecfc42ff4d49278bfdbb0c77e570f4490cff10a2ee1ac11fbd2c2b49fa6cfa3cf1a1cb755c72522dd8a689e9d47906a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000278e753482976c8a7351fe2113609c7350d491cdae3d449eefc202fa41b2ad6840239cc2ba084c2d594b4e6dabeae0fcbf71c96daf0d0c9ecf0e9810c045790000000000673c303af1b429770139634fec8934a32e99c62365a2137e0ed7c2d675dd4acf0d1c830893efc8f3b20fd410af389046098c9e19304635a834aaabdf01ec7ad1f47d5ec70fa74a3f32c80b978c8ad671395dabf24283eef9091bc3919fd39b9915a87f1adf3061c165c0191e2658256a2855cac9267f179aafb1990c9e918d6452816adf9953f245d005b9d7d8e36a842a60b51e5cf85b2c2072ae397c178535c9985b7798b20813efc643bdfea60602a3c5cbef0f806d75c8c2622b0ed454f9d524ccbf"; + hex"02550004000000810790c06f000000040102000000000000000000000000009790d89a10210ec6968a773cee2ca05b5aa97309f36727a968527be4606fc19e6f73acce350946c9d46a9bf7a63f843000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000080e702060000000000f2dd2696f69b950645832bdc095ffd11247eeff687eeacdb57a58d2ddb9a9f94fea40c961e19460c00ffa31420ecbc180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000998204508d58dcbfebe5e11c48669f7a921ac2da744dfb7d014ecdff2acdff1c9f665fdad52aadacf296a1df9909eb2383d100224f1716aeb431f7cb3cf028197dbd872487f27b0f6329ab17647dc9953c7014109818634f879e6550bc60f93eecfc42ff4d49278bfdbb0c77e570f4490cff10a2ee1ac11fbd2c2b49fa6cfa3cf1a1cb755c72522dd8a689e9d47906a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000278e753482976c8a7351fe2113609c7350d491cdae3d449eefc202fa41b2ad6840239cc2ba084c2d594b4e6dabeae0fcbf71c96daf0d0c9ecf0e9810c04579000000000067b006b403863cd13231f2d431dbcbafba3fa2fb4a8668752557895e52afd8f6406ceeb525954f2ff27b06ed06c7181e098d51fc7733a265b4142a4842e00b32bc6e1b110fa74a3f32c80b978c8ad671395dabf24283eef9091bc3919fd39b9915a87f1adf3061c165c0191e2658256a2855cac9267f179aafb1990c9e918d6452816adf9953f245d005b9d7d8e36a842a60b51e5cf85b2c2072ae397c178535c9985b7700e00c2b7e9ae1844a3b2a788e2daa597ba0ee41e4e9f1f354327db6b18ee229"; bytes memory seal = - hex"50bd17690d7dc73d9d89c6ee3e1b1b6bd9843d5ef2553c76770276578cf890d286cbf4470e27c981cf6d2ce36e2ab7ece52d9e83c72886f02e93e3556a5cd19a2fa458a60a2c0281f5c7f0191a48246bd6118a2b41e2e262f500c2e7866b7eac2c2e534f06520a77f983b74dfd89488361492de67658594c8e7133589917d94e0edb93c7122bc4a811c8729d51b23fac9f878f10063dc0e27d20450bc5eba34f5e52489f1c2f34bd6cbc7f1046e5df615d20121db97e77379a0fe82ac07c80434368572921ab7d07ca2fb0c06e343fdf5300f93a1024595e50b28140e210dfb9536168d22dc1f13636e1aeda96973acd0c0b318e74cecf5b5179349b081325f174f08457"; + hex"c101b42b2e0f89a489616a5dac17f287112151fcbb9f853809246a766c9ec19acdf21ef129469a53d842e7ced3e35beaf887d6aace459576abf7be1d9716a47ae284ce0927c5c83216433d5e142a9862526448a77d376a56c0f42b65ee1c71318d5c16b91d6eb571db04c4cc52dc63fab7e162a7de718ef1faa2a95a997decffb06f949403f59305c34419cbb0cdc4aa898e8d1dd45e92a9e913418a33c696d7bfa13a8e061b66f5af4d3a0e3af3136c3d54c17715d1e96d26f7e4454fb441bd582a8689083ddcf72c5688b3216e51f77d15b7453c783cadb493f9467af0f865475a89860b1d1dab0da1092d7855e2bded71dcce46522583d52ae5ae3009cfdbc1d24161"; ZkCoProcessorType zkCoProcessorType = ZkCoProcessorType.RiscZero; (bool success, bytes memory output) = attestation.verifyAndAttestWithZKProof(journal, zkCoProcessorType, seal); @@ -141,40 +148,27 @@ contract AutomataDcapAttestationFeeTest is PCCSSetupBase, RiscZeroSetup { assertTrue(success); } - function testSuccintGroth16ProofAttestation() public { + function testSuccintGroth16ProofAttestation() public setupZk { succinctGroth16Setup = new Groth16Setup(); - bytes32 vk = 0x0043e4e0c286cf4a2c03472ca2384f35a008558bc5de4e0f39d1d1bc989badca; + bytes32 vk = 0x004be684aaf90b70fb2d8f586ec96c36cee5f6533850b14e8b5568f4dbf31f8e; ISP1Verifier sp1Verifier = ISP1Verifier(succinctGroth16Setup.setup()); ZkCoProcessorConfig memory succinctConfig = ZkCoProcessorConfig({dcapProgramIdentifier: vk, zkVerifier: address(sp1Verifier)}); vm.prank(admin); attestation.setZkConfiguration(ZkCoProcessorType.Succinct, succinctConfig); - // pinned May 10th, 2024, Midnight GMT - vm.warp(1715342400); - - vm.startPrank(admin); - bytes memory pckCrlUpdate = - hex"30820a6230820a08020101300a06082a8648ce3d04030230703122302006035504030c19496e74656c205347582050434b20506c6174666f726d204341311a3018060355040a0c11496e74656c20436f72706f726174696f6e3114301206035504070c0b53616e746120436c617261310b300906035504080c024341310b3009060355040613025553170d3234303530393132333735335a170d3234303630383132333735335a30820934303302146fc34e5023e728923435d61aa4b83c618166ad35170d3234303530393132333735335a300c300a0603551d1504030a01013034021500efae6e9715fca13b87e333e8261ed6d990a926ad170d3234303530393132333735335a300c300a0603551d1504030a01013034021500fd608648629cba73078b4d492f4b3ea741ad08cd170d3234303530393132333735335a300c300a0603551d1504030a010130340215008af924184e1d5afddd73c3d63a12f5e8b5737e56170d3234303530393132333735335a300c300a0603551d1504030a01013034021500b1257978cfa9ccdd0759abf8c5ca72fae3a78a9b170d3234303530393132333735335a300c300a0603551d1504030a01013033021474fea614a972be0e2843f2059835811ed872f9b3170d3234303530393132333735335a300c300a0603551d1504030a01013034021500f9c4ef56b3ab48d577e108baedf4bf88014214b9170d3234303530393132333735335a300c300a0603551d1504030a010130330214071de0778f9e5fc4f2878f30d6b07c9a30e6b30b170d3234303530393132333735335a300c300a0603551d1504030a01013034021500cde2424f972cea94ff239937f4d80c25029dd60b170d3234303530393132333735335a300c300a0603551d1504030a0101303302146c3319e5109b64507d3cf1132ce00349ef527319170d3234303530393132333735335a300c300a0603551d1504030a01013034021500df08d756b66a7497f43b5bb58ada04d3f4f7a937170d3234303530393132333735335a300c300a0603551d1504030a01013033021428af485b6cf67e409a39d5cb5aee4598f7a8fa7b170d3234303530393132333735335a300c300a0603551d1504030a01013034021500fb8b2daec092cada8aa9bc4ff2f1c20d0346668c170d3234303530393132333735335a300c300a0603551d1504030a01013034021500cd4850ac52bdcc69a6a6f058c8bc57bbd0b5f864170d3234303530393132333735335a300c300a0603551d1504030a01013034021500994dd3666f5275fb805f95dd02bd50cb2679d8ad170d3234303530393132333735335a300c300a0603551d1504030a0101303302140702136900252274d9035eedf5457462fad0ef4c170d3234303530393132333735335a300c300a0603551d1504030a01013033021461f2bf73e39b4e04aa27d801bd73d24319b5bf80170d3234303530393132333735335a300c300a0603551d1504030a0101303302143992be851b96902eff38959e6c2eff1b0651a4b5170d3234303530393132333735335a300c300a0603551d1504030a010130330214639f139a5040fdcff191e8a4fb1bf086ed603971170d3234303530393132333735335a300c300a0603551d1504030a01013034021500959d533f9249dc1e513544cdc830bf19b7f1f301170d3234303530393132333735335a300c300a0603551d1504030a0101303302140fda43a00b68ea79b7c2deaeac0b498bdfb2af90170d3234303530393132333735335a300c300a0603551d1504030a010130340215009d67753b81e47090aea763fbec4c4549bcdb9933170d3234303530393132333735335a300c300a0603551d1504030a01013033021434bfbb7a1d9c568147e118b614f7b76ed3ef68df170d3234303530393132333735335a300c300a0603551d1504030a0101303402150085d3c9381b77a7e04d119c9e5ad6749ff3ffab87170d3234303530393132333735335a300c300a0603551d1504030a0101303402150093887ca4411e7a923bd1fed2819b2949f201b5b4170d3234303530393132333735335a300c300a0603551d1504030a0101303302142498dc6283930996fd8bf23a37acbe26a3bed457170d3234303530393132333735335a300c300a0603551d1504030a010130340215008a66f1a749488667689cc3903ac54c662b712e73170d3234303530393132333735335a300c300a0603551d1504030a01013034021500afc13610bdd36cb7985d106481a880d3a01fda07170d3234303530393132333735335a300c300a0603551d1504030a01013034021500efe04b2c33d036aac96ca673bf1e9a47b64d5cbb170d3234303530393132333735335a300c300a0603551d1504030a0101303402150083d9ac8d8bb509d1c6c809ad712e8430559ed7f3170d3234303530393132333735335a300c300a0603551d1504030a0101303302147931fd50b5071c1bbfc5b7b6ded8b45b9d8b8529170d3234303530393132333735335a300c300a0603551d1504030a0101303302141fa20e2970bde5d57f7b8ddf8339484e1f1d0823170d3234303530393132333735335a300c300a0603551d1504030a0101303302141e87b2c3b32d8d23e411cef34197b95af0c8adf5170d3234303530393132333735335a300c300a0603551d1504030a010130340215009afd2ee90a473550a167d996911437c7502d1f09170d3234303530393132333735335a300c300a0603551d1504030a0101303302144481b0f11728a13b696d3ea9c770a0b15ec58dda170d3234303530393132333735335a300c300a0603551d1504030a01013034021500a7859f57982ef0e67d37bc8ef2ef5ac835ff1aa9170d3234303530393132333735335a300c300a0603551d1504030a0101303302147ae37748a9f912f4c63ba7ab07c593ce1d1d1181170d3234303530393132333735335a300c300a0603551d1504030a01013033021413884b33269938c195aa170fca75da177538df0b170d3234303530393132333735335a300c300a0603551d1504030a0101303302142c3cc6fe9279db1516d5ce39f2a898cda5a175e1170d3234303530393132333735335a300c300a0603551d1504030a010130330214717948687509234be979e4b7dce6f31bef64b68c170d3234303530393132333735335a300c300a0603551d1504030a010130340215009d76ef2c39c136e8658b6e7396b1d7445a27631f170d3234303530393132333735335a300c300a0603551d1504030a01013034021500c3e025fca995f36f59b48467939e3e34e6361a6f170d3234303530393132333735335a300c300a0603551d1504030a010130340215008c5f6b3257da05b17429e2e61ba965d67330606a170d3234303530393132333735335a300c300a0603551d1504030a01013034021500a17c51722ec1e0c3278fe8bdf052059cbec4e648170d3234303530393132333735335a300c300a0603551d1504030a0101a02f302d300a0603551d140403020101301f0603551d23041830168014956f5dcdbd1be1e94049c9d4f433ce01570bde54300a06082a8648ce3d04030203480030450220556cff7546df52c6c39dae93fd6c0c2c5375fffe28c9b06e702fd8fed06eb4ad022100dfcfc43950839421833147eac23990a3017b9ea2f6cd49a1060363b83246ba2b"; - pcsDao.upsertPckCrl(CA.PLATFORM, pckCrlUpdate); - V4QuoteVerifier quoteVerifier = new V4QuoteVerifier(P256_VERIFIER, address(pccsRouter)); - attestation.setQuoteVerifier(address(quoteVerifier)); - pccsRouter.setAuthorized(address(quoteVerifier), true); - assertEq(address(attestation.quoteVerifiers(4)), address(quoteVerifier)); - vm.stopPrank(); - bytes memory output = - hex"02550004000000810790c06f000000040102000000000000000000000000009790d89a10210ec6968a773cee2ca05b5aa97309f36727a968527be4606fc19e6f73acce350946c9d46a9bf7a63f843000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000080e702060000000000f2dd2696f69b950645832bdc095ffd11247eeff687eeacdb57a58d2ddb9a9f94fea40c961e19460c00ffa31420ecbc180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000998204508d58dcbfebe5e11c48669f7a921ac2da744dfb7d014ecdff2acdff1c9f665fdad52aadacf296a1df9909eb2383d100224f1716aeb431f7cb3cf028197dbd872487f27b0f6329ab17647dc9953c7014109818634f879e6550bc60f93eecfc42ff4d49278bfdbb0c77e570f4490cff10a2ee1ac11fbd2c2b49fa6cfa3cf1a1cb755c72522dd8a689e9d47906a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000278e753482976c8a7351fe2113609c7350d491cdae3d449eefc202fa41b2ad6840239cc2ba084c2d594b4e6dabeae0fcbf71c96daf0d0c9ecf0e9810c0457900000000006711a5009d15153a84fbc62bcf79a13967729408838fc92c0c97eb85d628db3566af265467eebe27bf6dc0aa227bc8ad11c55c22370f4f7e7246c6c65bef5205342142090fa74a3f32c80b978c8ad671395dabf24283eef9091bc3919fd39b9915a87f1adf3061c165c0191e2658256a2855cac9267f179aafb1990c9e918d6452816adf9953f245d005b9d7d8e36a842a60b51e5cf85b2c2072ae397c178535c9985b77607c9c42db9df0b9b1a68b4172b8f2303edbf0a41308850a850bcbfb713318b0"; + hex"02550004000000810790c06f000000040102000000000000000000000000009790d89a10210ec6968a773cee2ca05b5aa97309f36727a968527be4606fc19e6f73acce350946c9d46a9bf7a63f843000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000080e702060000000000f2dd2696f69b950645832bdc095ffd11247eeff687eeacdb57a58d2ddb9a9f94fea40c961e19460c00ffa31420ecbc180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000998204508d58dcbfebe5e11c48669f7a921ac2da744dfb7d014ecdff2acdff1c9f665fdad52aadacf296a1df9909eb2383d100224f1716aeb431f7cb3cf028197dbd872487f27b0f6329ab17647dc9953c7014109818634f879e6550bc60f93eecfc42ff4d49278bfdbb0c77e570f4490cff10a2ee1ac11fbd2c2b49fa6cfa3cf1a1cb755c72522dd8a689e9d47906a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000278e753482976c8a7351fe2113609c7350d491cdae3d449eefc202fa41b2ad6840239cc2ba084c2d594b4e6dabeae0fcbf71c96daf0d0c9ecf0e9810c04579000000000067b006b403863cd13231f2d431dbcbafba3fa2fb4a8668752557895e52afd8f6406ceeb525954f2ff27b06ed06c7181e098d51fc7733a265b4142a4842e00b32bc6e1b110fa74a3f32c80b978c8ad671395dabf24283eef9091bc3919fd39b9915a87f1adf3061c165c0191e2658256a2855cac9267f179aafb1990c9e918d6452816adf9953f245d005b9d7d8e36a842a60b51e5cf85b2c2072ae397c178535c9985b7700e00c2b7e9ae1844a3b2a788e2daa597ba0ee41e4e9f1f354327db6b18ee229"; bytes memory proofBytes = - hex"090690902e3b7d041ca4d5f9f3b26f78687c0b6713374e64ecf3dedea472ba9c8520da991f0eab3733f2d32ea127447cea9698981866ba2eb5f945107f5476e5f44fa78b0beff7bc8f171768ce1c2b1e7ca2a9de2cf041bc93d603d0d1dc6fd69eb57f0c2fa84dee5d83f0345efa4d7ec3fff021118fbc7924d1374cc04b5ac4b5d70f8c15939e4c434318ee15e65f5a1ff612571ba93734dc57fc2de4c6a17a6fd28fd60007f59f01c31558a0b7f3e4152a8975b0a39497531d08e0b603ddd24445b2f30e167bfa7be1524e3eb552e031250a76d78aa6f634ada635c82dce0ae667a7af29345d5a84e2f4bcb22c1e06258ab163458cfd0aaeb9577e1d430788d94aadb6"; + hex"11b6a09d2b8e000ccbed41506cc7131c70031434a75d0ca33b4dd7d0ea769e189afa21aa2a145814dedc2a12b2180b47e67c93ee982d4fd0143ed7e13df115bf248217041f8b5d00b67243cd0319e6c2ec6f96f61a93e0683c6295882c002745595fa7310bb43660ee1b00fdef31f2d30dfa81bb199e3a824af2a80cc0e190f83d63b864098108966cdcdeb8a6b0b4e5ab52e8f863c10b6a016b7bd26f3695221c6390c317ca3c52e52179a2e89a26240c2ebfb5155ff5c5beaf3cf7f89d75eb67fe85fb1b03330859f5b22bf64093279bf09be0c024ae6bc4e01722df0b7888a520dd57243ca01f096f548dd0f151161035f247a29c48338dd23de0860e7d01d01b58ec"; - ZkCoProcessorType zkCoProcessorType = ZkCoProcessorType.Succinct; - (bool success, bytes memory ret) = attestation.verifyAndAttestWithZKProof( - output, - zkCoProcessorType, - proofBytes - ); + ZkCoProcessorType zkCoProcessorType = ZkCoProcessorType.Succinct; + (bool success, bytes memory ret) = attestation.verifyAndAttestWithZKProof( + output, + zkCoProcessorType, + proofBytes + ); if (!success) { console.log(string(ret)); @@ -182,10 +176,10 @@ contract AutomataDcapAttestationFeeTest is PCCSSetupBase, RiscZeroSetup { assertTrue(success); } - function testSuccintPlonkProofAttestation() public { + function testSuccintPlonkProofAttestation() public setupZk { succinctPlonkSetup = new PlonkSetup(); - bytes32 vk = 0x0043e4e0c286cf4a2c03472ca2384f35a008558bc5de4e0f39d1d1bc989badca; + bytes32 vk = 0x004be684aaf90b70fb2d8f586ec96c36cee5f6533850b14e8b5568f4dbf31f8e; ISP1Verifier sp1Verifier = ISP1Verifier(succinctPlonkSetup.setup()); ZkCoProcessorConfig memory succinctConfig = ZkCoProcessorConfig({ dcapProgramIdentifier: vk, @@ -197,20 +191,8 @@ contract AutomataDcapAttestationFeeTest is PCCSSetupBase, RiscZeroSetup { succinctConfig ); - // pinned May 10th, 2024, Midnight GMT - vm.warp(1715342400); - - vm.startPrank(admin); - bytes memory pckCrlUpdate = hex"30820a6230820a08020101300a06082a8648ce3d04030230703122302006035504030c19496e74656c205347582050434b20506c6174666f726d204341311a3018060355040a0c11496e74656c20436f72706f726174696f6e3114301206035504070c0b53616e746120436c617261310b300906035504080c024341310b3009060355040613025553170d3234303530393132333735335a170d3234303630383132333735335a30820934303302146fc34e5023e728923435d61aa4b83c618166ad35170d3234303530393132333735335a300c300a0603551d1504030a01013034021500efae6e9715fca13b87e333e8261ed6d990a926ad170d3234303530393132333735335a300c300a0603551d1504030a01013034021500fd608648629cba73078b4d492f4b3ea741ad08cd170d3234303530393132333735335a300c300a0603551d1504030a010130340215008af924184e1d5afddd73c3d63a12f5e8b5737e56170d3234303530393132333735335a300c300a0603551d1504030a01013034021500b1257978cfa9ccdd0759abf8c5ca72fae3a78a9b170d3234303530393132333735335a300c300a0603551d1504030a01013033021474fea614a972be0e2843f2059835811ed872f9b3170d3234303530393132333735335a300c300a0603551d1504030a01013034021500f9c4ef56b3ab48d577e108baedf4bf88014214b9170d3234303530393132333735335a300c300a0603551d1504030a010130330214071de0778f9e5fc4f2878f30d6b07c9a30e6b30b170d3234303530393132333735335a300c300a0603551d1504030a01013034021500cde2424f972cea94ff239937f4d80c25029dd60b170d3234303530393132333735335a300c300a0603551d1504030a0101303302146c3319e5109b64507d3cf1132ce00349ef527319170d3234303530393132333735335a300c300a0603551d1504030a01013034021500df08d756b66a7497f43b5bb58ada04d3f4f7a937170d3234303530393132333735335a300c300a0603551d1504030a01013033021428af485b6cf67e409a39d5cb5aee4598f7a8fa7b170d3234303530393132333735335a300c300a0603551d1504030a01013034021500fb8b2daec092cada8aa9bc4ff2f1c20d0346668c170d3234303530393132333735335a300c300a0603551d1504030a01013034021500cd4850ac52bdcc69a6a6f058c8bc57bbd0b5f864170d3234303530393132333735335a300c300a0603551d1504030a01013034021500994dd3666f5275fb805f95dd02bd50cb2679d8ad170d3234303530393132333735335a300c300a0603551d1504030a0101303302140702136900252274d9035eedf5457462fad0ef4c170d3234303530393132333735335a300c300a0603551d1504030a01013033021461f2bf73e39b4e04aa27d801bd73d24319b5bf80170d3234303530393132333735335a300c300a0603551d1504030a0101303302143992be851b96902eff38959e6c2eff1b0651a4b5170d3234303530393132333735335a300c300a0603551d1504030a010130330214639f139a5040fdcff191e8a4fb1bf086ed603971170d3234303530393132333735335a300c300a0603551d1504030a01013034021500959d533f9249dc1e513544cdc830bf19b7f1f301170d3234303530393132333735335a300c300a0603551d1504030a0101303302140fda43a00b68ea79b7c2deaeac0b498bdfb2af90170d3234303530393132333735335a300c300a0603551d1504030a010130340215009d67753b81e47090aea763fbec4c4549bcdb9933170d3234303530393132333735335a300c300a0603551d1504030a01013033021434bfbb7a1d9c568147e118b614f7b76ed3ef68df170d3234303530393132333735335a300c300a0603551d1504030a0101303402150085d3c9381b77a7e04d119c9e5ad6749ff3ffab87170d3234303530393132333735335a300c300a0603551d1504030a0101303402150093887ca4411e7a923bd1fed2819b2949f201b5b4170d3234303530393132333735335a300c300a0603551d1504030a0101303302142498dc6283930996fd8bf23a37acbe26a3bed457170d3234303530393132333735335a300c300a0603551d1504030a010130340215008a66f1a749488667689cc3903ac54c662b712e73170d3234303530393132333735335a300c300a0603551d1504030a01013034021500afc13610bdd36cb7985d106481a880d3a01fda07170d3234303530393132333735335a300c300a0603551d1504030a01013034021500efe04b2c33d036aac96ca673bf1e9a47b64d5cbb170d3234303530393132333735335a300c300a0603551d1504030a0101303402150083d9ac8d8bb509d1c6c809ad712e8430559ed7f3170d3234303530393132333735335a300c300a0603551d1504030a0101303302147931fd50b5071c1bbfc5b7b6ded8b45b9d8b8529170d3234303530393132333735335a300c300a0603551d1504030a0101303302141fa20e2970bde5d57f7b8ddf8339484e1f1d0823170d3234303530393132333735335a300c300a0603551d1504030a0101303302141e87b2c3b32d8d23e411cef34197b95af0c8adf5170d3234303530393132333735335a300c300a0603551d1504030a010130340215009afd2ee90a473550a167d996911437c7502d1f09170d3234303530393132333735335a300c300a0603551d1504030a0101303302144481b0f11728a13b696d3ea9c770a0b15ec58dda170d3234303530393132333735335a300c300a0603551d1504030a01013034021500a7859f57982ef0e67d37bc8ef2ef5ac835ff1aa9170d3234303530393132333735335a300c300a0603551d1504030a0101303302147ae37748a9f912f4c63ba7ab07c593ce1d1d1181170d3234303530393132333735335a300c300a0603551d1504030a01013033021413884b33269938c195aa170fca75da177538df0b170d3234303530393132333735335a300c300a0603551d1504030a0101303302142c3cc6fe9279db1516d5ce39f2a898cda5a175e1170d3234303530393132333735335a300c300a0603551d1504030a010130330214717948687509234be979e4b7dce6f31bef64b68c170d3234303530393132333735335a300c300a0603551d1504030a010130340215009d76ef2c39c136e8658b6e7396b1d7445a27631f170d3234303530393132333735335a300c300a0603551d1504030a01013034021500c3e025fca995f36f59b48467939e3e34e6361a6f170d3234303530393132333735335a300c300a0603551d1504030a010130340215008c5f6b3257da05b17429e2e61ba965d67330606a170d3234303530393132333735335a300c300a0603551d1504030a01013034021500a17c51722ec1e0c3278fe8bdf052059cbec4e648170d3234303530393132333735335a300c300a0603551d1504030a0101a02f302d300a0603551d140403020101301f0603551d23041830168014956f5dcdbd1be1e94049c9d4f433ce01570bde54300a06082a8648ce3d04030203480030450220556cff7546df52c6c39dae93fd6c0c2c5375fffe28c9b06e702fd8fed06eb4ad022100dfcfc43950839421833147eac23990a3017b9ea2f6cd49a1060363b83246ba2b"; - pcsDao.upsertPckCrl(CA.PLATFORM, pckCrlUpdate); - V4QuoteVerifier quoteVerifier = new V4QuoteVerifier(P256_VERIFIER, address(pccsRouter)); - attestation.setQuoteVerifier(address(quoteVerifier)); - pccsRouter.setAuthorized(address(quoteVerifier), true); - assertEq(address(attestation.quoteVerifiers(4)), address(quoteVerifier)); - vm.stopPrank(); - - bytes memory output = hex"02550004000000810790c06f000000040102000000000000000000000000009790d89a10210ec6968a773cee2ca05b5aa97309f36727a968527be4606fc19e6f73acce350946c9d46a9bf7a63f843000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000080e702060000000000f2dd2696f69b950645832bdc095ffd11247eeff687eeacdb57a58d2ddb9a9f94fea40c961e19460c00ffa31420ecbc180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000998204508d58dcbfebe5e11c48669f7a921ac2da744dfb7d014ecdff2acdff1c9f665fdad52aadacf296a1df9909eb2383d100224f1716aeb431f7cb3cf028197dbd872487f27b0f6329ab17647dc9953c7014109818634f879e6550bc60f93eecfc42ff4d49278bfdbb0c77e570f4490cff10a2ee1ac11fbd2c2b49fa6cfa3cf1a1cb755c72522dd8a689e9d47906a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000278e753482976c8a7351fe2113609c7350d491cdae3d449eefc202fa41b2ad6840239cc2ba084c2d594b4e6dabeae0fcbf71c96daf0d0c9ecf0e9810c0457900000000006711a5009d15153a84fbc62bcf79a13967729408838fc92c0c97eb85d628db3566af265467eebe27bf6dc0aa227bc8ad11c55c22370f4f7e7246c6c65bef5205342142090fa74a3f32c80b978c8ad671395dabf24283eef9091bc3919fd39b9915a87f1adf3061c165c0191e2658256a2855cac9267f179aafb1990c9e918d6452816adf9953f245d005b9d7d8e36a842a60b51e5cf85b2c2072ae397c178535c9985b77607c9c42db9df0b9b1a68b4172b8f2303edbf0a41308850a850bcbfb713318b0"; - bytes memory proofBytes = hex"54bdcae30257b2a6b364ef0ad5d08c1789c5bd33bdae2f6a077108a4287b6c119bfa95e01c52f57b719acfece7405d405a3af1800400e03dabbc12a416aac723de796c550d20db00d614561667a91e5131d399e6ab7187f2ee74ccf892736206462f704226cda97a534276d92dca4332fce7578a97906e74b451e3eca007707db34df26f293ce4413d61a21da49c685b4a4619e0c98ab29a9eec217c9466cc1fdf05b8f30d2987b8d93976805123ffa978c5b830c9abea8921b0c0d7901b0f558a3cd9fc2f31f0568cbfb8df1ce63058992d1f3e921ae4d6a54caba77394429e36f40e6916eaad98e391db1af39829bd4f2b6a16bbf71d9f714ac412042e1febe663927e1fd67bd115e78a370cccca6d53851ecdf6762c705d3bbb63f35d00373eef20561ad93d9e046335a11fa48469850181e80c5944cbfce75447f72ed296f304b4160acdf1ef3858974fbc379aa75efa7eb3aa8e20ad5565045b9288f592a6e17b141f86b4d4c4c5fdec21b113d6e423212f5db56b8a546885b12cc9e379abad7513247d03ebc3964c7b04fe00eaf3adebbb1a59af03de4e21faa0380f50f269925822285195a606c06f4e0d34f7773b1576454e33affeea4b4424175a573a4b21f813432bd4f4081ad49a5e11d3c5bda4db6eeba477e7e1560caccc2d8a120b7646304fef4b3a2d058419a2af9e39e52944c819576db4d77382563e5358c2db02fd09c7e153e9a5d9dd3e29a155ae8841049d1ed0ec88dbf07c051b9b3b69ee9dd41aade969bdc2ee2ee639fa1178e2ea50dbb415d72ea273da05579434a0d2fbf528a61bfd3ed97fdcb13ac1b79206ca950c59328e74a4961c070179455ae0be9d1f22d8414937f676ddecfc28d0af8c8d203cd12c2607cf261f7e5d842622fbbd2f953cf2a3ae123569cea71b1d8d1e3ff5307dfbfba7524d4cf063497acadfd62cae8f0e2292f0c9034401685afedc3b4060fc4a3c984da6e3adf0888bc00fda2d658d77046a032c5c80e2c61f3167d0c0740ea286987e14278aeb109d5a9a230ed0932e114ddc4ba556334322e49ef973532d4bb1fe014fbf5da9b545af71362beb8ce20aa2a34b2f83600ab74de1d5ed7283c294c7cb7a144c90e7d33f8bf3043f7299964fe67fce64ece1665566b6c669025d1008267551563f3d8ed3e42b277efe0627ec0a327c7551258e11410c7f4f3e12ab3536ba7966d954d25891bf"; + bytes memory output = hex"02550004000000810790c06f000000040102000000000000000000000000009790d89a10210ec6968a773cee2ca05b5aa97309f36727a968527be4606fc19e6f73acce350946c9d46a9bf7a63f843000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000080e702060000000000f2dd2696f69b950645832bdc095ffd11247eeff687eeacdb57a58d2ddb9a9f94fea40c961e19460c00ffa31420ecbc180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000998204508d58dcbfebe5e11c48669f7a921ac2da744dfb7d014ecdff2acdff1c9f665fdad52aadacf296a1df9909eb2383d100224f1716aeb431f7cb3cf028197dbd872487f27b0f6329ab17647dc9953c7014109818634f879e6550bc60f93eecfc42ff4d49278bfdbb0c77e570f4490cff10a2ee1ac11fbd2c2b49fa6cfa3cf1a1cb755c72522dd8a689e9d47906a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000278e753482976c8a7351fe2113609c7350d491cdae3d449eefc202fa41b2ad6840239cc2ba084c2d594b4e6dabeae0fcbf71c96daf0d0c9ecf0e9810c04579000000000067b006b403863cd13231f2d431dbcbafba3fa2fb4a8668752557895e52afd8f6406ceeb525954f2ff27b06ed06c7181e098d51fc7733a265b4142a4842e00b32bc6e1b110fa74a3f32c80b978c8ad671395dabf24283eef9091bc3919fd39b9915a87f1adf3061c165c0191e2658256a2855cac9267f179aafb1990c9e918d6452816adf9953f245d005b9d7d8e36a842a60b51e5cf85b2c2072ae397c178535c9985b7700e00c2b7e9ae1844a3b2a788e2daa597ba0ee41e4e9f1f354327db6b18ee229"; + bytes memory proofBytes = hex"1b34fe112da3087c2646a96390d9e099b970344f54d789d13dcd832bf2c59a23a63dfb460c0e6987e2a0fdc7eaf928b5689d0e97ec6bcd0ef67eb9ad4a42c949ed431e3311967c5963426367135cfd8751047d5209792b9dad662f52ff6197bd600b9ae728d61159b55aa94045da470745b1f8f5137a4f99ce0d30ac7202a6e1590a6ced2296ec7a5ba39cf76ac06adabd08dab5ba10e7384674ff3d244bc5f690fbe2712b62a0bf3b91b044a23075d1efba46f873df98f874fd4e27d22d1e2d65e7272c1e5fbd9d31f75a40b8912ecf44101605f73477e243ab22a4a0f7adbcf8e88c5005531fca592574e5d15b7fcb2a819292af7410d782b2a0a3156efa60997c42fe08f9cc8cb213364b620dca78f4cc186303fda22c7f0b027ea75e17c82810f6f82c93216146308180d726a6f16617f44dc611529f08b8d89dce99a36a6b494759069374e3050fa1aff68e40ddf2f1fe10b014f73c8f95e4c60a257ee37fb7bf8214aaed78d01ab56296bbbd9015c1d1e2ddf8c52179aa05d85a3a46773db4eb261fafbeed45fddb5d3270674c04bd0f1eb2c6836f52f74452d0c414d69ae0aaaa279ecff66753d0b5b5f44979c1addc33025ddfa54d3349d036ca970a4e5e291b057816d8cdc3a40751ebb4423651e4a7eb8cf9a8cebfb2eb74d0be4f95fe6ba2210d632fdfa9ab25c9f06c0f5593795b8456ef42cafbff86b7962fd62120a696046cc25351b3aaf6efcac18206f53b6214e4cac133e1f20c75821f0e0169f3b822c7e3af6419ca25ecf74caadd048a1ffca7e0ff5d57571600505c48bd701b1506235270cd4299358c259d7d5f7e5af7cd2cfbd7c169108562c881136733f5c91bbf45065e776ab6eb656bae1548d79711dd0bd54cd4771362ba6f6210f2060f23b02663771fe4c19ee899e5ab996f659443dbe1866a5d35242a148421bd561229ba8af3e407c0564b9931c5d058b4b1b241b4894db80f5cc2866cef2272b1b8175140b025b35c76bd1a17e188823e13c525479f73615af264db7b98322ccf65040fb09079a5a300babf6380d0813fbee9976c1fd6b41572d127d076dd9611541c7bf1c23fa76df796e7294df7523b25d6d007626308a8cb287e6274bad6bb3510ab94ad38a337e7c36532057d63dc779a0bd6d0528bd6c69c87b3c8a3667d3521ed8a9b6ebf5f2ab15acd4fade7506268ede3b38d2899bb718e30622b5b698e"; ZkCoProcessorType zkCoProcessorType = ZkCoProcessorType.Succinct; (bool success, bytes memory ret)= attestation.verifyAndAttestWithZKProof( diff --git a/evm/forge-test/assets/0225/identity_tdx.json b/evm/forge-test/assets/0225/identity_tdx.json new file mode 100644 index 0000000..38693ef --- /dev/null +++ b/evm/forge-test/assets/0225/identity_tdx.json @@ -0,0 +1 @@ +{"enclaveIdentity":{"id":"TD_QE","version":2,"issueDate":"2025-02-15T02:09:37Z","nextUpdate":"2025-03-17T02:09:37Z","tcbEvaluationDataNumber":17,"miscselect":"00000000","miscselectMask":"FFFFFFFF","attributes":"11000000000000000000000000000000","attributesMask":"FBFFFFFFFFFFFFFF0000000000000000","mrsigner":"DC9E2A7C6F948F17474E34A7FC43ED030F7C1563F1BABDDF6340C82E0E54A8C5","isvprodid":2,"tcbLevels":[{"tcb":{"isvsvn":4},"tcbDate":"2024-03-13T00:00:00Z","tcbStatus":"UpToDate"}]},"signature":"9f14a5762519a73476fc3944bfb318a9f14afa622546a55ee25ae93cdb91756f4b9b15e4d7e65d5da2dd7d5cf8123895507c29d329dabc26c95efe28bb6e32d9"} \ No newline at end of file diff --git a/evm/forge-test/assets/0225/tcbinfo-tdx-v3.json b/evm/forge-test/assets/0225/tcbinfo-tdx-v3.json new file mode 100644 index 0000000..a55a51c --- /dev/null +++ b/evm/forge-test/assets/0225/tcbinfo-tdx-v3.json @@ -0,0 +1 @@ +{"tcbInfo":{"id":"TDX","version":3,"issueDate":"2025-02-15T03:05:10Z","nextUpdate":"2025-03-17T03:05:10Z","fmspc":"90C06F000000","pceId":"0000","tcbType":0,"tcbEvaluationDataNumber":17,"tdxModule":{"mrsigner":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","attributes":"0000000000000000","attributesMask":"FFFFFFFFFFFFFFFF"},"tdxModuleIdentities":[{"id":"TDX_03","mrsigner":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","attributes":"0000000000000000","attributesMask":"FFFFFFFFFFFFFFFF","tcbLevels":[{"tcb":{"isvsvn":3},"tcbDate":"2024-03-13T00:00:00Z","tcbStatus":"UpToDate"}]},{"id":"TDX_01","mrsigner":"000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","attributes":"0000000000000000","attributesMask":"FFFFFFFFFFFFFFFF","tcbLevels":[{"tcb":{"isvsvn":4},"tcbDate":"2024-03-13T00:00:00Z","tcbStatus":"UpToDate"},{"tcb":{"isvsvn":2},"tcbDate":"2023-08-09T00:00:00Z","tcbStatus":"OutOfDate"}]}],"tcbLevels":[{"tcb":{"sgxtcbcomponents":[{"svn":2,"category":"BIOS","type":"Early Microcode Update"},{"svn":2,"category":"OS/VMM","type":"SGX Late Microcode Update"},{"svn":2,"category":"OS/VMM","type":"TXT SINIT"},{"svn":2,"category":"BIOS"},{"svn":3,"category":"BIOS"},{"svn":1,"category":"BIOS"},{"svn":0},{"svn":5,"category":"OS/VMM","type":"SEAMLDR ACM"},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0}],"pcesvn":13,"tdxtcbcomponents":[{"svn":5,"category":"OS/VMM","type":"TDX Module"},{"svn":0,"category":"OS/VMM","type":"TDX Module"},{"svn":2,"category":"OS/VMM","type":"TDX Late Microcode Update"},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0}]},"tcbDate":"2024-03-13T00:00:00Z","tcbStatus":"UpToDate"},{"tcb":{"sgxtcbcomponents":[{"svn":2,"category":"BIOS","type":"Early Microcode Update"},{"svn":2,"category":"OS/VMM","type":"SGX Late Microcode Update"},{"svn":2,"category":"OS/VMM","type":"TXT SINIT"},{"svn":2,"category":"BIOS"},{"svn":3,"category":"BIOS"},{"svn":1,"category":"BIOS"},{"svn":0},{"svn":5,"category":"OS/VMM","type":"SEAMLDR ACM"},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0}],"pcesvn":5,"tdxtcbcomponents":[{"svn":5,"category":"OS/VMM","type":"TDX Module"},{"svn":0,"category":"OS/VMM","type":"TDX Module"},{"svn":2,"category":"OS/VMM","type":"TDX Late Microcode Update"},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0},{"svn":0}]},"tcbDate":"2018-01-04T00:00:00Z","tcbStatus":"OutOfDate","advisoryIDs":["INTEL-SA-00106","INTEL-SA-00115","INTEL-SA-00135","INTEL-SA-00203","INTEL-SA-00220","INTEL-SA-00233","INTEL-SA-00270","INTEL-SA-00293","INTEL-SA-00320","INTEL-SA-00329","INTEL-SA-00381","INTEL-SA-00389","INTEL-SA-00477","INTEL-SA-00837"]}]},"signature":"c1b19da64b40db0d7dec11e37691e1e585a82379b1fc50d11c830418d6d12d4b7d5fe3fb761c55d173194a206fa8ae24f5ccbc62b8e1f2603d79b49535766908"} \ No newline at end of file diff --git a/forge-test/assets/0624/identity.json b/evm/forge-test/assets/0624/identity.json similarity index 100% rename from forge-test/assets/0624/identity.json rename to evm/forge-test/assets/0624/identity.json diff --git a/forge-test/assets/0624/qeidentityv2_apiv4.json b/evm/forge-test/assets/0624/qeidentityv2_apiv4.json similarity index 100% rename from forge-test/assets/0624/qeidentityv2_apiv4.json rename to evm/forge-test/assets/0624/qeidentityv2_apiv4.json diff --git a/forge-test/assets/0624/tcbinfo.json b/evm/forge-test/assets/0624/tcbinfo.json similarity index 100% rename from forge-test/assets/0624/tcbinfo.json rename to evm/forge-test/assets/0624/tcbinfo.json diff --git a/forge-test/assets/0624/tcbinfov3_00806f050000.json b/evm/forge-test/assets/0624/tcbinfov3_00806f050000.json similarity index 100% rename from forge-test/assets/0624/tcbinfov3_00806f050000.json rename to evm/forge-test/assets/0624/tcbinfov3_00806f050000.json diff --git a/forge-test/utils/PCCSSetupBase.sol b/evm/forge-test/utils/PCCSSetupBase.sol similarity index 100% rename from forge-test/utils/PCCSSetupBase.sol rename to evm/forge-test/utils/PCCSSetupBase.sol diff --git a/evm/forge-test/utils/RiscZeroSetup.sol b/evm/forge-test/utils/RiscZeroSetup.sol new file mode 100644 index 0000000..a310328 --- /dev/null +++ b/evm/forge-test/utils/RiscZeroSetup.sol @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: UNLICENSED +pragma solidity ^0.8.13; + +import {RiscZeroGroth16Verifier} from "risc0/groth16/RiscZeroGroth16Verifier.sol"; +import {ControlID} from "risc0/groth16/ControlID.sol"; + +abstract contract RiscZeroSetup { + RiscZeroGroth16Verifier riscZeroVerifier; + + function setUpRiscZero() internal { + riscZeroVerifier = new RiscZeroGroth16Verifier( + ControlID.CONTROL_ROOT, + ControlID.BN254_CONTROL_ID + ); + } +} \ No newline at end of file diff --git a/forge-test/utils/succinct/Groth16Setup.sol b/evm/forge-test/utils/succinct/Groth16Setup.sol similarity index 76% rename from forge-test/utils/succinct/Groth16Setup.sol rename to evm/forge-test/utils/succinct/Groth16Setup.sol index bb80722..cb4db4e 100644 --- a/forge-test/utils/succinct/Groth16Setup.sol +++ b/evm/forge-test/utils/succinct/Groth16Setup.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.13; -import {SP1Verifier} from "@sp1-contracts/v3.0.0/SP1VerifierGroth16.sol"; +import {SP1Verifier} from "@sp1-contracts/v4.0.0-rc.3/SP1VerifierGroth16.sol"; contract Groth16Setup { function setup() public returns (address verifier) { diff --git a/forge-test/utils/succinct/PlonkSetup.sol b/evm/forge-test/utils/succinct/PlonkSetup.sol similarity index 76% rename from forge-test/utils/succinct/PlonkSetup.sol rename to evm/forge-test/utils/succinct/PlonkSetup.sol index d754647..e6edcb8 100644 --- a/forge-test/utils/succinct/PlonkSetup.sol +++ b/evm/forge-test/utils/succinct/PlonkSetup.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.13; -import {SP1Verifier} from "@sp1-contracts/v3.0.0/SP1VerifierPlonk.sol"; +import {SP1Verifier} from "@sp1-contracts/v4.0.0-rc.3/SP1VerifierPlonk.sol"; contract PlonkSetup { function setup() public returns (address verifier) { diff --git a/foundry.toml b/evm/foundry.toml similarity index 100% rename from foundry.toml rename to evm/foundry.toml diff --git a/js/abi/AutomataDcapAttestation.json b/evm/js/abi/AutomataDcapAttestation.json similarity index 100% rename from js/abi/AutomataDcapAttestation.json rename to evm/js/abi/AutomataDcapAttestation.json diff --git a/js/abi/IAttestation.json b/evm/js/abi/IAttestation.json similarity index 100% rename from js/abi/IAttestation.json rename to evm/js/abi/IAttestation.json diff --git a/js/data/quote.hex b/evm/js/data/quote.hex similarity index 100% rename from js/data/quote.hex rename to evm/js/data/quote.hex diff --git a/js/data/quoteV3.hex b/evm/js/data/quoteV3.hex similarity index 100% rename from js/data/quoteV3.hex rename to evm/js/data/quoteV3.hex diff --git a/js/data/sample.hex b/evm/js/data/sample.hex similarity index 100% rename from js/data/sample.hex rename to evm/js/data/sample.hex diff --git a/js/index.js b/evm/js/index.js similarity index 100% rename from js/index.js rename to evm/js/index.js diff --git a/js/package.json b/evm/js/package.json similarity index 100% rename from js/package.json rename to evm/js/package.json diff --git a/js/yarn.lock b/evm/js/yarn.lock similarity index 100% rename from js/yarn.lock rename to evm/js/yarn.lock diff --git a/lib/automata-on-chain-pccs b/evm/lib/automata-on-chain-pccs similarity index 100% rename from lib/automata-on-chain-pccs rename to evm/lib/automata-on-chain-pccs diff --git a/evm/lib/forge-std b/evm/lib/forge-std new file mode 160000 index 0000000..3b20d60 --- /dev/null +++ b/evm/lib/forge-std @@ -0,0 +1 @@ +Subproject commit 3b20d60d14b343ee4f908cb8079495c07f5e8981 diff --git a/evm/lib/risc0-ethereum b/evm/lib/risc0-ethereum new file mode 160000 index 0000000..b9b22c3 --- /dev/null +++ b/evm/lib/risc0-ethereum @@ -0,0 +1 @@ +Subproject commit b9b22c396a0d5ef97bf02702da9415d5bb79a85a diff --git a/evm/lib/sp1-contracts b/evm/lib/sp1-contracts new file mode 160000 index 0000000..26651fd --- /dev/null +++ b/evm/lib/sp1-contracts @@ -0,0 +1 @@ +Subproject commit 26651fdb1c1d6513443560d42888dedc3f68bde6 diff --git a/forge-test/utils/RiscZeroSetup.sol b/forge-test/utils/RiscZeroSetup.sol deleted file mode 100644 index 049ba89..0000000 --- a/forge-test/utils/RiscZeroSetup.sol +++ /dev/null @@ -1,16 +0,0 @@ -// SPDX-License-Identifier: UNLICENSED -pragma solidity ^0.8.13; - -import {RiscZeroGroth16Verifier} from "risc0/groth16/RiscZeroGroth16Verifier.sol"; - -abstract contract RiscZeroSetup { - bytes32 public constant CONTROL_ROOT = hex"8b6dcf11d463ac455361b41fb3ed053febb817491bdea00fdb340e45013b852e"; - // NOTE: This has opposite byte order to the value in the risc0 repository. - bytes32 public constant BN254_CONTROL_ID = hex"05a022e1db38457fb510bc347b30eb8f8cf3eda95587653d0eac19e1f10d164e"; - - RiscZeroGroth16Verifier riscZeroVerifier; - - function setUpRiscZero() internal { - riscZeroVerifier = new RiscZeroGroth16Verifier(CONTROL_ROOT, BN254_CONTROL_ID); - } -} diff --git a/lib/forge-std b/lib/forge-std deleted file mode 160000 index bdea49f..0000000 --- a/lib/forge-std +++ /dev/null @@ -1 +0,0 @@ -Subproject commit bdea49f9bb3c58c8c35850c3bdc17eaeea756e9a diff --git a/lib/risc0-ethereum b/lib/risc0-ethereum deleted file mode 160000 index 35a6e27..0000000 --- a/lib/risc0-ethereum +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 35a6e27a39fc8408ee1c7d2c7da4c762c2fb0f25 diff --git a/lib/sp1-contracts b/lib/sp1-contracts deleted file mode 160000 index 275691a..0000000 --- a/lib/sp1-contracts +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 275691af9bfaf67158f6df1f4c3c1646eb03eed0 diff --git a/solana/.gitignore b/solana/.gitignore new file mode 100644 index 0000000..bd52eab --- /dev/null +++ b/solana/.gitignore @@ -0,0 +1,4 @@ +**/target +**/keypair +**/Cargo.lock +**/.DS_Store \ No newline at end of file diff --git a/solana/automata-dcap-client/Cargo.toml b/solana/automata-dcap-client/Cargo.toml new file mode 100644 index 0000000..d5cabf3 --- /dev/null +++ b/solana/automata-dcap-client/Cargo.toml @@ -0,0 +1,19 @@ +[package] +name = "automata-dcap-client" +version.workspace = true +edition.workspace = true +authors.workspace = true +homepage.workspace = true +license.workspace = true + +[lib] +crate-type = ["lib"] + +[dependencies] +solana-sdk = { workspace = true } +solana-rpc-client = { workspace = true } +anyhow = { workspace = true } +borsh = { workspace = true } +serde_json = { version = "1.0", default-features = false, features = ["alloc"] } +serde = { version = "1.0", default-features = false, features = ["derive"] } +solana-transaction-status-client-types = "2.1.6" diff --git a/solana/automata-dcap-client/README.md b/solana/automata-dcap-client/README.md new file mode 100644 index 0000000..4b2f82f --- /dev/null +++ b/solana/automata-dcap-client/README.md @@ -0,0 +1,98 @@ +# Automata DCAP on Solana Rust Client + +Add the line below in your project's `Cargo.toml`. + +```toml +[dependencies] +automata-dcap-client = { git = "https://github.com/automata-network/automata-dcap-attestation.git" } +# other dependencies... +``` + +## Example + +```rust +use solana_rpc_client::rpc_client::RpcClient; +use solana_sdk::{ + signer::{keypair::Keypair, Signer}, + transaction::Transaction, + compute_budget::ComputeBudgetInstruction, +}; + +use automata_dcap_client::{ + get_index_from_create_output_account, + create::*, + verify::{self, ZkvmSelector}, + delete::* +}; + +fn main() -> Result<()> { + // instantiate the client + let rpc_url = String::from("https://api.devnet.solana.com"); + let client = RpcClient::new(rpc_url); + + // generate the payer wallet + let payer = Keypair::generate(); + let payer_pubkey = payer.pubkey(); + + // ... implementations that get you `output_bytes` and `proof_bytes` + let output_bytes: &[u8] = todo!; + let proof_bytes: &[u8] = todo!; + + // Tx 1: create the output PDA to upload the output + let create_instruction = create::create_output_account_instruction( + &client, + &payer_pubkey, + output_bytes + )?; + let mut tx_1 = Transaction::new_with_payer(&[create_instruction], Some(&payer_pubkey)); + tx_1.sign(&[&payer], client.get_latest_blockhash()?); + let sig_tx_1 = client.send_and_confirm_transaction(&tx_1)?; + + // Before submitting the proof to verify, we need to fetch the id + // associated with the output by reading the logs from tx_1. + let output_id = get_index_from_create_output_account(&client, &sig_tx_1)?; + + // Note: Proof verification is likely to consume compute units higher than the default 200_000 CU limit + // Therefore, we should include the `SetComputeUnitLimit` instruction to request for higher budget. (This will not increase the transaction fee, unless you include a priority fee or additional signers to the transaction) + + // Tx 2: verify the proof + + let verify_instruction = verify::verify_proof_instruction( + output_id, + ZkvmSelector::RiscZero, // assuming you get proofs from RiscZero + &proof_bytes, + )?; + + let estimated_compute_units: u32 = 320_000; // may vary + let set_compute_unit_limit_instruction = + ComputeBudgetInstruction::set_compute_unit_limit(estimated_compute_units); + + let mut tx_2 = Transaction::new_with_payer( + &[set_compute_unit_limit_instruction, verify_instruction], + Some(&payer_pubkey), + ); + tx_2.sign(&[&payer], client.get_latest_blockhash()?); + let sig_tx_2 = client.send_and_confirm_transaction(&tx_2)?; + + // once the proof has been successfully verified + // the payer has the option to close the output account to re-claim SOL paid for rent + // which effectively "deletes" the output data from the chain + + // Tx 3: close the output account + let delete_instruction = delete::delete_output_account_instruction( + &payer_pubkey, + output_id + ); + + let mut tx_3 = Transaction::new_with_payer( + &[delete_instruction], + Some(&payer_pubkey), + ); + tx_3.sign(&[&payer], client.get_latest_blockhash()?); + let sig_tx_3 = client.send_and_confirm_transaction(&tx_3)?; + + Ok(()) +} +``` + +More examples can be found at our [`Automata DCAP zkVM Demo`](https://github.com/automata-network/automata-dcap-zkvm-cli/blob/solana/dcap-sp1-cli/src/solana/mod.rs). \ No newline at end of file diff --git a/solana/automata-dcap-client/src/bin/counter.rs b/solana/automata-dcap-client/src/bin/counter.rs new file mode 100644 index 0000000..2a9b756 --- /dev/null +++ b/solana/automata-dcap-client/src/bin/counter.rs @@ -0,0 +1,75 @@ +use anyhow::Result; +use solana_rpc_client::rpc_client::RpcClient; +use solana_sdk::{ + rent::Rent, signer::{keypair::Keypair, Signer}, system_instruction::create_account, sysvar::Sysvar, transaction::Transaction +}; +use std::{env, fs, path::PathBuf}; + +use automata_dcap_client::{DCAP_COUNTER_PUBKEY, DCAP_PROGRAM_ID}; + +fn main() -> Result<()> { + // instantiate RPC client + let rpc_url = + env::var("SOLANA_RPC_URL").unwrap_or_else(|_| "https://api.devnet.solana.com".to_string()); + println!("RPC URL: {}", rpc_url.as_str()); + let client = RpcClient::new(rpc_url); + + // instantiate payer + let payer = load_payer()?; + let payer_pubkey = payer.pubkey(); + println!("Payer address: {}", payer_pubkey.to_string()); + + let space = 8usize; + let rent_exempt_lamports = match Rent::get() { + Ok(rent) => rent.minimum_balance(space), + Err(_) => { + let rent = Rent::default(); + rent.minimum_balance(space) + } + }; + + // load counter keypair + let counter_keypair = load_counter_keypair()?; + + let create_account_instruction = create_account( + &payer_pubkey, + &DCAP_COUNTER_PUBKEY, + rent_exempt_lamports, + space as u64, + &DCAP_PROGRAM_ID, + ); + + let mut tx = Transaction::new_with_payer(&[create_account_instruction], Some(&payer_pubkey)); + tx.sign(&[&payer, &counter_keypair], client.get_latest_blockhash()?); + let sig = client.send_and_confirm_transaction(&tx)?; + println!("Counter account created, tx sig: {}", sig.to_string()); + + Ok(()) +} + +fn load_payer() -> Result { + // Warning: home_dir() is not correct for Windows OS + let mut keypair_dir = env::home_dir().unwrap(); + + keypair_dir.push(".config"); + keypair_dir.push("solana"); + keypair_dir.push("id.json"); + + let keypair_read = fs::read_to_string(keypair_dir)?; + let keypair_vec: Vec = serde_json::from_str(keypair_read.as_str())?; + + Ok(Keypair::from_bytes(&keypair_vec)?) +} + +fn load_counter_keypair() -> Result { + let keypair_dir = PathBuf::from(format!( + "{}/../automata-dcap-program/keypair/{}.json", + env::var("CARGO_MANIFEST_DIR").expect("Invalid cargo manifest env value"), + DCAP_COUNTER_PUBKEY.to_string() + )); + + let keypair_read = fs::read_to_string(keypair_dir)?; + let keypair_vec: Vec = serde_json::from_str(keypair_read.as_str())?; + + Ok(Keypair::from_bytes(&keypair_vec)?) +} diff --git a/solana/automata-dcap-client/src/create.rs b/solana/automata-dcap-client/src/create.rs new file mode 100644 index 0000000..d72694b --- /dev/null +++ b/solana/automata-dcap-client/src/create.rs @@ -0,0 +1,35 @@ +use anyhow::Result; +use borsh::BorshSerialize; +use solana_rpc_client::rpc_client::RpcClient; +use solana_sdk::{ + instruction::{AccountMeta, Instruction}, + pubkey::Pubkey, + system_program, sysvar +}; + +use crate::{derive_output_account, get_current_count, DCAP_COUNTER_PUBKEY, DCAP_PROGRAM_ID}; + +pub fn create_output_account_instruction( + rpc_client: &RpcClient, + from: &Pubkey, + verified_output: &[u8], +) -> Result { + let current_count = get_current_count(rpc_client)?; + let (pda_derived, _) = derive_output_account(current_count); + + let mut instruction_data: Vec = vec![]; + (from, verified_output).serialize(&mut instruction_data)?; + instruction_data = [vec![0], instruction_data].concat(); + + Ok(Instruction::new_with_bytes( + DCAP_PROGRAM_ID, + &instruction_data, + vec![ + AccountMeta::new(from.clone(), true), + AccountMeta::new(DCAP_COUNTER_PUBKEY, false), + AccountMeta::new(pda_derived, false), + AccountMeta::new_readonly(system_program::ID, false), + AccountMeta::new_readonly(sysvar::rent::ID, false), + ], + )) +} diff --git a/solana/automata-dcap-client/src/delete.rs b/solana/automata-dcap-client/src/delete.rs new file mode 100644 index 0000000..659c8be --- /dev/null +++ b/solana/automata-dcap-client/src/delete.rs @@ -0,0 +1,23 @@ +use solana_sdk::{ + instruction::{AccountMeta, Instruction}, + pubkey::Pubkey, + system_program +}; + +use crate::{derive_output_account, DCAP_PROGRAM_ID}; + +pub fn delete_output_account_instruction(from: &Pubkey, index: u64) -> Instruction { + let index_serialized = u64::to_le_bytes(index); + let instruction_data: Vec = [vec![2], index_serialized.to_vec()].concat(); + let (output_pubkey, _) = derive_output_account(index); + + Instruction::new_with_bytes( + DCAP_PROGRAM_ID, + &instruction_data, + vec![ + AccountMeta::new(from.clone(), true), + AccountMeta::new(output_pubkey, false), + AccountMeta::new_readonly(system_program::ID, false), + ], + ) +} \ No newline at end of file diff --git a/solana/automata-dcap-client/src/lib.rs b/solana/automata-dcap-client/src/lib.rs new file mode 100644 index 0000000..5d52b94 --- /dev/null +++ b/solana/automata-dcap-client/src/lib.rs @@ -0,0 +1,57 @@ +pub mod create; +pub mod delete; +pub mod verify; + +use anyhow::{Error, Result}; +use solana_rpc_client::rpc_client::RpcClient; +use solana_sdk::{pubkey, pubkey::Pubkey, signature::Signature}; +use solana_transaction_status_client_types::UiTransactionEncoding; + +pub const DCAP_COUNTER_PUBKEY: Pubkey = pubkey!("DcapH8Bt1y6MQHE1hR2Rp1WEBeWfog2Kh9UxtG8UMaNu"); +pub const DCAP_PROGRAM_ID: Pubkey = pubkey!("DcapE9GZZ2KSu6udeW1pVdmqBAHP9NMBLBrxUUYdw1Qk"); + +// gets the current u64 index from the counter. +pub fn get_current_count(rpc_client: &RpcClient) -> Result { + let counter_account_data = rpc_client.get_account_data(&DCAP_COUNTER_PUBKEY)?; + if counter_account_data.len() != 8 { + return Err(Error::msg("Invalid u64 count data")); + } + let current_count = u64::from_le_bytes(counter_account_data[..8].try_into()?); + Ok(current_count) +} + +// computes the PDA account address and canonical bump seed with the given index number +pub fn derive_output_account(index: u64) -> (Pubkey, u8) { + let seeds: &[&[u8]] = &[b"automata-dcap", &u64::to_le_bytes(index)]; + + Pubkey::find_program_address(seeds, &DCAP_PROGRAM_ID) +} + +// parse the account creation transaction to get the index from logs +pub fn get_index_from_create_output_account( + client: &RpcClient, + tx_signature: &Signature, +) -> Result { + let tx = client.get_transaction(tx_signature, UiTransactionEncoding::Json)?; + + let logs = tx + .transaction + .meta + .unwrap() + .log_messages + .expect("Missing logs"); + + // TEMP: This is assuming that `CreateOutputAccount` is the ONLY instruction in the transaction + // We might need to add a magic string that we could use to easily locate and identify the Counter ID logs + // But then again, Solana runtime doesn't specify the program ID that is emitting the logs... + // So if there are other instructions calling a different program that emits log with our magic string + // Then there is no way we can tell where is it coming from... :( + let index_log = &logs[3]; + let parts: Vec<&str> = index_log.split("ID: ").collect(); + if parts.len() != 2 { + return Err(Error::msg("Invalid log format")); + } + let id_str = parts[1]; + + Ok(id_str.parse()?) +} diff --git a/solana/automata-dcap-client/src/verify.rs b/solana/automata-dcap-client/src/verify.rs new file mode 100644 index 0000000..866ae38 --- /dev/null +++ b/solana/automata-dcap-client/src/verify.rs @@ -0,0 +1,53 @@ +use anyhow::{Error, Result}; +use borsh::BorshSerialize; +use solana_sdk::{ + instruction::{AccountMeta, Instruction}, + pubkey, + pubkey::Pubkey, + system_program +}; + +use crate::{derive_output_account, DCAP_PROGRAM_ID}; + +pub const RISC0_GROTH16_VERIFIER_ADDR: Pubkey = + pubkey!("5HrF6mJAaSFdAym2xZixowzVifPyyzTuTs3viYKdjy4s"); +pub const SP1_DCAP_GROTH16_VERIFIER_ADDR: Pubkey = + pubkey!("2LUaFQTJ7F96A5x1z5sXfbDPM2asGnrQ2hsE6zVDMhXZ"); + +#[derive(Debug, Clone, Copy, BorshSerialize)] +#[repr(u8)] +pub enum ZkvmSelector { + None, + RiscZero, + SP1, +} + +pub fn verify_proof_instruction( + index: u64, + zkvm: ZkvmSelector, + proof_bytes: &[u8], +) -> Result { + let (pda_derived, _) = derive_output_account(index); + + let mut instruction_data: Vec = vec![]; + (zkvm, proof_bytes).serialize(&mut instruction_data)?; + instruction_data = [vec![1], instruction_data].concat(); + + let verifier_pubkey = match zkvm { + ZkvmSelector::RiscZero => RISC0_GROTH16_VERIFIER_ADDR, + ZkvmSelector::SP1 => SP1_DCAP_GROTH16_VERIFIER_ADDR, + _ => { + return Err(Error::msg("Unknown ZkVM selected")); + } + }; + + Ok(Instruction::new_with_bytes( + DCAP_PROGRAM_ID, + &instruction_data, + vec![ + AccountMeta::new(pda_derived, false), + AccountMeta::new_readonly(verifier_pubkey, false), + AccountMeta::new_readonly(system_program::ID, false), + ], + )) +} diff --git a/solana/programs/automata-dcap-program/Cargo.toml b/solana/programs/automata-dcap-program/Cargo.toml new file mode 100644 index 0000000..af4282a --- /dev/null +++ b/solana/programs/automata-dcap-program/Cargo.toml @@ -0,0 +1,25 @@ +[package] +name = "automata-dcap-program" +version.workspace = true +edition.workspace = true +authors.workspace = true +homepage.workspace = true +license.workspace = true + +[lib] +name = "automata_dcap_program" +crate-type = ["cdylib", "lib"] + +[dependencies] +solana-program = { workspace = true } +anyhow = { workspace = true } +borsh = { workspace = true } +sha2 = { workspace = true } + +[features] +no-entrypoint = [] + +[dev-dependencies] +solana-program-test = { version = "=2.1.6" } +solana-sdk = { workspace = true } +hex = { workspace = true } \ No newline at end of file diff --git a/solana/programs/automata-dcap-program/README.md b/solana/programs/automata-dcap-program/README.md new file mode 100644 index 0000000..70fd445 --- /dev/null +++ b/solana/programs/automata-dcap-program/README.md @@ -0,0 +1,53 @@ +# Automata DCAP Solana Program Guide + +To interact with the program, you must install the following on your machine: + +- [Rust](https://www.rust-lang.org/tools/install) + +- [Solana CLI](https://solana.com/docs/intro/installation) 👉 `v2.1.6` or above + +**Note**: You do not need to install Anchor for this program. + +If this is your first time using Solana on your machine, we recommend checking out the [Solana CLI Basics](https://solana.com/docs/intro/installation#solana-cli-basics) guide. + +--- + +## Build, Test and Deploy the Program + +Build the program with: + +```bash +cargo build-sbf +``` + +Run all tests with: + +```bash +cargo test-sbf +``` + +Cargo runs all tests in parallel, and it can get messy with your terminal filling up with logs that can be hard to track. + +We recommend running each test individually. + +```bash +cargo test-sbf +``` + +To deploy the program yourself, you must first generate the keypairs for both the program and counter accounts. This requires changes to be made on the constant values at `automata-dcap-program/src/lib.rs` and `automata-dcap-client/src/lib.rs`. + +Run the command below to deploy the program: + +```bash +solana program deploy --program-id --url [`devnet` || `mainnet-beta` || `localhost`] +``` + +After deployment of the program, you would need to create the `Counter` account. + +```bash +SOLANA_RPC_URL= cargo run --bin counter +``` + +--- + +To learn more about integrating the client into your Rust code, click [here](../../automata-dcap-client/README.md) to read the guide. \ No newline at end of file diff --git a/solana/programs/automata-dcap-program/src/entrypoint.rs b/solana/programs/automata-dcap-program/src/entrypoint.rs new file mode 100644 index 0000000..6cd7cff --- /dev/null +++ b/solana/programs/automata-dcap-program/src/entrypoint.rs @@ -0,0 +1,16 @@ +use crate::{instruction::ProgramInstruction, processor::process}; +use solana_program::{ + account_info::AccountInfo, entrypoint, entrypoint::ProgramResult, pubkey::Pubkey, +}; + +#[cfg(not(feature = "no-entrypoint"))] +entrypoint!(process_instruction); + +pub fn process_instruction( + program_id: &Pubkey, + accounts: &[AccountInfo], + instruction_data: &[u8], +) -> ProgramResult { + let instruction = ProgramInstruction::unpack(instruction_data).unwrap(); + process(program_id, accounts, instruction) +} diff --git a/solana/programs/automata-dcap-program/src/error.rs b/solana/programs/automata-dcap-program/src/error.rs new file mode 100644 index 0000000..fcbcfd6 --- /dev/null +++ b/solana/programs/automata-dcap-program/src/error.rs @@ -0,0 +1,23 @@ +use solana_program::program_error::ProgramError; + +#[derive(Debug)] +pub enum DcapProgramError { + /// The required signer is not provided in the instruction + MissingRequiredSigner, + /// The program is not the owner of the provided account + InvalidAccountOwner, + /// The provided account does not contain expected data + InvalidAccountData, + /// The provided zkvm selector does not match with a known zkVM + UnknownZkVm, + /// The proof fails to verify + ProofVerificationFailure, + /// The provided account does not match with a known account address + AccountMismatch +} + +impl From for ProgramError { + fn from(error: DcapProgramError) -> Self { + ProgramError::Custom(error as u32) + } +} \ No newline at end of file diff --git a/solana/programs/automata-dcap-program/src/instruction.rs b/solana/programs/automata-dcap-program/src/instruction.rs new file mode 100644 index 0000000..5cc3cba --- /dev/null +++ b/solana/programs/automata-dcap-program/src/instruction.rs @@ -0,0 +1,51 @@ +use anyhow::Result; +use borsh::BorshDeserialize; +use solana_program::{program_error::ProgramError, pubkey::Pubkey}; + +#[derive(Debug)] +pub enum ProgramInstruction { + CreateDcapOutputAccount { + close_authority: Pubkey, + verified_output: Vec, + }, + VerifyDcapProof { + zkvm_selector: u8, + proof_bytes: Vec, + }, + DeleteDcapOutputAccount([u8; 8]) +} + +impl ProgramInstruction { + pub fn unpack(instruction_data: &[u8]) -> Result { + let (&tag, mut data) = instruction_data + .split_first() + .ok_or(ProgramError::InvalidInstructionData)?; + + let instruction = match tag { + 0 => { + let (close_authority, verified_output) = + <(Pubkey, Vec)>::deserialize(&mut data)?; + Self::CreateDcapOutputAccount { + close_authority, + verified_output, + } + } + 1 => { + let (zkvm_selector, proof_bytes) = <(u8, Vec)>::deserialize(&mut data)?; + Self::VerifyDcapProof { + zkvm_selector, + proof_bytes, + } + } + 2 => { + let output_id = data[..8].try_into()?; + Self::DeleteDcapOutputAccount(output_id) + }, + _ => { + return Err(ProgramError::InvalidInstructionData.into()); + } + }; + + Ok(instruction) + } +} diff --git a/solana/programs/automata-dcap-program/src/lib.rs b/solana/programs/automata-dcap-program/src/lib.rs new file mode 100644 index 0000000..4487784 --- /dev/null +++ b/solana/programs/automata-dcap-program/src/lib.rs @@ -0,0 +1,12 @@ +pub mod entrypoint; +pub mod instruction; +pub mod state; +pub mod processor; +pub mod error; + +pub const DCAP_COUNTER_ADDR: &str = "DcapH8Bt1y6MQHE1hR2Rp1WEBeWfog2Kh9UxtG8UMaNu"; +pub const RISC0_GROTH16_VERIFIER_ADDR: &str = "5HrF6mJAaSFdAym2xZixowzVifPyyzTuTs3viYKdjy4s"; +pub const SP1_DCAP_GROTH16_VERIFIER_ADDR: &str = "2LUaFQTJ7F96A5x1z5sXfbDPM2asGnrQ2hsE6zVDMhXZ"; + +#[cfg(test)] +mod tests; \ No newline at end of file diff --git a/solana/programs/automata-dcap-program/src/processor/mod.rs b/solana/programs/automata-dcap-program/src/processor/mod.rs new file mode 100644 index 0000000..9c7b933 --- /dev/null +++ b/solana/programs/automata-dcap-program/src/processor/mod.rs @@ -0,0 +1,309 @@ +mod risc0; +use risc0::{DCAP_IMAGE_ID, RISCZERO_GROTH16_VERIFY_INSTRUCTION_DISCRIMINATOR}; + +mod sp1; +use sp1::SP1Groth16Proof; + +use crate::{ + error::DcapProgramError, instruction::ProgramInstruction, state::*, DCAP_COUNTER_ADDR, + RISC0_GROTH16_VERIFIER_ADDR, SP1_DCAP_GROTH16_VERIFIER_ADDR +}; +use borsh::{BorshDeserialize, BorshSerialize}; +use sha2::{Digest, Sha256}; +use solana_program::{ + account_info::{next_account_info, AccountInfo}, + entrypoint::ProgramResult, + instruction::{AccountMeta, Instruction}, + msg, + program::{invoke, invoke_signed}, + program_error::ProgramError, + program_memory::sol_memcmp, + pubkey::{Pubkey, PUBKEY_BYTES}, + system_instruction::create_account, + system_program, + sysvar::{rent, Sysvar} +}; + +pub fn process( + program_id: &Pubkey, + accounts: &[AccountInfo], + instruction: ProgramInstruction, +) -> ProgramResult { + match instruction { + ProgramInstruction::CreateDcapOutputAccount { + close_authority, + verified_output, + } => { + process_create_output_account(program_id, accounts, &close_authority, &verified_output) + } + ProgramInstruction::VerifyDcapProof { + zkvm_selector, + proof_bytes, + } => process_verify_dcap_proof(program_id, accounts, zkvm_selector, &proof_bytes), + ProgramInstruction::DeleteDcapOutputAccount(output_id) => { + process_delete_output_account(program_id, accounts, &output_id) + } + } +} + +fn process_create_output_account( + program_id: &Pubkey, + accounts: &[AccountInfo], + close_authority: &Pubkey, + verified_output: &[u8], +) -> ProgramResult { + let account_info_iter = &mut accounts.iter(); + + // check for required signers + let payer_account_info = next_account_info(account_info_iter)?; + let payer = payer_account_info + .signer_key() + .ok_or(ProgramError::from(DcapProgramError::MissingRequiredSigner))?; + + // load current count + let counter_account_info = next_account_info(account_info_iter)?; + if counter_account_info.unsigned_key() != &Pubkey::from_str_const(DCAP_COUNTER_ADDR) { + return Err(ProgramError::from(DcapProgramError::AccountMismatch)); + } + check_account_owner(program_id, counter_account_info)?; + let counter_account_info_data = &mut counter_account_info.data.borrow_mut()[..]; + let mut counter_account_info_state = + match CounterAccountData::try_from_slice(counter_account_info_data) { + Ok(ret) => ret, + Err(_) => { + return Err(ProgramError::from(DcapProgramError::InvalidAccountData)); + } + }; + + // check PDA derivation + let output_pda_account_info = next_account_info(account_info_iter)?; + let seeds: &[&[u8]] = &[b"automata-dcap", &counter_account_info_data]; + let (derived_pda, bump_seed) = Pubkey::find_program_address(seeds, program_id); + if output_pda_account_info.unsigned_key() != &derived_pda { + return Err(ProgramError::from(DcapProgramError::AccountMismatch)); + } + + // PDA data + let output_account_state = OutputAccountData { + close_authority: *close_authority, + output: verified_output.to_vec(), + verified: false, + }; + let mut output_account_serialized_data: Vec = vec![]; + output_account_state.serialize(&mut output_account_serialized_data)?; + + // check on-chain native programs and calculate rent + let system_program_account_info = next_account_info(account_info_iter)?; + let system_program_id = system_program_account_info.unsigned_key(); + if !system_program::check_id(system_program_id) { + return Err(ProgramError::IncorrectProgramId); + } + let rent_program_id = next_account_info(account_info_iter)?.unsigned_key(); + if !rent::check_id(rent_program_id) { + return Err(ProgramError::IncorrectProgramId); + } + let rent = rent::Rent::get()?; + let space = output_account_serialized_data.len(); + let rent_exempt_lamports = rent.minimum_balance(space); + + // Create the PDA + let create_pda_instruction = create_account( + payer, + &derived_pda, + rent_exempt_lamports, + space as u64, + program_id, + ); + invoke_signed( + &create_pda_instruction, + &[ + payer_account_info.clone(), + output_pda_account_info.clone(), + system_program_account_info.clone(), + ], + &[&[b"automata-dcap", &counter_account_info_data, &[bump_seed]]], + )?; + + // write the data to the PDA + let output_account_info_data = &mut output_pda_account_info.data.borrow_mut()[..]; + output_account_info_data.copy_from_slice(&output_account_serialized_data); + + // Log the current index number for the PDA + msg!("ID: {}", counter_account_info_state.current_count()); + + // increment and write to counter + counter_account_info_state.increment(); + borsh::to_writer(counter_account_info_data, &counter_account_info_state)?; + + Ok(()) +} + +fn process_verify_dcap_proof( + program_id: &Pubkey, + accounts: &[AccountInfo], + zkvm_selector: u8, + proof_bytes: &[u8], +) -> ProgramResult { + let account_info_iter = &mut accounts.iter(); + let output_account_info = next_account_info(account_info_iter)?; + + // check the pda account owner + check_account_owner(program_id, output_account_info)?; + + // check the account data + if output_account_info.data_is_empty() { + return Err(ProgramError::UninitializedAccount); + } + + let output_account_info_data = &mut output_account_info.data.borrow_mut()[..]; + let mut output_account_info_state = + match OutputAccountData::try_from_slice(output_account_info_data) { + Ok(ret) => ret, + Err(_) => { + return Err(ProgramError::from(DcapProgramError::InvalidAccountData)); + } + }; + + if !output_account_info_state.verified { + // pre-process the data before invoking the Verifier program + let output_data = output_account_info_state.output.as_slice(); + let output_data_digest = Sha256::digest(output_data).to_vec(); + let verifier_pubkey; + let verifier_instruction_data = match zkvm_selector { + 1 => { + // RiscZero + verifier_pubkey = Pubkey::from_str_const(RISC0_GROTH16_VERIFIER_ADDR); + [ + RISCZERO_GROTH16_VERIFY_INSTRUCTION_DISCRIMINATOR.to_vec(), + proof_bytes.to_vec(), + DCAP_IMAGE_ID.to_vec(), + output_data_digest, + ] + .concat() + } + 2 => { + // SP1 + verifier_pubkey = Pubkey::from_str_const(SP1_DCAP_GROTH16_VERIFIER_ADDR); + let sp1_groth16_proof = SP1Groth16Proof { + proof: proof_bytes.to_vec(), + sp1_public_inputs_hash: output_data_digest, + }; + let mut ret: Vec = vec![]; + sp1_groth16_proof.serialize(&mut ret)?; + ret + } + _ => { + return Err(ProgramError::from(DcapProgramError::UnknownZkVm)); + } + }; + + // invoke the verifier program to verify proofs + let verifier_program_account = next_account_info(account_info_iter)?; + if verifier_program_account.unsigned_key() != &verifier_pubkey { + return Err(ProgramError::from(DcapProgramError::AccountMismatch)); + } + + // check system program address (required by RiscZero Verifier because of Anchor) + let system_program_account_info = next_account_info(account_info_iter)?; + let system_program_id = system_program_account_info.unsigned_key(); + if !system_program::check_id(system_program_id) { + return Err(ProgramError::IncorrectProgramId); + } + + let verify_instruction = Instruction::new_with_bytes( + verifier_pubkey, + verifier_instruction_data.as_slice(), + vec![AccountMeta::new_readonly(system_program_id.clone(), false)], + ); + if invoke(&verify_instruction, &[system_program_account_info.clone()]).is_err() { + return Err(ProgramError::from( + DcapProgramError::ProofVerificationFailure, + )); + } + + // update the OutputAccount state + output_account_info_state.verified = true; + borsh::to_writer(output_account_info_data, &output_account_info_state)?; + } + + Ok(()) +} + +fn process_delete_output_account( + program_id: &Pubkey, + accounts: &[AccountInfo], + output_id: &[u8], +) -> ProgramResult { + let account_info_iter = &mut accounts.iter(); + + // check for required signers + let signer_account_info = next_account_info(account_info_iter)?; + let signer_pubkey = signer_account_info + .signer_key() + .ok_or(ProgramError::from(DcapProgramError::MissingRequiredSigner))?; + + let output_pda_account_info = next_account_info(account_info_iter)?; + + // check the pda account owner + check_account_owner(program_id, output_pda_account_info)?; + + // check PDA derivation + // we don't need to check whether data is empty or not + // because you cannot have a valid PDA owner with empty data + let seeds: &[&[u8]] = &[b"automata-dcap", output_id]; + let (derived_pda, _) = Pubkey::find_program_address(seeds, program_id); + if output_pda_account_info.unsigned_key() != &derived_pda { + return Err(ProgramError::from(DcapProgramError::AccountMismatch)); + } + + { + // scoped to drop references to output_account_info after checking authority... + + let output_account_info_data = &output_pda_account_info.data.borrow()[..]; + let output_account_info_state = + match OutputAccountData::try_from_slice(output_account_info_data) { + Ok(ret) => ret, + Err(_) => { + return Err(ProgramError::from(DcapProgramError::InvalidAccountData)); + } + }; + + // check signer matches with authority pubkey + if signer_pubkey != &output_account_info_state.close_authority { + return Err(ProgramError::IncorrectAuthority); + } + } + + // check system program address + let system_program_account_info = next_account_info(account_info_iter)?; + let system_program_id = system_program_account_info.unsigned_key(); + if !system_program::check_id(system_program_id) { + return Err(ProgramError::IncorrectProgramId); + } + + // close the account + // https://solana.com/developers/cookbook/accounts/close-account + let pda_lamports = output_pda_account_info.lamports(); + let signer_lamports = signer_account_info.lamports(); + **signer_account_info.lamports.borrow_mut() = + signer_lamports.checked_add(pda_lamports).unwrap(); + **output_pda_account_info.lamports.borrow_mut() = 0; + + output_pda_account_info.assign(system_program_id); + output_pda_account_info.realloc(0, false)?; + + Ok(()) +} + +fn check_account_owner(program_id: &Pubkey, account_info: &AccountInfo) -> ProgramResult { + let equal = sol_memcmp( + program_id.as_ref(), + account_info.owner.as_ref(), + PUBKEY_BYTES, + ) == 0; + if !equal { + Err(ProgramError::from(DcapProgramError::InvalidAccountOwner)) + } else { + Ok(()) + } +} diff --git a/solana/programs/automata-dcap-program/src/processor/risc0.rs b/solana/programs/automata-dcap-program/src/processor/risc0.rs new file mode 100644 index 0000000..5eceb35 --- /dev/null +++ b/solana/programs/automata-dcap-program/src/processor/risc0.rs @@ -0,0 +1,7 @@ +pub const DCAP_IMAGE_ID: [u8; 32] = [ + 194, 234, 254, 27, 160, 22, 16, 243, 183, 18, 129, 249, 221, 50, 128, 179, 61, 151, 55, 11, + 182, 141, 58, 218, 41, 37, 211, 145, 190, 36, 94, 16, +]; + +pub const RISCZERO_GROTH16_VERIFY_INSTRUCTION_DISCRIMINATOR: [u8; 8] = + [133, 161, 141, 48, 120, 198, 88, 150]; \ No newline at end of file diff --git a/solana/programs/automata-dcap-program/src/processor/sp1.rs b/solana/programs/automata-dcap-program/src/processor/sp1.rs new file mode 100644 index 0000000..e4262b0 --- /dev/null +++ b/solana/programs/automata-dcap-program/src/processor/sp1.rs @@ -0,0 +1,8 @@ +use borsh::{BorshDeserialize, BorshSerialize}; + +#[derive(BorshDeserialize, BorshSerialize)] +pub struct SP1Groth16Proof { + pub proof: Vec, + /// SHA256 of the public inputs + pub sp1_public_inputs_hash: Vec, +} \ No newline at end of file diff --git a/solana/programs/automata-dcap-program/src/state.rs b/solana/programs/automata-dcap-program/src/state.rs new file mode 100644 index 0000000..5bac57a --- /dev/null +++ b/solana/programs/automata-dcap-program/src/state.rs @@ -0,0 +1,28 @@ +use borsh::{BorshSerialize, BorshDeserialize}; +use solana_program::pubkey::Pubkey; + +#[derive(Debug, BorshSerialize, BorshDeserialize)] +pub struct CounterAccountData { + count: u64 +} + +impl CounterAccountData { + pub fn new() -> Self { + CounterAccountData {count: 0} + } + + pub fn increment(&mut self) { + self.count += 1; + } + + pub fn current_count(&self) -> u64 { + self.count + } +} + +#[derive(Debug, BorshSerialize, BorshDeserialize)] +pub struct OutputAccountData { + pub close_authority: Pubkey, + pub verified: bool, + pub output: Vec +} \ No newline at end of file diff --git a/solana/programs/automata-dcap-program/src/tests/counter.rs b/solana/programs/automata-dcap-program/src/tests/counter.rs new file mode 100644 index 0000000..e72174f --- /dev/null +++ b/solana/programs/automata-dcap-program/src/tests/counter.rs @@ -0,0 +1,32 @@ +use super::setup_test; +use borsh::BorshDeserialize; +use solana_program_test::tokio; +use solana_sdk::account::ReadableAccount; + +use crate::state::CounterAccountData; + +#[tokio::test] +async fn test_counter_account_creation() { + let test_env = setup_test().await; + let counter_account = test_env + .banks_client + .get_account(test_env.counter_account) + .await + .unwrap() + .unwrap(); + let counter_account_data = counter_account.data.clone(); + + // check account owner + assert_eq!(counter_account.owner, test_env.program_id); + + // check account data size + assert_eq!(counter_account_data.len(), 8usize); + + // check account should not be executable + assert!(!counter_account.executable()); + + // check account data + let counter_account_state = + CounterAccountData::deserialize(&mut counter_account_data.as_slice()).unwrap(); + assert_eq!(counter_account_state.current_count(), 0u64); +} diff --git a/solana/programs/automata-dcap-program/src/tests/delete.rs b/solana/programs/automata-dcap-program/src/tests/delete.rs new file mode 100644 index 0000000..a05ddde --- /dev/null +++ b/solana/programs/automata-dcap-program/src/tests/delete.rs @@ -0,0 +1,96 @@ +use super::{setup_test, store_verified_output, TestEnv}; +use anyhow::Result; +use solana_program_test::tokio; +use solana_sdk::{ + instruction::{AccountMeta, Instruction}, + pubkey::Pubkey, + signer::Signer, + system_program, + transaction::Transaction, +}; + +#[tokio::test] +async fn test_delete_output_account() { + let test_env = setup_test().await; + + // these outputs can be obtained from the autaomta-dcap-zkvm-cli repo. + // see: https://github.com/automata-network/automata-dcap-zkvm-cli/ + + let verified_output_bytes = hex::decode("02550004000000810790c06f000000040102000000000000000000000000009790d89a10210ec6968a773cee2ca05b5aa97309f36727a968527be4606fc19e6f73acce350946c9d46a9bf7a63f843000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000080e702060000000000f2dd2696f69b950645832bdc095ffd11247eeff687eeacdb57a58d2ddb9a9f94fea40c961e19460c00ffa31420ecbc180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000998204508d58dcbfebe5e11c48669f7a921ac2da744dfb7d014ecdff2acdff1c9f665fdad52aadacf296a1df9909eb2383d100224f1716aeb431f7cb3cf028197dbd872487f27b0f6329ab17647dc9953c7014109818634f879e6550bc60f93eecfc42ff4d49278bfdbb0c77e570f4490cff10a2ee1ac11fbd2c2b49fa6cfa3cf1a1cb755c72522dd8a689e9d47906a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000278e753482976c8a7351fe2113609c7350d491cdae3d449eefc202fa41b2ad6840239cc2ba084c2d594b4e6dabeae0fcbf71c96daf0d0c9ecf0e9810c045790000000000678a107443c84ad5632ba264b434183c560d14b33b444e1e70b97a48d2d0cc66a5abae0b0de0b5aae34431815b937f711d928b600cd16c8e239e4d0745c138192e1ab4880fa74a3f32c80b978c8ad671395dabf24283eef9091bc3919fd39b9915a87f1adf3061c165c0191e2658256a2855cac9267f179aafb1990c9e918d6452816adf9953f245d005b9d7d8e36a842a60b51e5cf85b2c2072ae397c178535c9985b77e9c390c66c953d010f6cfea08cf5280cbb312b0648e0c968bbd2eeeb72af0f9f").unwrap(); + + // store verified output + let stored = store_verified_output(&test_env, &verified_output_bytes).await; + assert!(stored.is_ok()); + + // check output account state + let output_pda_pubkey = stored.unwrap(); + let output_pda_account = test_env + .banks_client + .get_account(output_pda_pubkey.clone()) + .await + .unwrap() + .unwrap(); + + let mut payer_account = test_env + .banks_client + .get_account(test_env.payer_keypair.pubkey().clone()) + .await + .unwrap() + .unwrap(); + + let output_pda_rent_exempt_lamports_before = output_pda_account.lamports; + let payer_account_lamports_before = payer_account.lamports; + + assert!(delete_output_account(&test_env, 0, &output_pda_pubkey) + .await + .is_ok()); + + // output_pda_account has been deleted + let output_pda_account_is_none = test_env + .banks_client + .get_account(output_pda_pubkey.clone()) + .await + .unwrap() + .is_none(); + assert!(output_pda_account_is_none); + + payer_account = test_env + .banks_client + .get_account(test_env.payer_keypair.pubkey().clone()) + .await + .unwrap() + .unwrap(); + let payer_account_lamports_after = payer_account.lamports; + let payer_account_lamports_diff = payer_account_lamports_after - payer_account_lamports_before; + assert_eq!( + payer_account_lamports_diff, + output_pda_rent_exempt_lamports_before - 5000 // 5000 lamports paid for txn fee + ); +} + +async fn delete_output_account(env: &TestEnv, index: u64, output_pubkey: &Pubkey) -> Result<()> { + let index_serialized = u64::to_le_bytes(index); + + let payer_pubkey = env.payer_keypair.pubkey().clone(); + let program_id = env.program_id.clone(); + + let instruction_data: Vec = [vec![2], index_serialized.to_vec()].concat(); + + let instruction = Instruction::new_with_bytes( + program_id, + &instruction_data, + vec![ + AccountMeta::new(payer_pubkey, true), + AccountMeta::new(output_pubkey.clone(), false), + AccountMeta::new_readonly(system_program::ID, false), + ], + ); + + let recent_blockhash = &env.banks_client.get_latest_blockhash().await?; + + let mut tx = Transaction::new_with_payer(&[instruction], Some(&payer_pubkey)); + tx.sign(&[&env.payer_keypair], *recent_blockhash); + env.banks_client.process_transaction(tx).await?; + + Ok(()) +} diff --git a/solana/programs/automata-dcap-program/src/tests/fixtures/dcap_sp1_program.so b/solana/programs/automata-dcap-program/src/tests/fixtures/dcap_sp1_program.so new file mode 100755 index 0000000..03d3dcf Binary files /dev/null and b/solana/programs/automata-dcap-program/src/tests/fixtures/dcap_sp1_program.so differ diff --git a/solana/programs/automata-dcap-program/src/tests/fixtures/groth_16_verifier.so b/solana/programs/automata-dcap-program/src/tests/fixtures/groth_16_verifier.so new file mode 100755 index 0000000..a04f158 Binary files /dev/null and b/solana/programs/automata-dcap-program/src/tests/fixtures/groth_16_verifier.so differ diff --git a/solana/programs/automata-dcap-program/src/tests/mod.rs b/solana/programs/automata-dcap-program/src/tests/mod.rs new file mode 100644 index 0000000..ba0445c --- /dev/null +++ b/solana/programs/automata-dcap-program/src/tests/mod.rs @@ -0,0 +1,175 @@ +mod counter; +mod risc0; +mod sp1; +mod delete; + +use solana_program::hash::Hash; +use solana_program_test::{BanksClient, ProgramTest}; +use solana_sdk::{ + account::Account, + instruction::{AccountMeta, Instruction}, + pubkey::Pubkey, + signer::{keypair::Keypair, Signer}, + system_program, sysvar, + transaction::Transaction +}; + +use anyhow::Result; +use borsh::{BorshDeserialize, BorshSerialize}; + +use crate::state::CounterAccountData; +use crate::{DCAP_COUNTER_ADDR, RISC0_GROTH16_VERIFIER_ADDR, SP1_DCAP_GROTH16_VERIFIER_ADDR}; + +struct TestEnv { + pub banks_client: BanksClient, + pub program_id: Pubkey, + pub risc0_verifier_program_id: Pubkey, + pub sp1_dcap_verifier_program_id: Pubkey, + pub counter_account: Pubkey, + pub payer_keypair: Keypair, + pub initial_block_hash: Hash, +} + +async fn setup_test() -> TestEnv { + std::env::set_var("SBF_OUT_DIR", "../../target/deploy"); + let program_id = Pubkey::from_str_const("DcapE9GZZ2KSu6udeW1pVdmqBAHP9NMBLBrxUUYdw1Qk"); + + // instantiate ProgramTest environment and deploy the program + let mut program_test = ProgramTest::new( + "automata_dcap_program", + program_id.clone(), + None, + ); + + // set max compute units to 500_000 CUs + program_test.set_compute_max_units(500_000); + + // add the Counter account to the environment + let space = 8usize; + let one_sol = 1_000_000_000u64; + let counter_account = Account::new(one_sol, space, &program_id); + let counter_account_pubkey = Pubkey::from_str_const(DCAP_COUNTER_ADDR); + program_test.add_account(counter_account_pubkey.clone(), counter_account.clone()); + + // add the zkVM verifier programs to the environment + + // the tests/fixtures/ library contains the .so SBF binary for the + // RiscZero Groth-16-Verifier compiled from + // https://github.com/preston4896/risc0-solana/blob/8aac7e4e5bd358c4eec0e79fdd3ec4fc910dbe26/solana-verifier/programs/groth_16_verifier/src/lib.rs#L37-L65 + // SP1 DCAP Verifier Program compiled from + // https://github.com/automata-network/automata-dcap-zkvm-cli/blob/solana/dcap-sp1-cli/dcap-sp1-solana-program/src/lib.rs + std::env::set_var("SBF_OUT_DIR", "./src/tests/fixtures"); + + let sp1_dcap_verifier_program_id = Pubkey::from_str_const(SP1_DCAP_GROTH16_VERIFIER_ADDR); + program_test.add_program( + "dcap_sp1_program", + sp1_dcap_verifier_program_id.clone(), + None, + ); + + let risc0_verifier_program_id = Pubkey::from_str_const(RISC0_GROTH16_VERIFIER_ADDR); + program_test.add_program( + "groth_16_verifier", + risc0_verifier_program_id.clone(), + None, + ); + + // start the test + let (banks_client, payer_keypair, initial_block_hash) = program_test.start().await; + + TestEnv { + banks_client, + program_id, + risc0_verifier_program_id, + sp1_dcap_verifier_program_id, + counter_account: counter_account_pubkey, + payer_keypair, + initial_block_hash, + } +} + +fn derive_output_account(env: &TestEnv, index: u64) -> Pubkey { + let seeds: &[&[u8]] = &[b"automata-dcap", &u64::to_le_bytes(index)]; + + let (derived_pda, _) = Pubkey::find_program_address(seeds, &env.program_id); + + derived_pda +} + +async fn get_current_count(env: &TestEnv) -> Result { + let counter_account = env + .banks_client + .get_account(env.counter_account) + .await + .unwrap() + .unwrap(); + let counter_account_data = counter_account.data.clone(); + let counter_account_state = + CounterAccountData::deserialize(&mut counter_account_data.as_slice()).unwrap(); + + Ok(counter_account_state.current_count()) +} + +async fn store_verified_output(env: &TestEnv, output_data: &[u8]) -> Result { + let payer_pubkey = env.payer_keypair.pubkey().clone(); + let program_id = env.program_id.clone(); + let pda_derived = derive_output_account(env, 0); + + let mut instruction_data: Vec = vec![]; + (payer_pubkey, output_data).serialize(&mut instruction_data)?; + instruction_data = [vec![0], instruction_data].concat(); + + let instruction = Instruction::new_with_bytes( + program_id, + &instruction_data, + vec![ + AccountMeta::new(payer_pubkey, true), + AccountMeta::new(env.counter_account, false), + AccountMeta::new(pda_derived, false), + AccountMeta::new_readonly(system_program::ID, false), + AccountMeta::new_readonly(sysvar::rent::ID, false) + ], + ); + + let recent_blockhash = &env.banks_client.get_latest_blockhash().await?; + + let mut tx = Transaction::new_with_payer(&[instruction], Some(&payer_pubkey)); + tx.sign(&[&env.payer_keypair], *recent_blockhash); + env.banks_client.process_transaction(tx).await?; + + Ok(pda_derived) +} + +async fn send_proof_to_verify(env: &TestEnv, output_index: u64, zkvm_selector: u8, proof_bytes: &[u8]) -> Result<()> { + let payer_pubkey = env.payer_keypair.pubkey().clone(); + let program_id = env.program_id.clone(); + let pda_derived = derive_output_account(env, output_index); + + let mut instruction_data: Vec = vec![]; + (zkvm_selector, proof_bytes).serialize(&mut instruction_data)?; + instruction_data = [vec![1], instruction_data].concat(); + + let verifier_pubkey = match zkvm_selector { + 1 => env.risc0_verifier_program_id, + 2 => env.sp1_dcap_verifier_program_id, + _ => panic!("unknown zkvm selector") + }; + + let instruction = Instruction::new_with_bytes( + program_id, + &instruction_data, + vec![ + AccountMeta::new(pda_derived, false), + AccountMeta::new_readonly(verifier_pubkey, false), + AccountMeta::new_readonly(system_program::ID, false) + ], + ); + + let recent_blockhash = &env.banks_client.get_latest_blockhash().await?; + + let mut tx = Transaction::new_with_payer(&[instruction], Some(&payer_pubkey)); + tx.sign(&[&env.payer_keypair], *recent_blockhash); + env.banks_client.process_transaction(tx).await?; + + Ok(()) +} diff --git a/solana/programs/automata-dcap-program/src/tests/risc0.rs b/solana/programs/automata-dcap-program/src/tests/risc0.rs new file mode 100644 index 0000000..57c67c6 --- /dev/null +++ b/solana/programs/automata-dcap-program/src/tests/risc0.rs @@ -0,0 +1,63 @@ +use super::{get_current_count, send_proof_to_verify, setup_test, store_verified_output}; +use crate::state::OutputAccountData; +use borsh::BorshDeserialize; +use solana_program_test::tokio; +use solana_sdk::signer::Signer; + +/// Consumed 363k CU +#[tokio::test] +async fn test_risc0_dcap_verifier() { + + let test_env = setup_test().await; + + // these outputs can be obtained from the autaomta-dcap-zkvm-cli repo. + // see: https://github.com/automata-network/automata-dcap-zkvm-cli/ + + let proof_bytes = hex::decode("1850aa52559f1d4a858a48b788b52bdd963888e29465a59ca4dace241ad1aeef2b1796d0acb6ea9f4d77a60a0555f28c85867e62b91ac8d0473ff017c88883da077c6be0d1140a77f0ab695679470472cc32f55ebdcf735e9d52ff4a53d3b685020772e77e8e94578796fd6cc122420a77c1c0ba8dff1c6e07e53e30da46d483147732f37ffb72fda399256a551beb49da688ea7cbdcf268fbc15695c3db42a40569e5093c75654a1390cb1fe9c57c360a8f338f66d61ae1115d4584faecc36f238a9eb4cfecea8d3e4995a354dbe5c4bc12db6a12da41e376931548110fb3c008c01d08cf9e8afb7fe661befbb5afce139c9a1ba1b6c10562645ce60954ab48").unwrap(); + let verified_output_bytes = hex::decode("02550004000000810790c06f000000040102000000000000000000000000009790d89a10210ec6968a773cee2ca05b5aa97309f36727a968527be4606fc19e6f73acce350946c9d46a9bf7a63f843000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000080e702060000000000f2dd2696f69b950645832bdc095ffd11247eeff687eeacdb57a58d2ddb9a9f94fea40c961e19460c00ffa31420ecbc180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000998204508d58dcbfebe5e11c48669f7a921ac2da744dfb7d014ecdff2acdff1c9f665fdad52aadacf296a1df9909eb2383d100224f1716aeb431f7cb3cf028197dbd872487f27b0f6329ab17647dc9953c7014109818634f879e6550bc60f93eecfc42ff4d49278bfdbb0c77e570f4490cff10a2ee1ac11fbd2c2b49fa6cfa3cf1a1cb755c72522dd8a689e9d47906a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000278e753482976c8a7351fe2113609c7350d491cdae3d449eefc202fa41b2ad6840239cc2ba084c2d594b4e6dabeae0fcbf71c96daf0d0c9ecf0e9810c04579000000000067a1c97526bfe4de343d160db8c6e91dfa058e2669f130a165acdf3d29ddbcead7ae195e472509cb7f6530561a16654d93b5c51206af4a6a874d59f8da5d5f93e25496040fa74a3f32c80b978c8ad671395dabf24283eef9091bc3919fd39b9915a87f1adf3061c165c0191e2658256a2855cac9267f179aafb1990c9e918d6452816adf9953f245d005b9d7d8e36a842a60b51e5cf85b2c2072ae397c178535c9985b77ddda10bf8d35a769eecc37227eccfc994fe037229a6eef201cf84a14cbf472b9").unwrap(); + + // store verified output + let stored = store_verified_output(&test_env, &verified_output_bytes).await; + assert!(stored.is_ok()); + + // check counter account state + assert_eq!(get_current_count(&test_env).await.unwrap(), 1u64); + + // check output account state + let output_pda_pubkey = stored.unwrap(); + let mut output_pda_account = test_env + .banks_client + .get_account(output_pda_pubkey.clone()) + .await + .unwrap() + .unwrap(); + let mut output_pda_account_state = + OutputAccountData::deserialize(&mut output_pda_account.data.as_slice()).unwrap(); + + // check account owner + assert_eq!(output_pda_account.owner, test_env.program_id); + + // check account data + assert_eq!(output_pda_account_state.verified, false); + assert_eq!( + output_pda_account_state.close_authority, + test_env.payer_keypair.pubkey() + ); + assert_eq!(output_pda_account_state.output, verified_output_bytes); + + assert!(send_proof_to_verify(&test_env, 0, 1, &proof_bytes) + .await + .is_ok()); + + // check output account state + output_pda_account = test_env + .banks_client + .get_account(output_pda_pubkey.clone()) + .await + .unwrap() + .unwrap(); + output_pda_account_state = + OutputAccountData::deserialize(&mut output_pda_account.data.as_slice()).unwrap(); + + assert_eq!(output_pda_account_state.verified, true); +} diff --git a/solana/programs/automata-dcap-program/src/tests/sp1.rs b/solana/programs/automata-dcap-program/src/tests/sp1.rs new file mode 100644 index 0000000..4db2ef0 --- /dev/null +++ b/solana/programs/automata-dcap-program/src/tests/sp1.rs @@ -0,0 +1,62 @@ +use super::{get_current_count, send_proof_to_verify, setup_test, store_verified_output}; +use crate::state::OutputAccountData; +use borsh::BorshDeserialize; +use solana_program_test::tokio; +use solana_sdk::signer::Signer; + +// Consumed 363k CU +#[tokio::test] +async fn test_sp1_dcap_verifier() { + let test_env = setup_test().await; + + // these outputs can be obtained from the autaomta-dcap-zkvm-cli repo. + // see: https://github.com/automata-network/automata-dcap-zkvm-cli/ + + let verified_output_bytes = hex::decode("02550004000000810790c06f000000040102000000000000000000000000009790d89a10210ec6968a773cee2ca05b5aa97309f36727a968527be4606fc19e6f73acce350946c9d46a9bf7a63f843000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000080e702060000000000f2dd2696f69b950645832bdc095ffd11247eeff687eeacdb57a58d2ddb9a9f94fea40c961e19460c00ffa31420ecbc180000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000998204508d58dcbfebe5e11c48669f7a921ac2da744dfb7d014ecdff2acdff1c9f665fdad52aadacf296a1df9909eb2383d100224f1716aeb431f7cb3cf028197dbd872487f27b0f6329ab17647dc9953c7014109818634f879e6550bc60f93eecfc42ff4d49278bfdbb0c77e570f4490cff10a2ee1ac11fbd2c2b49fa6cfa3cf1a1cb755c72522dd8a689e9d47906a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000278e753482976c8a7351fe2113609c7350d491cdae3d449eefc202fa41b2ad6840239cc2ba084c2d594b4e6dabeae0fcbf71c96daf0d0c9ecf0e9810c04579000000000067a1dbde26bfe4de343d160db8c6e91dfa058e2669f130a165acdf3d29ddbcead7ae195e472509cb7f6530561a16654d93b5c51206af4a6a874d59f8da5d5f93e25496040fa74a3f32c80b978c8ad671395dabf24283eef9091bc3919fd39b9915a87f1adf3061c165c0191e2658256a2855cac9267f179aafb1990c9e918d6452816adf9953f245d005b9d7d8e36a842a60b51e5cf85b2c2072ae397c178535c9985b77ddda10bf8d35a769eecc37227eccfc994fe037229a6eef201cf84a14cbf472b9").unwrap(); + let proof_bytes = hex::decode("11b6a09d247a10eea2c2409da769d64665b59671c68dece9198374308d667c5c7adc161a13c5dded6b7e88cec9d0fef3fd0d5ded4adc10d1e3430fc8d681a86e53387c2b02e20b554bc99bdca457e5cf792a9c5c1a0bfdaed725d22d41915f346b9eb7b621a39ad875adc029dc896ed63e2f5375c191dd69adb3ab5dd76953c04feab424067389d4acdb37e34abf6710e58f41f380409d8fef9b65f448f1648d1521a5f61d8f8af5bdbde06a613a84caa6c746fd22152ca39e2a8096541bdba87eb12ca60ce6e4ba1ece864d47c3e53a9c61b3fd63abb9c2deafa3b369ef59cb16d0c6e30ce33c6404bf695e99150f5fcb072559df13af89e78232c53c5fc0a574bdede7").unwrap(); + + // store verified output + let stored = store_verified_output(&test_env, &verified_output_bytes).await; + assert!(stored.is_ok()); + + // check counter account state + assert_eq!(get_current_count(&test_env).await.unwrap(), 1u64); + + // check output account state + let output_pda_pubkey = stored.unwrap(); + let mut output_pda_account = test_env + .banks_client + .get_account(output_pda_pubkey.clone()) + .await + .unwrap() + .unwrap(); + let mut output_pda_account_state = + OutputAccountData::deserialize(&mut output_pda_account.data.as_slice()).unwrap(); + + // check account owner + assert_eq!(output_pda_account.owner, test_env.program_id); + + // check account data + assert_eq!(output_pda_account_state.verified, false); + assert_eq!( + output_pda_account_state.close_authority, + test_env.payer_keypair.pubkey() + ); + assert_eq!(output_pda_account_state.output, verified_output_bytes); + + assert!(send_proof_to_verify(&test_env, 0, 2, &proof_bytes) + .await + .is_ok()); + + // check output account state + output_pda_account = test_env + .banks_client + .get_account(output_pda_pubkey.clone()) + .await + .unwrap() + .unwrap(); + output_pda_account_state = + OutputAccountData::deserialize(&mut output_pda_account.data.as_slice()).unwrap(); + + assert_eq!(output_pda_account_state.verified, true); +} diff --git a/solana/programs/dcap-sp1-solana-program/Cargo.toml b/solana/programs/dcap-sp1-solana-program/Cargo.toml new file mode 100644 index 0000000..6a9ae0e --- /dev/null +++ b/solana/programs/dcap-sp1-solana-program/Cargo.toml @@ -0,0 +1,20 @@ +[package] +name = "dcap-sp1-solana-program" +version = { workspace = true } +edition = { workspace = true } +authors = { workspace = true } +homepage = { workspace = true } +license = { workspace = true } + +[lib] +crate-type = ["cdylib", "lib"] + +[dependencies] +borsh = { workspace = true } +solana-program = { workspace = true } +sp1-solana = { git = "https://github.com/succinctlabs/sp1-solana" } +hex = { workspace = true } +sha2 = { workspace = true } + +[features] +no-entrypoint = [] \ No newline at end of file diff --git a/solana/programs/dcap-sp1-solana-program/src/lib.rs b/solana/programs/dcap-sp1-solana-program/src/lib.rs new file mode 100644 index 0000000..66ce117 --- /dev/null +++ b/solana/programs/dcap-sp1-solana-program/src/lib.rs @@ -0,0 +1,81 @@ +use borsh::{BorshDeserialize, BorshSerialize}; +use sha2::{Digest, Sha256}; +use solana_program::{ + account_info::AccountInfo, entrypoint::ProgramResult, msg, program_error::ProgramError, + pubkey::Pubkey, +}; +use sp1_solana::verify_proof_raw; + +#[cfg(not(feature = "no-entrypoint"))] +solana_program::entrypoint!(process_instruction); + +#[derive(BorshDeserialize, BorshSerialize)] +pub struct SP1Groth16Proof { + pub proof: Vec, + /// SHA256 of the public inputs + pub sp1_public_inputs_hash: Vec, +} + +pub const DCAP_VKEY_HASH: &str = + "0x004be684aaf90b70fb2d8f586ec96c36cee5f6533850b14e8b5568f4dbf31f8e"; + +pub fn process_instruction( + _program_id: &Pubkey, + _accounts: &[AccountInfo], + instruction_data: &[u8], +) -> ProgramResult { + // Deserialize the SP1Groth16Proof from the instruction data. + let mut groth16_proof = SP1Groth16Proof::try_from_slice(instruction_data) + .map_err(|_| ProgramError::InvalidInstructionData)?; + + // Get the SP1 Groth16 verification key from the `sp1-solana` crate. + let sp1_verifier_vk = sp1_solana::GROTH16_VK_4_0_0_RC3_BYTES; + + // Get the first 4 bytes of the hash + let sp1_verifier_vk_hash_prefix: [u8; 4] = + Sha256::digest(sp1_verifier_vk)[..4].try_into().unwrap(); + + // first, we need to zero out the first 3 bits of the hash + let committed_values_digest = + preprocess_public_inputs_hash(groth16_proof.sp1_public_inputs_hash.as_mut_slice()); + + // next, we need to use the vkey hash and then processed input hash to generate the groth16 public input + let groth16_public_inputs = groth16_public_values(&committed_values_digest); + + // Check the proof selector to match with SP1 V4 Groth16 VK Hash + if sp1_verifier_vk_hash_prefix != groth16_proof.proof[..4] { + return Err(ProgramError::InvalidInstructionData); + } + + // Verify the proof. + verify_proof_raw( + &groth16_proof.proof[4..], + &groth16_public_inputs, + sp1_verifier_vk, + ) + .map_err(|_| ProgramError::InvalidAccountData)?; + + msg!("Successfully verified proof!"); + + Ok(()) +} + +fn preprocess_public_inputs_hash(sp1_public_inputs_hash: &mut [u8]) -> [u8; 32] { + // The Groth16 verifier operates over a 254 bit field (BN254), so we need to zero + // out the first 3 bits. The same logic happens in the SP1 Ethereum verifier contract. + sp1_public_inputs_hash[0] = sp1_public_inputs_hash[0] & 0x1F; + + sp1_public_inputs_hash[0..32] + .try_into() + .expect("Invalid public input hash") +} + +/// Formats the sp1 vkey hash and public inputs for use in the Groth16 verifier. +fn groth16_public_values(committed_values_digest: &[u8]) -> Vec { + let vkey_hash_bytes = hex::decode(&DCAP_VKEY_HASH[2..]).unwrap(); + [ + vkey_hash_bytes[1..].to_vec(), + committed_values_digest.to_vec(), + ] + .concat() +}