Crypto SDK
    Preparing search index...

    Interface HybridEncapsulateResult

    Result of a hybrid KEM encapsulation operation.

    const { data } = await client.pqEncapsulate({
    x25519PublicKey: keys.x25519PublicKey,
    mlKemPublicKey: keys.mlKemPublicKey,
    });
    const result: HybridEncapsulateResult = data;
    console.log(result.sharedSecret, result.mlKemCiphertext);
    interface HybridEncapsulateResult {
        x25519EphemeralPublic: string;
        mlKemCiphertext: string;
        sharedSecret: string;
        algorithm: string;
    }
    Index
    x25519EphemeralPublic: string

    Hex-encoded ephemeral X25519 public key.

    mlKemCiphertext: string

    Hex-encoded ML-KEM ciphertext.

    sharedSecret: string

    Hex-encoded combined shared secret.

    algorithm: string

    Hybrid KEM algorithm identifier.