2020-12-27 00:10:02 +00:00
|
|
|
## chantools derivekey
|
|
|
|
|
|
|
|
Derive a key with a specific derivation path
|
|
|
|
|
2020-12-27 00:40:51 +00:00
|
|
|
### Synopsis
|
|
|
|
|
|
|
|
This command derives a single key with the given BIP32
|
|
|
|
derivation path from the root key and prints it to the console.
|
|
|
|
|
2020-12-27 00:10:02 +00:00
|
|
|
```
|
|
|
|
chantools derivekey [flags]
|
|
|
|
```
|
|
|
|
|
2020-12-27 00:40:51 +00:00
|
|
|
### Examples
|
|
|
|
|
|
|
|
```
|
2021-05-02 15:40:13 +00:00
|
|
|
chantools derivekey --path "m/1017'/0'/5'/0/0'" \
|
2021-05-01 20:10:09 +00:00
|
|
|
--neuter
|
2021-05-02 14:45:36 +00:00
|
|
|
|
|
|
|
chantools derivekey --identity
|
2020-12-27 00:40:51 +00:00
|
|
|
```
|
|
|
|
|
2020-12-27 00:10:02 +00:00
|
|
|
### Options
|
|
|
|
|
|
|
|
```
|
|
|
|
--bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag
|
|
|
|
-h, --help help for derivekey
|
2021-05-02 14:45:36 +00:00
|
|
|
--identity derive the lnd identity_pubkey
|
2020-12-27 00:10:02 +00:00
|
|
|
--neuter don't output private key(s), only public key(s)
|
|
|
|
--path string BIP32 derivation path to derive; must start with "m/"
|
|
|
|
--rootkey string BIP32 HD root key of the wallet to use for decrypting the backup; leave empty to prompt for lnd 24 word aezeed
|
|
|
|
```
|
|
|
|
|
|
|
|
### Options inherited from parent commands
|
|
|
|
|
|
|
|
```
|
|
|
|
-r, --regtest Indicates if regtest parameters should be used
|
|
|
|
-t, --testnet Indicates if testnet parameters should be used
|
|
|
|
```
|
|
|
|
|
|
|
|
### SEE ALSO
|
|
|
|
|
|
|
|
* [chantools](chantools.md) - Chantools helps recover funds from lightning channels
|
|
|
|
|