View Source ExUid2.Keyring (ex_uid2 v0.1.0)

Struct holding the keys periodically fetched from the UID2 operator server.

Fields:

  • :keys - The list of available keys

  • :info - Other information provided via the UID2 operator server's /v2/keys/sharing endpoint

Summary

Types

@type t() :: %ExUid2.Keyring{
  info: ExUid2.Keyring.Info.t(),
  keys: %{required(non_neg_integer()) => ExUid2.Keyring.Key.t()}
}

Functions

@spec get_key(t(), non_neg_integer()) ::
  {:ok, ExUid2.Keyring.Key.t()} | {:error, :key_not_found}
@spec new(map()) :: t()