@hashgraph/sdk
    Preparing search index...

    Class PublicKeyNamespace

    proto

    Hierarchy (View Summary)

    Index

    Properties

    _key: PublicKey

    Accessors

    Methods

    • Parameters

      • signature: Uint8Array<ArrayBufferLike>

      Returns ISignaturePair

    • Returns Uint8Array<ArrayBufferLike>

    • Returns Uint8Array<ArrayBufferLike>

    • Returns Uint8Array<ArrayBufferLike>

    • Returns string

      Use toEvmAddress() instead.

    • Verify a signature on a message with this public key.

      Parameters

      • message: Uint8Array<ArrayBufferLike>
      • signature: Uint8Array<ArrayBufferLike>

      Returns boolean

    • Parse a public key from a string of hexadecimal digits.

      The public key may optionally be prefixed with the DER header.

      Parameters

      • text: string

      Returns PublicKey

    • Returns an "unusable" public key. “Unusable” refers to a key such as an Ed25519 0x00000... public key, since it is (presumably) impossible to find the 32-byte string whose SHA-512 hash begins with 32 bytes of zeros.

      Returns PublicKey