pub fn db_path() -> String
Expand description
Returns the path to the wallet database file.
The path is determined by the value of the WALLET_DB_PATH
environment variable. If the
variable is not set, the function creates a .moksha
directory in the user’s home directory
and returns a path to a wallet.db
file in that directory.
§Examples
let db_path = moksha_wallet::config_path::db_path();
println!("Database path: {}", db_path);