pub fn validate_expected_challenge(
    attestation_doc: &AttestationDoc,
    expected_challenge: &[u8]
) -> AttestationDocResult<()>
Expand description

Takes an AttestationDoc and expected challenge and compares them

Errors

Returns a MissingUserData error if user data is not present in attestation doc Returns a UserDataMismatch error if the challenges do not match