COMPRESSED_KEY_SIZE

const val COMPRESSED_KEY_SIZE: Int = 33

The byte size of a compressed public key.

A compressed public key in elliptic curve cryptography typically consists of:

  • A single byte prefix: 0x02 or 0x03, indicating whether the Y coordinate is even or odd, respectively

  • 32 bytes representing the X coordinate Thus, a compressed public key is 33 bytes in size.

Example of use: This constant can be utilized for validating the length of a byte array supposed to represent a compressed public key, ensuring it conforms to the expected format.