arise-identity · attestation
Source declarations, signatures and documentation for attestation.
Source: sigil/node/../arise-bridge/arise-identity/src/attestation.rs. SHA-256: 47d369b60fc92368eeebfbd3fd7a28608cb6a99b6eccccb81f85705834fb7da4.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
attestation::HardwareBenchmarkVC
A Verifiable Credential attesting to hardware benchmark results.
Ties measured compute performance to a provider's OAS DID. The VC includes the attestation method (self-reported, third-party, or TEE) and has a bounded validity window.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct HardwareBenchmarkVC {
/// Fixed: `"HardwareBenchmark"`.
pub vc_type: String,
/// The DID of the entity that issued/performed the benchmark.
pub issuer_did: String,
/// The provider DID whose hardware was benchmarked.
pub subject_did: String,
/// The measured benchmark results.
pub benchmark_data: BenchmarkResults,
/// How the attestation was obtained (e.g., `"ThirdPartyAudit"`).
pub attestation_method: String,
/// ISO 8601 timestamp when the VC was issued.
pub issued_at: String,
/// ISO 8601 timestamp when the VC expires.
pub expires_at: String
}Source line: 20.
attestation::PlatformAttestationVC
A Verifiable Credential for TEE-based platform attestation.
Represents a hardware-backed attestation from a Trusted Execution
Environment (SGX, TDX, SEV-SNP). The report_hash is a BLAKE3 hash
of the raw platform report data.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct PlatformAttestationVC {
/// Fixed: `"PlatformAttestation"`.
pub vc_type: String,
/// The DID of the entity that verified the platform attestation.
pub issuer_did: String,
/// The provider DID whose platform was attested.
pub subject_did: String,
/// The TEE platform type (e.g., `"sgx"`, `"tdx"`, `"sev-snp"`).
pub platform: String,
/// BLAKE3 hash of the raw platform attestation report (hex-encoded).
pub report_hash: String,
/// ISO 8601 timestamp when the VC was issued.
pub issued_at: String
}Source line: 43.
attestation::create_hardware_benchmark_vc
Creates a hardware benchmark Verifiable Credential.
The VC is issued at the current UTC time and expires after 90 days.
Arguments
provider_did- The OAS DID of the compute provider being benchmarked.benchmarks- The measured benchmark results.attestation_type- The method used to produce the benchmark.
Returns
A [HardwareBenchmarkVC] with the current timestamp and a 90-day validity window.
pub fn create_hardware_benchmark_vc(
provider_did: &str,
benchmarks: &BenchmarkResults,
attestation_type: &HardwareAttestationType,
) -> HardwareBenchmarkVC;Source line: 71.
attestation::create_platform_attestation_vc
Creates a platform attestation Verifiable Credential from TEE report data.
The report data is hashed with BLAKE3 to produce a compact, verifiable fingerprint stored in the VC.
Arguments
provider_did- The OAS DID of the compute provider.platform- The TEE platform identifier ("sgx","tdx","sev-snp").report_data- The raw platform attestation report bytes.
Returns
A [PlatformAttestationVC] with the BLAKE3 hash of the report data.
pub fn create_platform_attestation_vc(
provider_did: &str,
platform: &str,
report_data: &[u8],
) -> PlatformAttestationVC;Source line: 110.