Expand description
Pluggable storage backends. Pluggable storage backends for encrypted key storage.
Structs§
- Atomic
Op - A single put-or-delete operation for
StorageBackend::write_atomic.valueSomeis a put,Noneis a delete. - Memory
Backend - In-memory storage backend for testing.
- Redb
Backend - 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. LikeSECRETS_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 highestcreated_at(8-byte big-endian) applied for it, so the consumer rejects any replicated event that is not strictly newer (replay/rollback protection).
Traits§
- Storage
Backend - Trait for pluggable storage backends.