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

    Class MLKEMPublicKey

    MLKEMPublicKey - Post-quantum key encapsulation public key using ML-KEM.

    Implements

    • ToCbor
    • ToUR
    Index
    • Encapsulate a new shared secret.

      This creates a random shared secret and encapsulates it, returning both the shared secret (to be used as a symmetric key) and the ciphertext (to be sent to the private key holder for decapsulation).

      Parameters

      • __namedParameters: RngOptions = {}

      Returns MLKEMEncapsulationPair

      Object containing sharedSecret and ciphertext

    • The first four bytes of reference() in hex, the reference's ref_hex_short.

      Returns string