@blockchaincommons/components - v1.0.0-beta.4
    Preparing search index...

    Function mldsaSign

    ML-DSA Module - Post-Quantum Digital Signatures

    This module provides ML-DSA (Module-Lattice-Based Digital Signature Algorithm) implementation for post-quantum cryptographic signatures.

    ML-DSA is standardized by NIST as part of FIPS 204.

    Security levels:

    • MLDSA44: NIST Level 2 (AES-128 equivalent)
    • MLDSA65: NIST Level 3 (AES-192 equivalent)
    • MLDSA87: NIST Level 5 (AES-256 equivalent)
    • Sign a message using ML-DSA.

      Parameters

      • level: MLDSALevel

        The ML-DSA security level

      • secretKey: Uint8Array

        The secret key bytes

      • message: Uint8Array

        The message to sign

      Returns Uint8Array

      The signature bytes