@@ -64,6 +64,9 @@ mdkd config.toml \
6464 6< <( vault kv get -field=password_read_only secret/mdk) \
6565 7< <( vault kv get -field=access_token secret/mdk)
6666
67+ # Route all traffic through Tor or another SOCKS5 proxy
68+ mdkd config.toml --socks-proxy socks5://127.0.0.1:9050
69+
6770# Local dev -- env var fallback, no ceremony
6871source .env && mdkd config.toml
6972```
@@ -93,7 +96,7 @@ http://127.0.0.1:8081/scalar
9396
9497### config.toml
9598
96- The config file follows ldk-server's format. A minimal mainnet example:
99+ A minimal mainnet example:
97100
98101``` toml
99102[node ]
@@ -106,9 +109,6 @@ dir_path = "/var/lib/mdkd"
106109
107110[log ]
108111level = " Info"
109-
110- [esplora ]
111- server_url = " https://esplora.moneydevkit.com/api"
112112```
113113
114114` rest_service_address ` is the bind address for the server API.
@@ -123,6 +123,12 @@ For each secret, pass `--<name>-fd N` where `N` is an open file descriptor
123123containing the value. If the flag is omitted, the corresponding env var is
124124checked. If neither is present the process exits with an error.
125125
126+ #### Additional CLI flags
127+
128+ | Flag | Description |
129+ | ------| -------------|
130+ | ` --socks-proxy <url> ` | Route all outbound traffic (LDK peer connections and HTTP) through a SOCKS5 proxy. Example: ` socks5://127.0.0.1:9050 ` . |
131+
126132#### Required on all networks
127133
128134| CLI flag | Env var fallback | Description |
@@ -140,11 +146,17 @@ checked. If neither is present the process exits with an error.
140146| ` MDK_LSP_NODE_ID ` | Public key of the MoneyDevKit lightning node. |
141147| ` MDK_LSP_ADDRESS ` | ` host:port ` of the MoneyDevKit lightning P2P socket. |
142148| ` MDK_API_BASE_URL ` | Base URL of the MoneyDevKit RPC API (e.g. ` http://localhost:3900/rpc ` ). |
149+ | ` MDK_BITCOIND_RPC_HOST ` | Hostname of the bitcoind RPC server. |
150+ | ` MDK_BITCOIND_RPC_PORT ` | Port of the bitcoind RPC server. |
151+ | ` MDK_BITCOIND_RPC_USER ` | Bitcoind RPC username. |
152+ | ` MDK_BITCOIND_RPC_PASSWORD ` | Bitcoind RPC password. |
153+ | ` MDK_VSS_URL ` | URL of the VSS instance (e.g. ` http://localhost:8080/vss ` ). |
143154
144155### Generating secrets
145156
146157** MDK_ACCESS_TOKEN** -- sign in to [ moneydevkit.com] ( https://moneydevkit.com ) ,
147- create an app, and copy the API key.
158+ create an app, and copy the API key. Note that you do not need to specify a real
159+ domain when using this daemon. ` https://localhost ` will suffice.
148160
149161** MDK_MNEMONIC** -- Same as above but hit ` Generate Mnemonic ` instead of copying the key or
150162generate your own fresh BIP-39 mnemonic. Back it up offline. This is your wallet seed.
@@ -173,13 +185,22 @@ openssl rand -hex 32
173185
174186### Supported networks
175187
176- | Network | LSP infrastructure | Chain source |
177- | ---------| -------------------| -------------- |
178- | ` bitcoin ` (mainnet) | Hard-coded | config.toml |
179- | ` signet ` (mutinynet) | Hard-coded | config.toml |
180- | ` regtest ` | Env vars | config.toml |
188+ | Network | LSP + chain source | VSS |
189+ | ---------| -------------------| -----|
190+ | ` bitcoin ` (mainnet) | Hard-coded | Hard-coded |
191+ | ` signet ` (mutinynet) | Hard-coded | Hard-coded |
192+ | ` regtest ` | Env vars | ` MDK_VSS_URL ` env var |
181193| ` testnet ` | Not yet supported | -- |
182194
195+ ## Storage
196+
197+ Wallet state (channels, keys, routing scores) is replicated to a remote
198+ [ Versioned Storage Service] ( https://github.com/lightningdevkit/vss-server )
199+ (VSS). This gives you encrypted cloud backup of node state out of the box.
200+
201+ Local data (invoice metadata, outgoing payment tracking) lives in a SQLite
202+ database at ` <storage_dir>/<network>/mdkd.sqlite ` .
203+
183204## CI and releases
184205
185206### CI
0 commit comments