Skip to main content

parse_webauthn_assertion

Function parse_webauthn_assertion 

Source
fn parse_webauthn_assertion(json: &Value) -> Result<PrimitiveSignature>
Expand description

Parses a browser WebAuthn assertion: authenticatorData, clientDataJSON and signature (an AuthenticatorAssertionResponse, at the top level or under response as PublicKeyCredential.toJSON() writes it), plus the credential’s P-256 publicKey. Binary fields are base64url or 0x-prefixed hex; the signature is DER or raw r || s.