deriveSecretKey

external fun deriveSecretKey(derivation: ByteArray, outputIndex: Long, base: ByteArray, derivedKey: ByteArray)

Derives a secret key from a base key and a key derivation, and stores the result in the provided buffer.

Author

Marcus Cvjeticanin

Since

0.2.0

Parameters

derivation

the key derivation used in the secret key derivation.

outputIndex

the index of the output in the derivation path.

base

the base key used in the secret key derivation.

derivedKey

the buffer to store the derived secret key.