cutting extraneous material

This commit is contained in:
Shannon Appelcline 2020-08-26 09:01:49 -10:00 committed by GitHub
parent 38e62312e9
commit 2603acea2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,38 +187,3 @@ Unfortunately, not all interactions go as smoothly. For example, it would be nic
4. Importing an Address
## Passing Around a Transaction
[per 16.5]
[also mention PSBTs]
[This is backburnered for the moment]
## Creating Recovery Words
One of the big limitations of Bitcoin Core is that it creates a BIP32 HD wallet, but it doesn't provide any way to back that up with BIP39 mnemonic words. With Libwally, you can now do that yourself.
You can dump your wallet with the `dumpwallet` RPC command:
```
$ bitcoin-cli dumpwallet seed
{
"filename": "/home/standup/.bitcoin/seed"
}
```
If you read the file you created, you should see your seed with the line `hdseed=1`
```
standup@btctest:~/.bitcoin$ more seed | grep hdseed
cV2ofwMK2EWH7PduPGTU3mKkKsQRhAddWNzMLHqVgnvD8RgkHE97 2020-08-04T19:04:02Z hdseed=1 # addr=tb1qtuk0khv6qmwq6xl0llk9r8ht35z3kkk6qsaazw
```
The following command will currently work to extract that seed, though this type of command depending on file formatting is always prone to breaking as file formats change:
```
seed=$(cat seed | grep hdseed=1 | awk '{print $1}')
```
Now, you just need to import that into a simple Libwally program.
[write the libwally program]
* bip32_key_serialize
* bip39_mnemonic_from_bytes
[write a script that (1) dumps; (2) extracts the key; (3) runs it through libwally; (4) outputs the mnemonic words]