{"id":18583468,"url":"https://github.com/automata-network/dcap-rs","last_synced_at":"2026-04-02T02:53:56.669Z","repository":{"id":257700580,"uuid":"739768459","full_name":"automata-network/dcap-rs","owner":"automata-network","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-25T07:56:26.000Z","size":286,"stargazers_count":18,"open_issues_count":2,"forks_count":4,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-25T08:39:57.721Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/automata-network.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-06T13:42:33.000Z","updated_at":"2025-04-16T18:11:49.000Z","dependencies_parsed_at":"2024-11-26T09:27:14.980Z","dependency_job_id":"af9cf73e-1570-4439-996a-fb3980b9d382","html_url":"https://github.com/automata-network/dcap-rs","commit_stats":{"total_commits":145,"total_committers":5,"mean_commits":29.0,"dds":"0.15172413793103445","last_synced_commit":"4c162176961276986cf6f242487e3a8c519c74fc"},"previous_names":["automata-network/dcap-rs"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/automata-network%2Fdcap-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/automata-network%2Fdcap-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/automata-network%2Fdcap-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/automata-network%2Fdcap-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/automata-network","download_url":"https://codeload.github.com/automata-network/dcap-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251746729,"owners_count":21637287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T00:22:58.860Z","updated_at":"2026-04-02T02:53:56.655Z","avatar_url":"https://github.com/automata-network.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/automata-network/automata-brand-kit/main/PNG/ATA_White%20Text%20with%20Color%20Logo.png\"\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://raw.githubusercontent.com/automata-network/automata-brand-kit/main/PNG/ATA_Black%20Text%20with%20Color%20Logo.png\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/automata-network/automata-brand-kit/main/PNG/ATA_White%20Text%20with%20Color%20Logo.png\" width=\"50%\"\u003e\n  \u003c/picture\u003e\n\u003c/div\u003e\n\n# Automata DCAP Rust Library\n[![Automata DCAP Rust Library](https://img.shields.io/badge/Power%20By-Automata-orange.svg)](https://github.com/automata-network)\n\nIntel Data Center Attestation Primitives Quote Verification Library (DCAP QVL) implemented in pure Rust. \n\nThis library can be integrated into zkVM programs that provide users the ability to attest DCAP quotes directly on-chain, by publishing and verifying ZK SNARK proofs in the [AutomataDCAPAttestation](https://github.com/automata-network/automata-dcap-attestation) contract.\n\nThis library supports verification of the following quotes:\n-   V3 SGX Quotes\n-   V4 TDX and SGX Quotes\n\n## Usage\n\nTo use dcap-rs, add the following to `Cargo.toml`:\n\n```\n[dependencies]\ndcap-rs = { git = \"https://github.com/automata-network/dcap-rs.git\" }\n```\n\n### zkVM Patches\n\nzkVM programs provide patches, which are simply modified Rust crates that can help reducing execution cycle costs in the VM.\n\nWe have tested `dcap-rs` with both RiscZero and SP1 zkVMs, and we would happily work with more zkVMs in the future.\n\nRead the section(s) below to learn about how patches can be applied towards corresponding zkVM programs.\n\n#### RiscZero Accelerators\n\nPatches applied: \n- `crypto-bigint` \n- `sha2`\n- Our attempt at accelerating [`p256`](https://github.com/automata-network/RustCrypto-elliptic-curves/tree/risczero/p256).\n\nMake sure to include the following patches into your Guest's `cargo.toml`.\n\n```\n[patch.crates-io]\nsha2 = { git = \"https://github.com/risc0/RustCrypto-hashes\", tag = \"sha2-v0.10.6-risczero.0\" }\ncrypto-bigint = { git = \"https://github.com/risc0/RustCrypto-crypto-bigint\", tag = \"v0.5.2-risczero.0\" }\np256 = { git = \"https://github.com/automata-network/RustCrypto-elliptic-curves.git\" }\n```\n\nClick [here](https://dev.risczero.com/api/zkvm/acceleration) to learn more about RiscZero accelerators.\n\n#### SP1 Precompiles\n\nPatches applied: \n- `crypto-bigint`\n- `sha2`\n\nMake sure to include the following patches into your workspace `cargo.toml`.\n\n```\n[patch.crates-io]\nsha2 = { git = \"https://github.com/sp1-patches/RustCrypto-hashes\", branch = \"patch-sha2-v0.10.8\" }\ncrypto-bigint = { git = \"https://github.com/sp1-patches/RustCrypto-bigint\", branch = \"patch-v0.5.5\" }\n```\n\nClick [here](https://docs.succinct.xyz/writing-programs/precompiles.html) to learn more about SP1 Precompiles.\n\n---\n\n## Contributing\n\n**Before You Contribute**:\n* **Raise an Issue**: If you find a bug or wish to suggest a feature, please open an issue first to discuss it. Detail the bug or feature so we understand your intention.  \n* **Pull Requests (PR)**: Before submitting a PR, ensure:  \n    * Your contribution successfully builds.\n    * It includes tests, if applicable.\n\n## License\n\nApache License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautomata-network%2Fdcap-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautomata-network%2Fdcap-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautomata-network%2Fdcap-rs/lists"}