MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / attest_response

Method attest_response

guest-agent/src/backend.rs:48–53  ·  view source on GitHub ↗
(&self, report_data: [u8; 64])

Source from the content-addressed store, hash-verified

46 }
47
48 fn attest_response(&self, report_data: [u8; 64]) -> Result<AttestResponse> {
49 let attestation = Attestation::quote(&report_data).context("Failed to get attestation")?;
50 Ok(AttestResponse {
51 attestation: attestation.into_versioned().to_bytes()?,
52 })
53 }
54
55 fn emit_event(&self, event: &str, payload: &[u8]) -> Result<()> {
56 emit_runtime_event(event, payload)

Callers

nothing calls this directly

Calls 2

to_bytesMethod · 0.80
into_versionedMethod · 0.80

Tested by

no test coverage detected