derivePrivateKeyFromPrivateKey

fun derivePrivateKeyFromPrivateKey(privkey: String, derivationPath: Array<String>, isPrivateKeyRaw: Boolean): Sr25519KeyPair

Derives a private key from a private key.

Performs soft sr25519 private key derivation.

Return

The derived private key as a hex string

Parameters

privkey

A valid sr25519 private key (either from exportFullPrivateKey or imported)

derivationPath

The soft derivation path to use for computing the private key

isPrivateKeyRaw

Set to true if it's a raw (scalar) private key. Set to false the pre-image of the MiniSecret for sr25519 keys