Skip to content

Commit

Permalink
lnd+signrescuefunding: use DeriveNonStandard to be compatible with lnd
Browse files Browse the repository at this point in the history
  • Loading branch information
guggero committed Dec 20, 2021
1 parent a239f94 commit 2f5f081
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/chantools/signrescuefunding.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ broadcast by any Bitcoin node.`,
)

cc.rootKey = newRootKey(cc.cmd, "deriving keys")

return cc.cmd
}

Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lnd/hdkeychain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2f5f081

Please sign in to comment.