lnd+signrescuefunding: use DeriveNonStandard to be compatible with lnd

pull/38/head
Oliver Gugger 2 years ago
parent a239f944d6
commit 2f5f081518
No known key found for this signature in database
GPG Key ID: 8E4256593F177720

@ -45,7 +45,7 @@ broadcast by any Bitcoin node.`,
) )
cc.rootKey = newRootKey(cc.cmd, "deriving keys") cc.rootKey = newRootKey(cc.cmd, "deriving keys")
return cc.cmd return cc.cmd
} }
@ -158,7 +158,7 @@ func findLocalMultisigKey(multisigBranch *hdkeychain.ExtendedKey,
// Loop through the local multisig keys to find the target key. // Loop through the local multisig keys to find the target key.
for index := uint32(0); index < MaxChannelLookup; index++ { for index := uint32(0); index < MaxChannelLookup; index++ {
currentKey, err := multisigBranch.Derive(index) currentKey, err := multisigBranch.DeriveNonStandard(index)
if err != nil { if err != nil {
return nil, fmt.Errorf("error deriving child key: %v", return nil, fmt.Errorf("error deriving child key: %v",
err) err)

@ -32,7 +32,7 @@ func DeriveChildren(key *hdkeychain.ExtendedKey, path []uint32) (
err error err error
) )
for _, pathPart := range path { for _, pathPart := range path {
currentKey, err = currentKey.Derive(pathPart) currentKey, err = currentKey.DeriveNonStandard(pathPart)
if err != nil { if err != nil {
return nil, err return nil, err
} }

Loading…
Cancel
Save