Expand description
perspt-store: DuckDB-based persistence layer for SRBN sessions
Provides session persistence, node state tracking, and energy history with Merkle tree support for state verification and rollback.
Structs§
- Psp9
Calibration Epoch Row - Psp9
External Effect Row - Psp9
Ledger Row - One durable PSP-9 ledger record (system 14). The SDK’s
Ledgerowns the chain semantics; this row keeps the canonical bytes for resume and audit replay. - Psp9
Verdict Row - Repair
Report - Session
Record - Record for a session
- Session
Store - Session store for SRBN persistence
Functions§
- init_
schema - Initialize the store through an idempotent transactional migration.
- repair_
database - Quarantine a WAL only after durable backups exist, then verify the database through a read-only connection. Historical bytes are never deleted.