pub fn validate_and_parse_attestation_doc(
attestation_doc_cose_sign_1_bytes: &[u8],
) -> AttestResult<AttestationDoc>
Expand description
Validates an attestation doc by:
- Validating the cert structure
- Decoding and validating the attestation doc
- Validating the signature on the attestation doc Ultimately returning the parsed 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