Crates.io | dcap-rs |
lib.rs | dcap-rs |
version | |
source | src |
created_at | 2024-12-12 08:44:51.413636 |
updated_at | 2024-12-12 08:44:51.413636 |
description | Intel Data Center Attestation Primitives (DCAP) Quote Verification Library (QVL) implemented in pure Rust. |
homepage | |
repository | https://github.com/automata-network/dcap-rs |
max_upload_size | |
id | 1481002 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Intel Data Center Attestation Primitives Quote Verification Library (DCAP QVL) implemented in pure Rust.
This 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 contract.
This library supports verification of the following quotes:
To use dcap-rs, add the following to Cargo.toml
:
[dependencies]
dcap-rs = { git = "https://github.com/automata-network/dcap-rs.git" }
zkVM programs provide patches, which are simply modified Rust crates that can help reducing execution cycle costs in the VM.
We have tested dcap-rs
with both RiscZero and SP1 zkVMs, and we would happily work with more zkVMs in the future.
Read the section(s) below to learn about how patches can be applied towards corresponding zkVM programs.
Patches applied:
crypto-bigint
sha2
p256
.Make sure to include the following patches into your Guest's cargo.toml
.
[patch.crates-io]
sha2 = { git = "https://github.com/risc0/RustCrypto-hashes", tag = "sha2-v0.10.6-risczero.0" }
crypto-bigint = { git = "https://github.com/risc0/RustCrypto-crypto-bigint", tag = "v0.5.2-risczero.0" }
p256 = { git = "https://github.com/automata-network/RustCrypto-elliptic-curves.git" }
Click here to learn more about RiscZero accelerators.
Patches applied:
crypto-bigint
sha2
Make sure to include the following patches into your workspace cargo.toml
.
[patch.crates-io]
sha2 = { git = "https://github.com/sp1-patches/RustCrypto-hashes", branch = "patch-sha2-v0.10.8" }
crypto-bigint = { git = "https://github.com/sp1-patches/RustCrypto-bigint", branch = "patch-v0.5.5" }
Click here to learn more about SP1 Precompiles.
Before You Contribute:
Apache License