From 71b824e105ec67e33ecabafb87b8f165fa7b27a1 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Tue, 12 Mar 2024 13:06:32 +0100 Subject: [PATCH] README+doc: update all docs --- README.md | 6 ++- doc/chantools.md | 3 ++ doc/chantools_chanbackup.md | 1 + doc/chantools_closepoolaccount.md | 1 + doc/chantools_createwallet.md | 44 ++++++++++++++++++++ doc/chantools_derivekey.md | 13 +++--- doc/chantools_doublespendinputs.md | 1 + doc/chantools_dumpbackup.md | 1 + doc/chantools_fakechanbackup.md | 1 + doc/chantools_filterbackup.md | 1 + doc/chantools_fixoldbackup.md | 1 + doc/chantools_forceclose.md | 1 + doc/chantools_genimportscript.md | 1 + doc/chantools_pullanchor.md | 1 + doc/chantools_recoverloopin.md | 1 + doc/chantools_rescueclosed.md | 1 + doc/chantools_rescuefunding.md | 1 + doc/chantools_rescuetweakedkey.md | 1 + doc/chantools_showrootkey.md | 7 ++-- doc/chantools_signmessage.md | 31 ++++++++++---- doc/chantools_signpsbt.md | 46 +++++++++++++++++++++ doc/chantools_signrescuefunding.md | 9 ++-- doc/chantools_sweepremoteclosed.md | 1 + doc/chantools_sweeptimelock.md | 1 + doc/chantools_sweeptimelockmanual.md | 1 + doc/chantools_triggerforceclose.md | 1 + doc/chantools_zombierecovery_makeoffer.md | 1 + doc/chantools_zombierecovery_preparekeys.md | 1 + doc/chantools_zombierecovery_signoffer.md | 9 ++-- 29 files changed, 162 insertions(+), 26 deletions(-) create mode 100644 doc/chantools_createwallet.md create mode 100644 doc/chantools_signpsbt.md diff --git a/README.md b/README.md index 4553b29..042e20c 100644 --- a/README.md +++ b/README.md @@ -410,6 +410,7 @@ Available Commands: chanbackup Create a channel.backup file from a channel database closepoolaccount Tries to close a Pool account that has expired compactdb Create a copy of a channel.db file in safe/read-only mode + createwallet Create a new lnd compatible wallet.db file from an existing seed or by generating a new one deletepayments Remove all (failed) payments from a channel DB derivekey Derive a key with a specific derivation path doublespendinputs Tries to double spend the given inputs by deriving the private for the address and sweeping the funds to the given address. This can only be used with inputs that belong to an lnd wallet. @@ -430,6 +431,7 @@ Available Commands: rescuetweakedkey Attempt to rescue funds locked in an address with a key that was affected by a specific bug in lnd showrootkey Extract and show the BIP32 HD root key from the 24 word lnd aezeed signmessage Sign a message with the nodes identity pubkey. + signpsbt Sign a Partially Signed Bitcoin Transaction (PSBT) signrescuefunding Rescue funds locked in a funding multisig output that never resulted in a proper channel; this is the command the remote node (the non-initiator) of the channel needs to run summary Compile a summary about the current state of channels sweeptimelock Sweep the force-closed state after the time lock has expired @@ -470,6 +472,7 @@ Legend: | [chanbackup](doc/chantools_chanbackup.md) | :pencil: Extract a `channel.backup` file from a `channel.db` file | | [closepoolaccount](doc/chantools_closepoolaccount.md) | :pencil: Manually close an expired Lightning Pool account | | [compactdb](doc/chantools_compactdb.md) | Run database compaction manually to reclaim space | +| [createwallet](doc/chantools_createwallet.md) | :pencil: Create a new lnd compatible wallet.db file from an existing seed or by generating a new one | | [deletepayments](doc/chantools_deletepayments.md) | Remove ALL payments from a `channel.db` file to reduce size | | [derivekey](doc/chantools_derivekey.md) | :pencil: Derive a single private/public key from `lnd`'s seed, use to test seed | | [doublespendinputs](doc/chantools_doublespendinputs.md) | :pencil: Tries to double spend the given inputs by deriving the private for the address and sweeping the funds to the given address | @@ -483,13 +486,14 @@ Legend: | [forceclose](doc/chantools_forceclose.md) | :pencil: (:skull: :warning:) Publish an old channel state from a `channel.db` file | | [genimportscript](doc/chantools_genimportscript.md) | :pencil: Create a script/text file that can be used to import `lnd` keys into other software | | [migratedb](doc/chantools_migratedb.md) | Upgrade the `channel.db` file to the latest version | -| [pullanchor](doc/chantools_pullanchor.md) | :pencil: Attempt to CPFP an anchor output of a channel | +| [pullanchor](doc/chantools_pullanchor.md) | :pencil: Attempt to CPFP an anchor output of a channel | | [recoverloopin](doc/chantools_recoverloopin.md) | :pencil: Recover funds from a failed Lightning Loop inbound swap | | [removechannel](doc/chantools_removechannel.md) | (:skull: :warning:) Remove a single channel from a `channel.db` file | | [rescueclosed](doc/chantools_rescueclosed.md) | :pencil: (:pushpin:) Rescue funds in a legacy (pre `STATIC_REMOTE_KEY`) channel output | | [rescuefunding](doc/chantools_rescuefunding.md) | :pencil: (:pushpin:) Rescue funds from a funding transaction. Deprecated, use [zombierecovery](doc/chantools_zombierecovery.md) instead | | [showrootkey](doc/chantools_showrootkey.md) | :pencil: Display the master root key (`xprv`) from your seed (DO NOT SHARE WITH ANYONE) | | [signmessage](doc/chantools_signmessage.md) | :pencil: Sign a message with the nodes identity pubkey. | +| [signpsbt](doc/chantools_signpsbt.md) | :pencil: Sign a Partially Signed Bitcoin Transaction (PSBT) | | [signrescuefunding](doc/chantools_signrescuefunding.md) | :pencil: (:pushpin:) Sign to funds from a funding transaction. Deprecated, use [zombierecovery](doc/chantools_zombierecovery.md) instead | | [summary](doc/chantools_summary.md) | Create a summary of channel funds from a `channel.db` file | | [sweepremoteclosed](doc/chantools_sweepremoteclosed.md) | :pencil: Find channel funds from remotely force closed channels and sweep them | diff --git a/doc/chantools.md b/doc/chantools.md index cca764f..544c8e2 100644 --- a/doc/chantools.md +++ b/doc/chantools.md @@ -23,6 +23,7 @@ https://github.com/lightninglabs/chantools/. * [chantools chanbackup](chantools_chanbackup.md) - Create a channel.backup file from a channel database * [chantools closepoolaccount](chantools_closepoolaccount.md) - Tries to close a Pool account that has expired * [chantools compactdb](chantools_compactdb.md) - Create a copy of a channel.db file in safe/read-only mode +* [chantools createwallet](chantools_createwallet.md) - Create a new lnd compatible wallet.db file from an existing seed or by generating a new one * [chantools deletepayments](chantools_deletepayments.md) - Remove all (failed) payments from a channel DB * [chantools derivekey](chantools_derivekey.md) - Derive a key with a specific derivation path * [chantools doublespendinputs](chantools_doublespendinputs.md) - Replace a transaction by double spending its input @@ -43,6 +44,8 @@ https://github.com/lightninglabs/chantools/. * [chantools rescuefunding](chantools_rescuefunding.md) - Rescue funds locked in a funding multisig output that never resulted in a proper channel; this is the command the initiator of the channel needs to run * [chantools rescuetweakedkey](chantools_rescuetweakedkey.md) - Attempt to rescue funds locked in an address with a key that was affected by a specific bug in lnd * [chantools showrootkey](chantools_showrootkey.md) - Extract and show the BIP32 HD root key from the 24 word lnd aezeed +* [chantools signmessage](chantools_signmessage.md) - Sign a message with the node's private key. +* [chantools signpsbt](chantools_signpsbt.md) - Sign a Partially Signed Bitcoin Transaction (PSBT) * [chantools signrescuefunding](chantools_signrescuefunding.md) - Rescue funds locked in a funding multisig output that never resulted in a proper channel; this is the command the remote node (the non-initiator) of the channel needs to run * [chantools summary](chantools_summary.md) - Compile a summary about the current state of channels * [chantools sweepremoteclosed](chantools_sweepremoteclosed.md) - Go through all the addresses that could have funds of channels that were force-closed by the remote party. A public block explorer is queried for each address and if any balance is found, all funds are swept to a given address diff --git a/doc/chantools_chanbackup.md b/doc/chantools_chanbackup.md index 52c67ea..b321192 100644 --- a/doc/chantools_chanbackup.md +++ b/doc/chantools_chanbackup.md @@ -27,6 +27,7 @@ chantools chanbackup \ -h, --help help for chanbackup --multi_file string lnd channel.backup file to create --rootkey string BIP32 HD root key of the wallet to use for creating the backup; leave empty to prompt for lnd 24 word aezeed + --walletdb string read the seed/master root key to use fro creating the backup from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_closepoolaccount.md b/doc/chantools_closepoolaccount.md index da9d900..718ead9 100644 --- a/doc/chantools_closepoolaccount.md +++ b/doc/chantools_closepoolaccount.md @@ -42,6 +42,7 @@ chantools closepoolaccount \ --publish publish sweep TX to the chain API instead of just printing the TX --rootkey string BIP32 HD root key of the wallet to use for deriving keys; leave empty to prompt for lnd 24 word aezeed --sweepaddr string address to recover the funds to; specify 'fromseed' to derive a new address from the seed automatically + --walletdb string read the seed/master root key to use fro deriving keys from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_createwallet.md b/doc/chantools_createwallet.md new file mode 100644 index 0000000..c0388cb --- /dev/null +++ b/doc/chantools_createwallet.md @@ -0,0 +1,44 @@ +## chantools createwallet + +Create a new lnd compatible wallet.db file from an existing seed or by generating a new one + +### Synopsis + +Creates a new wallet that can be used with lnd or with +chantools. The wallet can be created from an existing seed or a new one can be +generated (use --generateseed). + +``` +chantools createwallet [flags] +``` + +### Examples + +``` +chantools createwallet \ + --walletdbdir ~/.lnd/data/chain/bitcoin/mainnet +``` + +### Options + +``` + --bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag + --generateseed generate a new seed instead of using an existing one + -h, --help help for createwallet + --rootkey string BIP32 HD root key of the wallet to use for creating the new wallet; leave empty to prompt for lnd 24 word aezeed + --walletdb string read the seed/master root key to use fro creating the new wallet from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag + --walletdbdir string the folder to create the new wallet.db file in +``` + +### Options inherited from parent commands + +``` + -r, --regtest Indicates if regtest parameters should be used + -s, --signet Indicates if the public signet 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 + diff --git a/doc/chantools_derivekey.md b/doc/chantools_derivekey.md index 13d4974..31a3e1c 100644 --- a/doc/chantools_derivekey.md +++ b/doc/chantools_derivekey.md @@ -23,12 +23,13 @@ chantools derivekey --identity ### 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 - --identity derive the lnd identity_pubkey - --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 + --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 + --identity derive the lnd identity_pubkey + --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 + --walletdb string read the seed/master root key to use fro decrypting the backup from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_doublespendinputs.md b/doc/chantools_doublespendinputs.md index fe6b5a6..a4ff97b 100644 --- a/doc/chantools_doublespendinputs.md +++ b/doc/chantools_doublespendinputs.md @@ -34,6 +34,7 @@ chantools doublespendinputs \ --recoverywindow uint32 number of keys to scan per internal/external branch; output will consist of double this amount of keys (default 2500) --rootkey string BIP32 HD root key of the wallet to use for deriving the input keys; leave empty to prompt for lnd 24 word aezeed --sweepaddr string address to recover the funds to; specify 'fromseed' to derive a new address from the seed automatically + --walletdb string read the seed/master root key to use fro deriving the input keys from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_dumpbackup.md b/doc/chantools_dumpbackup.md index bf6856d..f011962 100644 --- a/doc/chantools_dumpbackup.md +++ b/doc/chantools_dumpbackup.md @@ -25,6 +25,7 @@ chantools dumpbackup \ -h, --help help for dumpbackup --multi_file string lnd channel.backup file to dump --rootkey string BIP32 HD root key of the wallet to use for decrypting the backup; leave empty to prompt for lnd 24 word aezeed + --walletdb string read the seed/master root key to use fro decrypting the backup from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_fakechanbackup.md b/doc/chantools_fakechanbackup.md index 3cff89e..e5dc94e 100644 --- a/doc/chantools_fakechanbackup.md +++ b/doc/chantools_fakechanbackup.md @@ -65,6 +65,7 @@ chantools fakechanbackup --from_channel_graph lncli_describegraph.json \ --remote_node_addr string the remote node connection information in the format pubkey@host:port --rootkey string BIP32 HD root key of the wallet to use for encrypting the backup; leave empty to prompt for lnd 24 word aezeed --short_channel_id string the short channel ID in the format xx + --walletdb string read the seed/master root key to use fro encrypting the backup from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_filterbackup.md b/doc/chantools_filterbackup.md index 9f03187..475d646 100644 --- a/doc/chantools_filterbackup.md +++ b/doc/chantools_filterbackup.md @@ -27,6 +27,7 @@ chantools filterbackup \ -h, --help help for filterbackup --multi_file string lnd channel.backup file to filter --rootkey string BIP32 HD root key of the wallet to use for decrypting the backup; leave empty to prompt for lnd 24 word aezeed + --walletdb string read the seed/master root key to use fro decrypting the backup from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_fixoldbackup.md b/doc/chantools_fixoldbackup.md index f0523ba..56f351e 100644 --- a/doc/chantools_fixoldbackup.md +++ b/doc/chantools_fixoldbackup.md @@ -28,6 +28,7 @@ chantools fixoldbackup \ -h, --help help for fixoldbackup --multi_file string lnd channel.backup file to fix --rootkey string BIP32 HD root key of the wallet to use for decrypting the backup; leave empty to prompt for lnd 24 word aezeed + --walletdb string read the seed/master root key to use fro decrypting the backup from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_forceclose.md b/doc/chantools_forceclose.md index 41b0b7d..a2f0d49 100644 --- a/doc/chantools_forceclose.md +++ b/doc/chantools_forceclose.md @@ -43,6 +43,7 @@ chantools forceclose \ --pendingchannels string channel input is in the format of lncli's pendingchannels format; specify '-' to read from stdin --publish publish force-closing TX to the chain API instead of just printing the TX --rootkey string BIP32 HD root key of the wallet to use for decrypting the backup; leave empty to prompt for lnd 24 word aezeed + --walletdb string read the seed/master root key to use fro decrypting the backup from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_genimportscript.md b/doc/chantools_genimportscript.md index 5249b34..776f064 100644 --- a/doc/chantools_genimportscript.md +++ b/doc/chantools_genimportscript.md @@ -51,6 +51,7 @@ chantools genimportscript --format bitcoin-cli \ --rescanfrom uint32 block number to rescan from; will be set automatically from the wallet birthday if the lnd 24 word aezeed is entered (default 500000) --rootkey string BIP32 HD root key of the wallet to use for decrypting the backup; leave empty to prompt for lnd 24 word aezeed --stdout write generated import script to standard out instead of writing it to a file + --walletdb string read the seed/master root key to use fro decrypting the backup from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_pullanchor.md b/doc/chantools_pullanchor.md index 523a6c7..79104e8 100644 --- a/doc/chantools_pullanchor.md +++ b/doc/chantools_pullanchor.md @@ -33,6 +33,7 @@ chantools pullanchor \ -h, --help help for pullanchor --rootkey string BIP32 HD root key of the wallet to use for deriving keys; leave empty to prompt for lnd 24 word aezeed --sponsorinput string the input to use to sponsor the CPFP transaction; must be owned by the lnd node that owns the anchor output + --walletdb string read the seed/master root key to use fro deriving keys from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_recoverloopin.md b/doc/chantools_recoverloopin.md index 5ae3d4a..a7dabc9 100644 --- a/doc/chantools_recoverloopin.md +++ b/doc/chantools_recoverloopin.md @@ -35,6 +35,7 @@ chantools recoverloopin \ --sweepaddr string address to recover the funds to; specify 'fromseed' to derive a new address from the seed automatically --txid string transaction id of the on-chain transaction that created the HTLC --vout uint32 output index of the on-chain transaction that created the HTLC + --walletdb string read the seed/master root key to use fro deriving starting key from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_rescueclosed.md b/doc/chantools_rescueclosed.md index ccb8202..7420959 100644 --- a/doc/chantools_rescueclosed.md +++ b/doc/chantools_rescueclosed.md @@ -60,6 +60,7 @@ chantools rescueclosed --fromsummary results/summary-xxxxxx.json \ --lnd_log string the lnd log file to read to get the commit_point values when rescuing multiple channels at the same time --pendingchannels string channel input is in the format of lncli's pendingchannels format; specify '-' to read from stdin --rootkey string BIP32 HD root key of the wallet to use for decrypting the backup; leave empty to prompt for lnd 24 word aezeed + --walletdb string read the seed/master root key to use fro decrypting the backup from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_rescuefunding.md b/doc/chantools_rescuefunding.md index 4a730b2..fb50b39 100644 --- a/doc/chantools_rescuefunding.md +++ b/doc/chantools_rescuefunding.md @@ -50,6 +50,7 @@ chantools rescuefunding \ --remotepubkey string in case a channel DB is not available (but perhaps a channel backup file), the remote multisig public key can be specified manually --rootkey string BIP32 HD root key of the wallet to use for deriving keys; leave empty to prompt for lnd 24 word aezeed --sweepaddr string address to recover the funds to; specify 'fromseed' to derive a new address from the seed automatically + --walletdb string read the seed/master root key to use fro deriving keys from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_rescuetweakedkey.md b/doc/chantools_rescuetweakedkey.md index 7e16367..63c57a3 100644 --- a/doc/chantools_rescuetweakedkey.md +++ b/doc/chantools_rescuetweakedkey.md @@ -29,6 +29,7 @@ chantools rescuetweakedkey \ --path string BIP32 derivation path to derive the starting key from; must start with "m/" --rootkey string BIP32 HD root key of the wallet to use for deriving starting key; leave empty to prompt for lnd 24 word aezeed --targetaddr string address the funds are locked in + --walletdb string read the seed/master root key to use fro deriving starting key from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_showrootkey.md b/doc/chantools_showrootkey.md index 0fd8e76..c264d04 100644 --- a/doc/chantools_showrootkey.md +++ b/doc/chantools_showrootkey.md @@ -21,9 +21,10 @@ chantools showrootkey ### 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 showrootkey - --rootkey string BIP32 HD root key of the wallet to use for decrypting the backup; leave empty to prompt for lnd 24 word aezeed + --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 showrootkey + --rootkey string BIP32 HD root key of the wallet to use for decrypting the backup; leave empty to prompt for lnd 24 word aezeed + --walletdb string read the seed/master root key to use fro decrypting the backup from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_signmessage.md b/doc/chantools_signmessage.md index 54906e7..56fb812 100644 --- a/doc/chantools_signmessage.md +++ b/doc/chantools_signmessage.md @@ -1,10 +1,12 @@ ## chantools signmessage -Signs a message with the nodes key, results in the same signature as -`lncli signmessage` +Sign a message with the node's private key. ### Synopsis +Sign msg with the resident node's private key. + Returns the signature as a zbase32 string. + ``` chantools signmessage [flags] ``` @@ -18,9 +20,22 @@ chantools signmessage --msg=foobar ### 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 signmessage - --msg string the message to sign - --rootkey string BIP32 HD root key of the wallet to use for decrypting the backup; leave empty to prompt for lnd 24 word aezeed - --single_hash single hash the msg instead of double hash (lnd default is false) -``` \ No newline at end of file + --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 signmessage + --msg string the message to sign + --rootkey string BIP32 HD root key of the wallet to use for decrypting the backup; leave empty to prompt for lnd 24 word aezeed + --walletdb string read the seed/master root key to use fro decrypting the backup from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag +``` + +### Options inherited from parent commands + +``` + -r, --regtest Indicates if regtest parameters should be used + -s, --signet Indicates if the public signet 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 + diff --git a/doc/chantools_signpsbt.md b/doc/chantools_signpsbt.md new file mode 100644 index 0000000..f7fe39e --- /dev/null +++ b/doc/chantools_signpsbt.md @@ -0,0 +1,46 @@ +## chantools signpsbt + +Sign a Partially Signed Bitcoin Transaction (PSBT) + +### Synopsis + +Sign a PSBT with a master root key. The PSBT must contain +an input that is owned by the master root key. + +``` +chantools signpsbt [flags] +``` + +### Examples + +``` +chantools signpsbt \ + --psbt + +chantools signpsbt --fromrawpsbtfile +``` + +### Options + +``` + --bip39 read a classic BIP39 seed and passphrase from the terminal instead of asking for lnd seed format or providing the --rootkey flag + --fromrawpsbtfile string the file containing the raw, binary encoded PSBT packet to sign + -h, --help help for signpsbt + --psbt string Partially Signed Bitcoin Transaction to sign + --rootkey string BIP32 HD root key of the wallet to use for signing the PSBT; leave empty to prompt for lnd 24 word aezeed + --torawpsbtfile string the file to write the resulting signed raw, binary encoded PSBT packet to + --walletdb string read the seed/master root key to use fro signing the PSBT from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag +``` + +### Options inherited from parent commands + +``` + -r, --regtest Indicates if regtest parameters should be used + -s, --signet Indicates if the public signet 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 + diff --git a/doc/chantools_signrescuefunding.md b/doc/chantools_signrescuefunding.md index 7f46d9e..b6373f5 100644 --- a/doc/chantools_signrescuefunding.md +++ b/doc/chantools_signrescuefunding.md @@ -26,10 +26,11 @@ chantools signrescuefunding \ ### 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 signrescuefunding - --psbt string Partially Signed Bitcoin Transaction that was provided by the initiator of the channel to rescue - --rootkey string BIP32 HD root key of the wallet to use for deriving keys; leave empty to prompt for lnd 24 word aezeed + --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 signrescuefunding + --psbt string Partially Signed Bitcoin Transaction that was provided by the initiator of the channel to rescue + --rootkey string BIP32 HD root key of the wallet to use for deriving keys; leave empty to prompt for lnd 24 word aezeed + --walletdb string read the seed/master root key to use fro deriving keys from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_sweepremoteclosed.md b/doc/chantools_sweepremoteclosed.md index f254b19..f682a4a 100644 --- a/doc/chantools_sweepremoteclosed.md +++ b/doc/chantools_sweepremoteclosed.md @@ -41,6 +41,7 @@ chantools sweepremoteclosed \ --recoverywindow uint32 number of keys to scan per derivation path (default 200) --rootkey string BIP32 HD root key of the wallet to use for sweeping the wallet; leave empty to prompt for lnd 24 word aezeed --sweepaddr string address to recover the funds to; specify 'fromseed' to derive a new address from the seed automatically + --walletdb string read the seed/master root key to use fro sweeping the wallet from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_sweeptimelock.md b/doc/chantools_sweeptimelock.md index 5284585..a147518 100644 --- a/doc/chantools_sweeptimelock.md +++ b/doc/chantools_sweeptimelock.md @@ -41,6 +41,7 @@ chantools sweeptimelock \ --publish publish sweep TX to the chain API instead of just printing the TX --rootkey string BIP32 HD root key of the wallet to use for deriving keys; leave empty to prompt for lnd 24 word aezeed --sweepaddr string address to recover the funds to; specify 'fromseed' to derive a new address from the seed automatically + --walletdb string read the seed/master root key to use fro deriving keys from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_sweeptimelockmanual.md b/doc/chantools_sweeptimelockmanual.md index 7c5b9ff..1623193 100644 --- a/doc/chantools_sweeptimelockmanual.md +++ b/doc/chantools_sweeptimelockmanual.md @@ -63,6 +63,7 @@ chantools sweeptimelockmanual \ --rootkey string BIP32 HD root key of the wallet to use for deriving keys; leave empty to prompt for lnd 24 word aezeed --sweepaddr string address to recover the funds to; specify 'fromseed' to derive a new address from the seed automatically --timelockaddr string address of the time locked commitment output where the funds are stuck in + --walletdb string read the seed/master root key to use fro deriving keys from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_triggerforceclose.md b/doc/chantools_triggerforceclose.md index 6903a8a..c9672a2 100644 --- a/doc/chantools_triggerforceclose.md +++ b/doc/chantools_triggerforceclose.md @@ -31,6 +31,7 @@ chantools triggerforceclose \ -h, --help help for triggerforceclose --peer string remote peer address (@[:]) --rootkey string BIP32 HD root key of the wallet to use for deriving the identity key; leave empty to prompt for lnd 24 word aezeed + --walletdb string read the seed/master root key to use fro deriving the identity key from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_zombierecovery_makeoffer.md b/doc/chantools_zombierecovery_makeoffer.md index a8c2009..b9e9c1e 100644 --- a/doc/chantools_zombierecovery_makeoffer.md +++ b/doc/chantools_zombierecovery_makeoffer.md @@ -35,6 +35,7 @@ chantools zombierecovery makeoffer \ --node1_keys string the JSON file generated in theprevious step ('preparekeys') command of node 1 --node2_keys string the JSON file generated in theprevious step ('preparekeys') command of node 2 --rootkey string BIP32 HD root key of the wallet to use for signing the offer; leave empty to prompt for lnd 24 word aezeed + --walletdb string read the seed/master root key to use fro signing the offer from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_zombierecovery_preparekeys.md b/doc/chantools_zombierecovery_preparekeys.md index 085ac9c..6429e72 100644 --- a/doc/chantools_zombierecovery_preparekeys.md +++ b/doc/chantools_zombierecovery_preparekeys.md @@ -31,6 +31,7 @@ chantools zombierecovery preparekeys \ --num_keys uint32 the number of multisig keys to derive (default 2500) --payout_addr string the address where this node's rescued funds should be sent to, must be a P2WPKH (native SegWit) address --rootkey string BIP32 HD root key of the wallet to use for deriving the multisig keys; leave empty to prompt for lnd 24 word aezeed + --walletdb string read the seed/master root key to use fro deriving the multisig keys from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands diff --git a/doc/chantools_zombierecovery_signoffer.md b/doc/chantools_zombierecovery_signoffer.md index 309ebd7..7e4b1ce 100644 --- a/doc/chantools_zombierecovery_signoffer.md +++ b/doc/chantools_zombierecovery_signoffer.md @@ -21,10 +21,11 @@ chantools zombierecovery signoffer \ ### 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 signoffer - --psbt string the base64 encoded PSBT that the other party sent as an offer to rescue funds - --rootkey string BIP32 HD root key of the wallet to use for signing the offer; leave empty to prompt for lnd 24 word aezeed + --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 signoffer + --psbt string the base64 encoded PSBT that the other party sent as an offer to rescue funds + --rootkey string BIP32 HD root key of the wallet to use for signing the offer; leave empty to prompt for lnd 24 word aezeed + --walletdb string read the seed/master root key to use fro signing the offer from an lnd wallet.db file instead of asking for a seed or providing the --rootkey flag ``` ### Options inherited from parent commands