Companion

object Companion

Properties

Link copied to clipboard
const val BLOB_SIZE: Int

Bytes in a full d‖X‖Y blob.

Link copied to clipboard
const val PRIVATE_SIZE: Int = 32

Bytes in the private scalar.

Link copied to clipboard
const val PUBLIC_SIZE: Int = 64

Bytes in the uncompressed public point.

Functions

Link copied to clipboard

A fresh key pair from the platform CSPRNG.

Link copied to clipboard
fun loads(data: ByteArray): EccKey

Load a key from a 32-byte private scalar or a 96-byte d‖X‖Y blob.

fun loads(base64: String): EccKey

Load a key from a Base64-encoded blob.