dcap-qvl-0.3.3 has been yanked.
dcap-qvl
This crate implements the quote verification logic for DCAP (Data Center Attestation Primitives) in pure Rust. It supports both SGX (Software Guard Extensions) and TDX (Trust Domain Extensions) quotes.
Features
- Verify SGX and TDX quotes
- Get collateral from PCCS
- Extract information from quotes
Usage
Add the following dependency to your Cargo.toml file to use this crate:
[]
= "0.1.0"
Examples
Get Collateral from PCCS_URL and Verify Quote
To get collateral from a PCCS_URL and verify a quote, you can use the following example code:
use get_collateral;
use verify;
async
Get Collateral from Intel PCS and Verify Quote
use get_collateral_from_pcs;
use verify;
async
Python Bindings
Python bindings are available for this crate, providing a Pythonic interface to the DCAP quote verification functionality.
Quick Start
# Build and test Python bindings
# Test across Python versions (3.8-3.12)
Usage
# Get collateral from Intel PCS (async)
=
= await
# Verify quote
=
# Or get collateral and verify in one step (async)
= await
# Run async code
See python-bindings/ for complete documentation, examples, and testing information.
License
This crate is licensed under the MIT license. See the LICENSE file for details.