createPrivateKey

open override fun createPrivateKey(properties: Map<String, Any>): PrivateKey(source)

Creates a private key based on the provided properties.

Return

The created private key.

Parameters

properties

The map of properties used to create the private key. The properties should include the following keys: - Type: The type of the key (e.g., "EC", "Curve25519"). - Curve: The curve of the key (e.g., "ED25519", "SECP256K1", "X25519"). - RawKey: The raw key data (optional). - Seed: The seed used to derive the key (optional). - DerivationPath: The derivation path used to derive the key (optional, required if seed is provided). - Index: The index used in the derivation path (optional, required if seed is provided).

Throws

If the provided properties are invalid or insufficient to create the key.

If the provided key type is invalid or not supported.

If the provided key curve is invalid or not supported.

If the provided raw key data is invalid.