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

    Function verify

    • Verifies that a signature covers a payload and was made by a public key.

      Parameters

      • publicKey: Uint8Array

        The 32-byte public key of the claimed signer.

      • payload: Payload

        The bytes the signature should cover.

      • signature: Uint8Array

        The 64-byte detached signature.

      Returns boolean

      true if the signature is authentic, and false if the payload was altered or was signed by a different device.

      If an argument is not the expected length.