Expand description

Functions and types to initialize a store.

The re-exports present here depend on the store-related features that are enabled:

  1. sled provides a StateStore, and a CryptoStore for encryption data if e2e-encryption is enabled. This is the default persistent store implementation for non-WebAssembly targets.
  2. indexeddb, too, provides a StateStore and a CryptoStore if encryption is also enabled. This is the default persistent store implementation for WebAssembly targets.

Both options provide a make_store_config convenience method to create a StoreConfig for ClientBuilder::store_config().

Structs

A sled based cryptostore.

Enums

All the errors that can occur when opening a sled store.

Functions

make_store_configstate-store or crypto-store

Create a StoreConfig with an opened sled StateStore that uses the given path and passphrase. If encryption is enabled, a CryptoStore with the same parameters is also opened.