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

    Interface SlhDsaSignerInterface

    Interface for signing of SLH-DSA with the private key which the instance holds.

    Use one of the async factory functions, e.g. createSlhDsaShake128sSigner, to create instances that implement this interface.

    interface SlhDsaSignerInterface {
        alg: string;
        destroy(): void;
        sign(
            msg: Uint8Array,
            opts?: SlhDsaSignOptions,
        ): Promise<Uint8Array<ArrayBufferLike>>;
    }
    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.