pamoja for TypeScript - v0.1.17
    Preparing search index...

    Function verifyMessage

    • Verifies a signed message and returns the payload it carries.

      Parameters

      • publicKey: Uint8Array

        The 32-byte public key of the claimed signer.

      • message: Uint8Array

        The signature followed by the payload, as signMessage wrote it.

      Returns Buffer<ArrayBufferLike> | null

      The payload if the message is authentic, and null if it is too short to hold a signature, was altered, or was signed by a different device.

      If the key is not the expected length.