@blockchaincommons/components - v1.0.0-beta.4
    Preparing search index...

    Class ECUncompressedPublicKey

    EC uncompressed public key for ECDSA (secp256k1, 65 bytes)

    An ECUncompressedPublicKey is 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

    ECUncompressedPublicKey is serialized to CBOR with tags 40306 (or legacy 306).

    The format is a map:

    #6.40306({
    3: h'<65-byte-uncompressed-public-key>' // key data
    })

    Implements

    Index
    KEY_SIZE: number = ecdsa.UNCOMPRESSED_PUBLIC_KEY_SIZE

    The byte length of a ECUncompressedPublicKey.

    • Convert to compressed public key format. Note: Returns the compressed bytes. To get ECPublicKey, use the ec-public-key module.

      Returns Uint8Array

    • 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 Tag[]