Documents for @litert/signatures
    Preparing search index...

    Function verify

    • Verify the signature of the data with the given key.

      Parameters

      • key: string | Buffer<ArrayBufferLike> | KeyObject

        The key to verify the signature with, can be a string, Buffer, or KeyObject.

      • data: string | Buffer<ArrayBufferLike>

        The data to be verified, can be a string or Buffer.

      • signature: Buffer

        The signature of the data to be verified, must be a Buffer.

      Returns boolean

      true if the signature is valid, false otherwise.