Skip to main content

Module backend

Module backend 

Source
Expand description

Pluggable storage backends. Pluggable storage backends for encrypted key storage.

Structs§

AtomicOp
A single put-or-delete operation for StorageBackend::write_atomic. value Some is a put, None is a delete.
MemoryBackend
In-memory storage backend for testing.
RedbBackend
Redb-based storage backend (default).

Constants§

CONFIG_TABLE
Table name for application configuration.
DESCRIPTORS_TABLE
Table name for wallet descriptors.
HEALTH_STATUS_TABLE
Table name for key health status records.
KEYS_TABLE
Table name for key records.
RELAY_CONFIGS_TABLE
Table name for relay configurations.
SECRETS_TABLE
Table name for arbitrary-secret records (passwords, API tokens, notes). Deliberately NOT a replicable table (see Storage::replicated_table): a password vault’s metadata surface must not sync to public Nostr relays.
SECRET_SEALS_TABLE
Table name for threshold seals: maps a secret id to its ThresholdSeal (wrapped DEK + OPRF params), present only for secrets whose value is gated behind a t-of-n OPRF quorum. Like SECRETS_TABLE, NOT a replicable table.
SHARES_TABLE
Table name for FROST shares.
STATE_VERSIONS_TABLE
Table name for the keep-state replication high-water-mark: maps a <table>:<record-id> d-tag to the highest created_at (8-byte big-endian) applied for it, so the consumer rejects any replicated event that is not strictly newer (replay/rollback protection).

Traits§

StorageBackend
Trait for pluggable storage backends.