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

Method from

dstack-attest/src/attestation.rs:61–77  ·  view source on GitHub ↗
(attestation: Attestation)

Source from the content-addressed store, hash-verified

59
60impl From<Attestation> for AttestationV1 {
61 fn from(attestation: Attestation) -> Self {
62 let Attestation {
63 quote,
64 runtime_events,
65 report_data,
66 config,
67 report: _,
68 } = attestation;
69
70 let platform = platform_from_legacy_quote(quote);
71 let stack = StackEvidence::Dstack {
72 report_data: report_data.to_vec(),
73 runtime_events,
74 config,
75 };
76 Self::new(platform, stack)
77 }
78}
79
80fn platform_from_legacy_quote(quote: AttestationQuote) -> PlatformEvidence {

Callers

nothing calls this directly

Calls 2

to_vecMethod · 0.80

Tested by

no test coverage detected