Module Webs_passkey.Aaguid

Authenticator attestation GUIDs (AAGUID).

This is mainly for UI purposes. You can match these identifiers against a database to map it to names and icons which helps users to identify the source of their passkeys.

TODO. Should we vendor the db ?

type t

The type for AAGUID.

val nil : t

nil the nil UUID.

val equal : t -> t -> bool

equal g0 g1 is true iff g0 is equal to g1.

val compare : t -> t -> int

compare is a total order on credential ids.

val of_binary_string : string -> (t, string) Stdlib.result

of_binary_string s is an AAGUID from bytes s. Errors if s has not 16 bytes.

val to_binary_string : t -> string

to_binary_string gguid are the bytes of gguid.

val to_ascii_uuid : t -> string

to_ascii_uuid gguid formats guuid to the ASCII representation of an RFC 9562 UUID.

val pp : Stdlib.Format.formatter -> t -> unit

pp formats AAGGUIDs as ASCII UUIDs for inspection.