clientPublicKey

abstract suspend fun clientPublicKey(ciphersuite: Ciphersuite, credentialType: CredentialType): ByteArray(source)

Gets the public key from a crate::Credential which has been added to this client.

The ciphersuite and credential type act as filters.

If there exist multiple credentials which match these filters, this returns the one with the latest earliest_validity.

See core_crypto::transaction_context::TransactionContext::client_public_key