corda / net.corda.core.crypto / entropyToKeyPair

entropyToKeyPair

fun entropyToKeyPair(entropy: BigInteger): KeyPair

Returns a key pair derived from the given private key entropy. This is useful for unit tests and other cases where you want hard-coded private keys.

Parameters

entropy - a BigInteger value.

Return
a deterministically generated KeyPair for the Crypto.DEFAULT_SIGNATURE_SCHEME.