Companion

object Companion

Properties

Link copied to clipboard
const val ENCODED_SIZE: Int = 65

Length of encoded: one tag byte and two 32-byte coordinates.

Functions

Link copied to clipboard
suspend fun decode(encoded: ByteArray): SealPublicKey

Reads a key from its encoded form. Throws IllegalArgumentException when the bytes are not a point on P-256 in uncompressed form, and IllegalStateException when the platform provider cannot run at all.