Static ReadonlyKEY_The byte length of a ECUncompressedPublicKey.
A copy of the bytes; mutating it does not touch this value.
StaticfromRestore an ECUncompressedPublicKey from a fixed-size array of bytes.
StaticfromRestore an ECUncompressedPublicKey from a hex string.
Get hex string representation.
Get base64 representation.
Convert to compressed public key format. Note: Returns the compressed bytes. To get ECPublicKey, use the ec-public-key module.
Compare with another ECUncompressedPublicKey.
The reference: the digest of the tagged CBOR, as the reference computes it.
The first four bytes of reference() in hex, the reference's ref_hex_short.
The reference's Display: the type name over the short reference.
The CBOR tags of this type; the first one is used to encode. As the
reference, this type is only encoded: it has no fromCbor.
Returns the untagged CBOR encoding.
Format: { 3: h'<65-byte-key>' }
The tagged CBOR form.
As a UR, typed by the first tag's name.
EC uncompressed public key for ECDSA (secp256k1, 65 bytes)
An
ECUncompressedPublicKeyis a 65-byte uncompressed representation of a public key on the secp256k1 curve. The first byte is 0x04 (uncompressed prefix), followed by the 32-byte x-coordinate and 32-byte y-coordinate.While compressed public keys (33 bytes) are preferred for space efficiency, uncompressed keys are sometimes needed for compatibility with legacy systems.
CBOR Serialization
ECUncompressedPublicKeyis serialized to CBOR with tags 40306 (or legacy 306).The format is a map: