Module config

Module config 

Source
Expand description

XDG-compliant configuration paths for BillPouch.

All paths are rooted at the platform data directory (~/.local/share/billpouch on Linux, ~/Library/Application Support/billpouch on macOS). Call ensure_dirs once at daemon startup to create the directory tree.

Functions§

base_dir
Returns the base BillPouch config directory (~/.local/share/billpouch on Linux).
bootstrap_path
Path to the user-editable bootstrap node list.
cek_hints_path
Path to the persisted per-chunk CEK hints.
encrypted_identity_path
Path to the passphrase-encrypted keypair (Argon2id + AES-256-GCM).
ensure_dirs
Ensure the base directory (and any subdirs) exist.
file_registry_path
Path to the file registry (uploaded file catalogue).
identity_path
Path to the stored keypair (identity) — plaintext.
kad_peers_path
Path to the persisted Kademlia peer multi-addresses.
network_keys_path
Path to the per-network secret keys store.
networks_path
Path to persisted network membership list.
pid_path
Path to the daemon PID file.
profile_path
Path to the user profile JSON (display name, etc.).
services_path
Path to persisted service registry.
socket_path
Path to the Unix control socket.