Structs§
- Blossom
Config - Cashu
Config - Config
- Nostr
Config - S3Config
- S3-compatible storage configuration (works with AWS S3, Cloudflare R2, MinIO, etc.)
- Server
Config - Storage
Config - Sync
Config
Functions§
- ensure_
auth_ cookie - Generate and save auth cookie if it doesn’t exist
- ensure_
keys - Ensure keys file exists, generating one if not present Returns (Keys, was_generated)
- ensure_
keys_ string - Get nsec string, ensuring keys file exists (generate if needed) Returns (nsec_string, was_generated)
- generate_
auth_ cookie - Generate new random auth cookie
- generate_
keys - Generate new keys and save to file
- get_
auth_ cookie_ path - Get the auth cookie path (~/.hashtree/auth.cookie)
- get_
config_ path - Get the config file path (~/.hashtree/config.toml)
- get_
hashtree_ dir - Get the hashtree directory (~/.hashtree)
- get_
keys_ path - Get the keys file path (~/.hashtree/keys)
- parse_
npub - Parse npub to 32-byte pubkey
- pubkey_
bytes - Get 32-byte pubkey bytes from Keys.
- read_
auth_ cookie - Read existing auth cookie
- read_
keys - Read existing keys