DoAuth.Credential (do_auth v0.5.0-pre)

Generic verifiable credentials server.

Link to this section Summary

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Specs

content(map()) :: map()

Specs

init(any()) :: {:ok, map()}

Callback implementation for GenServer.init/1.

Link to this function

mk_credential!(kp, payload_map, opts \\ [])

Specs

mk_credential!(
  %{:public => Uptight.Binary.t(), optional(any()) => any()},
  any(),
  keyword()
) :: map()

Specs

Link to this function

present_credential_map(kp, credential_map, opts \\ [])

Specs

present_credential_map(
  DoAuth.Crypto.keypair_opt(),
  map(),
  list()
) :: Uptight.Result.t()
Link to this function

present_credential_map!(kp, credential_map, opts \\ [])

Specs

present_credential_map!(
  DoAuth.Crypto.keypair_opt(),
  map(),
  list()
) :: map()

Specs

Link to this function

start_link(init_args)

Specs

start_link(any()) :: :ignore | {:error, any()} | {:ok, pid()}
Link to this function

transact_with_keypair_from_payload_map!(kp, payload_map, opts \\ [])

Specs

transact_with_keypair_from_payload_map!(
  DoAuth.Crypto.keypair_opt(),
  map(),
  keyword()
) ::
  {:reply, map(), list()}