This module provides the implementation of some defaults database types, along with traits that
can be implemented externally to let
Wallets use customized databases.
It’s important to note that the databases defined here only contains “blockchain-related” data. They can be seen more as a cache than a critical piece of storage that contains secrets and keys.
The currently recommended database is [
sled], which is a pretty simple key-value embedded
database written in Rust. If the
key-value-db feature is enabled (which by default is),
this library automatically implements all the required traits for [
Runtime-checked database types
In-memory ephemeral database
Trait for a database that supports batch operations
Trait for operations that can be batched
Trait for reading data from a database