Blockchain Commons Components TypeScript Library - v1.0.0-alpha.13
    Preparing search index...

    Interface ECKeyBase

    A base interface for all elliptic curve keys.

    This interface defines common functionality for all elliptic curve keys, including both private and public keys. It provides methods for key construction from binary data and hexadecimal strings, as well as conversion to hexadecimal format.

    All EC key types have a fixed size depending on their specific type:

    • EC private keys: 32 bytes
    • EC compressed public keys: 33 bytes
    • EC uncompressed public keys: 65 bytes
    • Schnorr public keys: 32 bytes
    interface ECKeyBase {
        data(): Uint8Array;
        hex(): string;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Methods

    Methods