pub fn validate_expected_nonce(
    attestation_doc: &AttestationDoc,
    expected_nonce: &str
) -> AttestationResult<()>
Expand description

Extracts the nonce embedded in the attestation doc, encodes it to base64 and compares it to the base64 encoded nonce given

Errors

Returns a NonceMismatch error if the attestation document contains an unexpected nonce, or does not contain a nonce