fedimint_server::config

Module io

Source

Constantsยง

CLIENT_CONFIG
Client configuration file
CLIENT_INVITE_CODE_FILE
Client connection string file
CONSENSUS_CONFIG
Server consensus-only configurable file
DB_FILE
Database file name
ENCRYPTED_EXT
JSON_EXT
LOCAL_CONFIG
Server locally configurable file
PLAINTEXT_PASSWORD
Plain-text stored password, used to restart the server without having to send a password in via the API
PRIVATE_CONFIG
Server encrypted private keys file
SALT_FILE
Salt backup for combining with the private key

Functionsยง

encrypted_json_read ๐Ÿ”’
Reads an encrypted json file into a struct
encrypted_json_write ๐Ÿ”’
Writes struct into an encrypted json file
plaintext_display_write ๐Ÿ”’
plaintext_json_read ๐Ÿ”’
Reads a plaintext json file into a struct
plaintext_json_write ๐Ÿ”’
Writes struct into a plaintext json file
read_server_config
Reads the server from the local, private, and consensus cfg files
write_server_config
Writes the server into configuration files (private keys encrypted)