PrivateKey

An ECDSA private key that provides signature generation via signatureGenerator.

Functions

Link copied to clipboard

Encodes this material into a ByteArray in the specified format.

Link copied to clipboard

Encodes this material into a ByteArray in the specified format.

Link copied to clipboard

Encodes this material into a ByteString in the specified format.

Link copied to clipboard

Encodes this material into a ByteString in the specified format.

Link copied to clipboard
open suspend fun getPublicKey(): ECDSA.PublicKey

Returns the associated public key.

Link copied to clipboard

Returns the associated public key.

Link copied to clipboard

Returns a SignatureGenerator that generates signatures using the specified digest and format. Pass null for digest when signing pre-hashed data.