validate_expected_challenge

Function validate_expected_challenge 

Source
pub fn validate_expected_challenge(
    attestation_doc: &AttestationDoc,
    expected_challenge: &[u8],
) -> AttestationResult<()>
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