Crypto SDK
    Preparing search index...

    Interface HybridKeyPair

    Result of POST /v2/pq/hybrid/keygen: a server-held X25519 + ML-KEM-768 key. The private halves stay on the server.

    const { data } = await client.pqGenerateKeyPair();
    const keys: HybridKeyPair = data;
    console.log(keys.keyId, keys.x25519PublicKey, keys.mlKemPublicKey);
    interface HybridKeyPair {
        keyId: string;
        algorithm: string;
        x25519PublicKey: string;
        mlKemPublicKey: string;
    }

    Hierarchy (View Summary)

    Index
    keyId: string

    Identifier of the server-held key; pass it to operations that use the key.

    algorithm: string

    Algorithm of the key (e.g. "ed25519", "ml-dsa-65").

    x25519PublicKey: string

    Hex-encoded X25519 public key.

    mlKemPublicKey: string

    Hex-encoded ML-KEM public (encapsulation) key.