Expand description
Session management for the BRC-31 authentication protocol.
SessionManager tracks authenticated sessions by both session nonce (primary key) and peer identity key (secondary index), supporting multiple concurrent sessions per identity key.
Translated from TS SDK SessionManager.ts and Go SDK session_manager.go.
Structs§
- Session
Manager - Manages authenticated peer sessions with dual-index tracking.
Enums§
- Mark
Seen - Outcome of an anti-replay check-and-insert.
Constants§
- DEFAULT_
SEEN_ NONCE_ CAP - Default per-session cap on remembered message nonces (FIFO eviction).
- DEFAULT_
SESSION_ IDLE_ TTL_ MS - Default idle TTL for a session: 15 minutes.