Parrhesia.Auth.Nip98ReplayCache (parrhesia v0.12.0)

Copy Markdown

Tracks recently accepted NIP-98 auth event ids to prevent replay.

Summary

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

consume(server \\ __MODULE__, event_id, created_at, opts \\ [])

@spec consume(GenServer.server(), String.t(), integer(), keyword()) ::
  :ok | {:error, :replayed_auth_event}

start_link(opts \\ [])

@spec start_link(keyword()) :: GenServer.on_start()