Parrhesia.Auth.Nip98ReplayCache
(parrhesia v0.12.0)
Copy Markdown
Tracks recently accepted NIP-98 auth event ids to prevent replay.
Summary
Functions
Returns a specification to start this module under a supervisor.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec consume(GenServer.server(), String.t(), integer(), keyword()) :: :ok | {:error, :replayed_auth_event}
@spec start_link(keyword()) :: GenServer.on_start()