Function validate_attestation_doc

Source
pub fn validate_attestation_doc(
    attestation_doc_cose_sign_1_bytes: &[u8],
) -> AttestResult<()>
Expand description

Validates an attestation doc by:

  • Validating the cert structure
  • Decoding and validating the attestation doc
  • Validating the signature on the attestation doc

ยงErrors

Will return an error if:

  • The cose1 encoded attestation doc fails to parse, or its signature is invalid
  • The attestation document is not signed by the nitro cert chain
  • Any of the certificates are malformed