Module db

Module db 

Source
Expand description

Database keys for fedimint-cli

These keys use the UserData prefix (0xb0) as recommended for external/CLI data that shouldn’t be in the core client database schema.

Structs§

AdminCredsKey
Key for storing admin credentials
StoredAdminCreds
The stored admin credentials value

Enums§

CliDbKeyPrefix
Key prefix enum for CLI database keys

Constants§

CLI_USER_DATA_SUB_PREFIX 🔒
Sub-prefix for CLI-specific data under UserData (0xb0)

Functions§

cli_database
Get a CLI-specific database with the UserData prefix already applied
load_admin_creds
Load stored admin credentials from the CLI database
store_admin_creds
Store admin credentials in the CLI database