@wharfkit/session - v4.0.1
    Preparing search index...

    Class PublicKey

    Interface that should be implemented by ABI serializable objects.

    Implements

    Index
    data: Bytes

    Compressed public key point.

    type: KeyType

    Type, e.g. K1

    abiName: string
    • Compare with another key using the ordering nodeos enforces on authority keys.

      Parameters

      Returns number

    • Returns the core 33-byte compressed public key data as a Uint8Array. This is suitable for cryptographic operations like verification.

      Returns Uint8Array

    • Return Antelope/EOSIO legacy (EOS<base58data>) formatted key.

      Parameters

      • Optionalprefix: string

      Returns string

      If the key type isn't K1

    • Return key in modern Antelope/EOSIO format (PUB_<type>_<base58data>)

      Returns string