API reference for slhdsa/main
    Preparing search index...

    Interface SlhDsaVerifierInterface

    Interface for verification of SLH-DSA with the public key which the instance holds.

    Use one of the async factory functions, e.g. createSlhDsaShake128sVerifier, to create instances that implement this interface. An application which only verifies signatures does not bundle the code for signing.

    interface SlhDsaVerifierInterface {
        alg: string;
        verify(
            sig: Uint8Array,
            msg: Uint8Array,
            opts?: SlhDsaVerifyOptions,
        ): Promise<boolean>;
    }
    Index
    alg: string

    The name of the algorithm, which is the one of the parameter set: e.g. "SLH-DSA-SHAKE-128s". It is the name of the algorithm in the Web Cryptography API.