web_authn_lite v0.1.1 WebAuthnLite.AuthenticatorData

Data struct and functions for AuthenticatorData

https://www.w3.org/TR/webauthn/#authenticator-data

Link to this section Summary

Link to this section Types

Link to this type t()
t() :: %WebAuthnLite.AuthenticatorData{
  attested_credential_data: binary(),
  extensions: binary(),
  flags: binary(),
  raw: String.t(),
  rp_id_hash: String.t(),
  sign_count: Integer.t()
}

Link to this section Functions

Link to this function decode(authenticator_data)
decode(authenticator_data :: String.t()) ::
  {:ok, t()} | {:error, :invalid_authenticator_data} | {:error, term()}
Link to this function from_binary(authenticator_data)
from_binary(authenticator_data :: binary()) ::
  {:ok, t()} | {:error, :invalid_authenticator_data} | {:error, term()}
Link to this function rp_id_hash(rp_id)
rp_id_hash(rp_id :: String.t()) :: String.t()