Skip to main content

Module session_manager

Module session_manager 

Source
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§

SessionManager
Manages authenticated peer sessions with dual-index tracking.

Enums§

MarkSeen
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.