RootKeystring`long:"rootkey" description:"BIP32 HD root key of the wallet that was used to create the backup."`
RootKeystring`long:"rootkey" description:"BIP32 HD root key of the wallet that was used to create the backup. Leave empty to prompt for lnd 24 word aezeed."`
MultiFilestring`long:"multi_file" description:"The lnd channel.backup file to dump."`
MultiFilestring`long:"multi_file" description:"The lnd channel.backup file to dump."`
}
}
func(c*dumpBackupCommand)Execute(_[]string)error{
func(c*dumpBackupCommand)Execute(_[]string)error{
setupChainParams(cfg)
setupChainParams(cfg)
// Check that root key is valid.
var(
ifc.RootKey==""{
extendedKey*hdkeychain.ExtendedKey
returnfmt.Errorf("root key is required")
errerror
)
// Check that root key is valid or fall back to console input.