create Public Key
Creates a private key based on the provided properties.
Return
The created private key.
Parameters
A map of properties used to create the private key. The map should contain the following keys: - "type" (String): The type of the key ("EC" or "Curve25519"). - "curve" (String): The curve of the key. - "curvePointX" (String): The x point of the compressed key. - "curvePointY" (String): The y point of the compressed key. - "rawKey" (ByteArray): The raw key data (optional). - "index" (Int): The index for the key (only applicable for EC keys with curve "secp256k1"). - "derivationPath" (String): The derivation path for the key (only applicable for EC keys with curve "secp256k1").
Throws
If the provided key type is invalid.
If the provided key curve is invalid.
If the provided raw key data is invalid.
If the provided index is invalid.
If the provided derivation path is invalid.