PKI-Lite - v1.0.8
    Preparing search index...

    Represents an EC key. The structure follows X9.62 format.

    ASN.1 Structure:

    ECPublicKey ::= BIT STRING
    

    Note: ECPublicKey is typically used within a SubjectPublicKeyInfo structure where it appears as the BIT STRING component of the key. The actual encoding is the uncompressed point format: 0x04 || x || y where 0x04 indicates uncompressed format, followed by the x and y coordinates.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    bytes: Uint8Array<ArrayBuffer>

    The bytes representing this bit string.

    Accessors

    • get pemHeader(): string

      Gets the PEM header name for this object type. Converts the class name to uppercase for use in PEM encoding.

      Returns string

    • get pkiType(): string

      Gets the PKI type name for this object (typically the class name). Used for PEM headers and debugging output.

      Returns string

    Methods

    • Compares this PKI object with another for equality. Two objects are considered equal if their DER encodings are identical.

      Parameters

      • other: PkiBase<any>

        The other PKI object to compare with

      Returns boolean

      true if the objects are equal, false otherwise

    • Extracts the X and Y coordinates from the key

      Returns { x: Uint8Array<ArrayBuffer>; y: Uint8Array<ArrayBuffer> }

      An object containing the X and Y coordinates

    • Returns a human-readable string representation of this object. By default, returns the same as toString(), but subclasses can override for more user-friendly output.

      Returns string

      A human-readable string representation

    • Creates an ECPublicKey from the X and Y coordinates of the point

      Parameters

      • x: Uint8Array<ArrayBuffer>

        The X coordinate of the point

      • y: Uint8Array<ArrayBuffer>

        The Y coordinate of the point

      Returns ECPublicKey

      An ECPublicKey object