Skip to content

Commit

Permalink
Delete unused split derivation path method
Browse files Browse the repository at this point in the history
In #143 this function became unused.
  • Loading branch information
alecchendev committed Dec 16, 2024
1 parent c366102 commit dd238d6
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions remotesigning/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,26 +194,6 @@ func ValidateScript(signing *SigningJob, publicKey *secp256k1.PublicKey) (bool,
return true, nil
}

func SplitDerivationPath(path string) (hardenedPath []uint32, remainingPath []uint32, err error) {
derivationPath, err := DerivationPathFromString(path)
if err != nil {
return nil, nil, err
}

hardenedPath = make([]uint32, 0)
remainingPath = make([]uint32, 0)

for _, component := range derivationPath {
if component >= 0x80000000 {
hardenedPath = append(hardenedPath, component)
} else {
remainingPath = append(remainingPath, component)
}
}

return hardenedPath, remainingPath, nil
}

func GenerateP2WPKHFromPubkey(child_pubkey []byte) ([]byte, error) {
pkHash := btcutil.Hash160(child_pubkey)
// Create P2WPKH script: OP_0 <20-byte-key-hash>
Expand Down

0 comments on commit dd238d6

Please sign in to comment.