View Source ExUid2.Keyring (ex_uid2 v0.2.0)
Struct holding the keys periodically fetched from the UID2 operator server.
Summary
Types
@type t() :: %ExUid2.Keyring{ info: ExUid2.Keyring.Info.t(), keys: %{required(non_neg_integer()) => ExUid2.Keyring.Key.t()} }
Struct holding the keys periodically fetched from the UID2 operator server.
:keys
- The list of available keys:info
- Other information provided via the UID2 operator server's/v2/keys/sharing
endpoint
Functions
@spec get_key(t(), non_neg_integer()) :: {:ok, ExUid2.Keyring.Key.t()} | {:error, :key_not_found}