getPublicKey

abstract fun getPublicKey(keyAlias: String): Jwk

Retrieves the public key associated with a previously stored private key, identified by the provided alias.

Return

The associated public key in Jwk (JSON Web Key) format.

The function should provide the public key in a format suitable for external sharing and usage, enabling others to perform operations like verifying signatures or encrypting data for the private key holder.

Parameters

keyAlias

The alias referencing the stored private key.