(attestation: Attestation)
| 59 | |
| 60 | impl 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 | |
| 80 | fn platform_from_legacy_quote(quote: AttestationQuote) -> PlatformEvidence { |
nothing calls this directly
no test coverage detected