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

Method try_from

ra-tls/src/cert.rs:296–303  ·  view source on GitHub ↗
(v0: CertSigningRequestV1)

Source from the content-addressed store, hash-verified

294impl TryFrom<CertSigningRequestV1> for CertSigningRequestV2 {
295 type Error = anyhow::Error;
296 fn try_from(v0: CertSigningRequestV1) -> Result<Self, Self::Error> {
297 Ok(Self {
298 confirm: v0.confirm,
299 pubkey: v0.pubkey,
300 config: v0.config.into(),
301 attestation: Attestation::from_tdx_quote(v0.quote, &v0.event_log)?.into_versioned(),
302 })
303 }
304}
305
306impl Csr for CertSigningRequestV2 {

Callers

nothing calls this directly

Calls 1

into_versionedMethod · 0.80

Tested by

no test coverage detected