Blockchain Commons Components TypeScript Library - v1.0.0-alpha.13
    Preparing search index...

    Function mlkemDecapsulate

    • Decapsulate a shared secret using a private key and ciphertext.

      Parameters

      • level: MLKEMLevel

        The ML-KEM security level

      • secretKey: Uint8Array

        The secret key bytes

      • ciphertext: Uint8Array

        The ciphertext bytes

      Returns Uint8Array

      The shared secret bytes