createPublicKey

abstract fun createPublicKey(properties: Map<String, Any>): PublicKey(source)

Creates a public key using the provided properties.

Return

A PrivateKey object representing the created private key.

Parameters

properties

A map containing the properties of the public key. The supported properties are: - "type": The type of the private key. Use KeyTypes.EC for elliptic curve keys. - "raw": The raw data used. - "curve": The key curve. Use Curve.SECP256K1 for secp256k1 curve.