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

    Function verifyMessage

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

      Returns null when the message is too short to hold a signature, was altered, or was signed by a different device, and throws only when the key is the wrong length.

      Parameters

      • publicKey: Buffer
      • message: Buffer

      Returns Buffer<ArrayBufferLike> | null