Skip to main content

Crate walletkit_db

Crate walletkit_db 

Source
Expand description

Encrypted on-device storage primitives for WalletKit.

The crate provides building blocks shared by walletkit-core::storage and sibling SDKs (e.g. OrbKit’s OrbPcpStore):

Consumers own their schemas, FFI surfaces, and storage policy on top of these primitives.

Re-exports§

pub use blobs::compute_content_id;
pub use blobs::ContentId;

Modules§

blobs
Content-addressed blob storage shared across consumer vaults.
cipher
sqlite3mc encryption configuration.

Macros§

params
Convenience macro for building parameter lists.

Structs§

Connection
A SQLite database connection.
DbError
Error returned by database operations.
Lock
File-backed cross-process exclusive lock. See the module docs for what it’s for (and what it isn’t).
LockGuard
Guard that holds an exclusive lock for its lifetime.
Row
A guard that represents the current row for a statement.
Statement
A prepared SQLite statement.
Transaction
An open database transaction.
Vault
Open encrypted database wrapper.

Enums§

StepResult
Result of a single sqlite3_step call.
StoreError
Errors raised by the storage primitives (vault, blobs, envelope, lock).
Value
A value that can be bound to a prepared statement parameter or read from a result column.

Traits§

AtomicBlobStore
Atomic blob store for small binary files (e.g. sealed key envelopes).
Keystore
Device keystore for sealing and opening secrets under a device-bound key.

Functions§

init_or_open_envelope_key
Initialize or open the envelope-sealed intermediate key.

Type Aliases§

DbResult
Result alias for Error.
StoreResult
Result alias for StoreError.