diff options
| author | Eric <tilcboy44@gmail.com> | 2026-07-30 07:34:47 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-30 10:34:47 -0300 |
| commit | 68b11f46fc4d3035292b41ef1dee9ae957e0a0ef (patch) | |
| tree | 6b024d24a362d28081cd01be92811d4f91d4bc1f | |
| parent | a3f9d87ef3c610f4158b64e44ac6b074d386b06a (diff) | |
gitignore: cover the key files the node actually writes (#43)
.gitignore ignores *.dat and wallet.dat, but the node also writes three files
in its data directory that are not .dat and are just as sensitive:
btf_enc.key this node's .btf service key -- its network identity
nostr.key the Nostr key its descriptors are signed with
walletrpc.token bearer token authorising spends over the wallet API
A node run with its data directory inside a working tree -- which is the
obvious thing to do while developing -- leaves all three untracked but
committable, and `git add -A` takes them. Losing btf_enc.key means losing your
address; publishing walletrpc.token hands over the wallet to anyone who can
reach the port.
Also ignore key backup archives and stray .patch/.rej/.orig files.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
| -rw-r--r-- | .gitignore | 22 |
1 files changed, 22 insertions, 0 deletions
| @@ -36,3 +36,25 @@ dist/ | |||
| 36 | .DS_Store | 36 | .DS_Store |
| 37 | Thumbs.db | 37 | Thumbs.db |
| 38 | src/bitflash | 38 | src/bitflash |
| 39 | |||
| 40 | # Key material and secrets the node creates in its data directory. | ||
| 41 | # *.dat above already covers wallet.dat, but these are not .dat files and are | ||
| 42 | # every bit as sensitive: btf_enc.key and nostr.key are this node's .btf | ||
| 43 | # identity, and walletrpc.token is bearer authority to spend from the wallet. | ||
| 44 | *.key | ||
| 45 | btf_enc.key | ||
| 46 | nostr.key | ||
| 47 | walletrpc.token | ||
| 48 | |||
| 49 | # Wallet/key backups | ||
| 50 | *.tgz | ||
| 51 | *.tar.gz | ||
| 52 | bitflash-keys-* | ||
| 53 | |||
| 54 | # Mempool dump, if a node is configured to write one | ||
| 55 | mempool.txt | ||
| 56 | |||
| 57 | # Patches and scratch files kept alongside a working tree | ||
| 58 | *.patch | ||
| 59 | *.rej | ||
| 60 | *.orig | ||