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

    Function verifyStream

    • Verify the signature of the input stream.

      Parameters

      • algo:
            | "sha1"
            | "sha224"
            | "sha256"
            | "sha3-224"
            | "sha3-256"
            | "sha3-384"
            | "sha3-512"
            | "sha384"
            | "sha512"

        The digest/hash algorithm to be used.

      • publicKey: string | Buffer<ArrayBufferLike> | KeyObject

        The public key to verify the signature.

      • message: Readable

        The input stream to be verified.

      • signature: Buffer

        The signature of the input stream.

      • Optionalopts: IEcdsaOptions

        The options for verification.

      Returns Promise<boolean>

      Return a promise that resolves to true if the signature is valid, otherwise false.