Skip to main content

Module rocksdb_store

Module rocksdb_store 

Source
Expand description

RocksDB-backed user store with Cap’n Proto serialization.

Replaces LocalKeyStore (age-encrypted TOML, full rewrite per mutation) with RocksDB for atomic single-key updates and concurrent access.

Key scheme:

  • user:{username} → Cap’n Proto UserInfo message (packed)
  • pubkey:{fingerprint} → username (reverse lookup for auth)

The database directory is credentials_dir/users.db/.

Structs§

RocksDbUserStore