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

Function platform_from_legacy_quote

dstack-attest/src/attestation.rs:80–88  ·  view source on GitHub ↗
(quote: AttestationQuote)

Source from the content-addressed store, hash-verified

78}
79
80fn platform_from_legacy_quote(quote: AttestationQuote) -> PlatformEvidence {
81 match quote {
82 AttestationQuote::DstackTdx(TdxQuote { quote, event_log }) => {
83 PlatformEvidence::Tdx { quote, event_log }
84 }
85 AttestationQuote::DstackGcpTdx => PlatformEvidence::GcpTdx,
86 AttestationQuote::DstackNitroEnclave => PlatformEvidence::NitroEnclave,
87 }
88}
89
90fn platform_into_legacy_quote(platform: PlatformEvidence) -> AttestationQuote {
91 match platform {

Callers 1

fromMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected