Skip to main content

Crate perspt_store

Crate perspt_store 

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

Psp9CalibrationEpochRow
Psp9ExternalEffectRow
Psp9LedgerRow
One durable PSP-9 ledger record (system 14). The SDK’s Ledger owns the chain semantics; this row keeps the canonical bytes for resume and audit replay.
Psp9VerdictRow
RepairReport
SessionRecord
Record for a session
SessionStore
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.