Skip to main content

default_keystore_dir

Function default_keystore_dir 

Source
pub fn default_keystore_dir() -> Result<PathBuf, KeystoreError>
Expand description

Returns $XDG_DATA_HOME/taskfast/wallets, falling back to $HOME/.local/share/taskfast/wallets when XDG is unset.

Creates the directory if it doesn’t exist and tightens perms to 0700 on unix. Keystore files are written 0600 after the fact by save_signer.