diff --git a/cmd/chantools/signrescuefunding.go b/cmd/chantools/signrescuefunding.go index 4c0db5c..09c47b9 100644 --- a/cmd/chantools/signrescuefunding.go +++ b/cmd/chantools/signrescuefunding.go @@ -45,7 +45,7 @@ broadcast by any Bitcoin node.`, ) cc.rootKey = newRootKey(cc.cmd, "deriving keys") - + return cc.cmd } @@ -158,7 +158,7 @@ func findLocalMultisigKey(multisigBranch *hdkeychain.ExtendedKey, // Loop through the local multisig keys to find the target key. for index := uint32(0); index < MaxChannelLookup; index++ { - currentKey, err := multisigBranch.Derive(index) + currentKey, err := multisigBranch.DeriveNonStandard(index) if err != nil { return nil, fmt.Errorf("error deriving child key: %v", err) diff --git a/lnd/hdkeychain.go b/lnd/hdkeychain.go index 96a7633..330ff29 100644 --- a/lnd/hdkeychain.go +++ b/lnd/hdkeychain.go @@ -32,7 +32,7 @@ func DeriveChildren(key *hdkeychain.ExtendedKey, path []uint32) ( err error ) for _, pathPart := range path { - currentKey, err = currentKey.Derive(pathPart) + currentKey, err = currentKey.DeriveNonStandard(pathPart) if err != nil { return nil, err }