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

    Function createSlhDsaShake192sVerifier

    • Creates an SLH-DSA-SHAKE-192s (NIST security category 3, small signatures) verifier which holds a public key.

      An application which uses only this does not bundle the code for key generation and signing.

      Parameters

      Returns Promise<SlhDsaVerifierInterface>

      A promise that resolves to an SlhDsaVerifierInterface instance.

      import { createSlhDsaShake192sVerifier } from "@webpqc/slhdsa";

      async function verify(pk: Uint8Array, sig: Uint8Array, msg: Uint8Array) {
      const verifier = await createSlhDsaShake192sVerifier(pk);
      return await verifier.verify(sig, msg);
      }