upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/README.md b/README.md
index da8183a..16e979f 100644
--- a/README.md
+++ b/README.md
@@ -98,6 +98,30 @@ The second point is the pre-BIP32 problem that deterministic wallets were
98invented to solve; see [#47](https://github.com/Bitflash-sh/bitflash/issues/47). 98invented to solve; see [#47](https://github.com/Bitflash-sh/bitflash/issues/47).
99Until that lands, repetition is the only defence. 99Until that lands, repetition is the only defence.
100 100
101### When wallet.dat itself will not open
102
103Everything above still runs through Berkeley DB. If the database is the thing
104that is broken — a build that will not read it, a file truncated by a bad copy,
105an environment beyond recovery — the keys are usually still fine, and you can
106take them out as text:
107
108```
109bitflash -dumpwallet=/path/to/keys.txt
110bitflash -importwallet=/path/to/keys.txt # into any wallet, on any machine
111```
112
113One key per line with its address and label, no database and no environment.
114Importing skips keys the wallet already holds, so running it twice is safe, and
115an unreadable line is reported and stepped over rather than abandoning the rest.
116Restart the node afterwards so it scans the chain for transactions belonging to
117the new keys.
118
119**The dump is your private keys in the clear.** Anyone who reads that file can
120spend those coins. It is written owner-only on Linux and macOS; on Windows it
121inherits whatever the containing folder allows, so choose the folder carefully.
122Move it somewhere safe and delete the copy. `-dumpwallet` will not overwrite an
123existing file.
124
101--- 125---
102 126
103## Mining 127## Mining