Result of POST /v2/pq/hybrid/keygen: a server-held X25519 + ML-KEM-768 key. The private halves stay on the server.
POST /v2/pq/hybrid/keygen
const { data } = await client.pqGenerateKeyPair();const keys: HybridKeyPair = data;console.log(keys.keyId, keys.x25519PublicKey, keys.mlKemPublicKey); Copy
const { data } = await client.pqGenerateKeyPair();const keys: HybridKeyPair = data;console.log(keys.keyId, keys.x25519PublicKey, keys.mlKemPublicKey);
Identifier of the server-held key; pass it to operations that use the key.
Algorithm of the key (e.g. "ed25519", "ml-dsa-65").
"ed25519"
"ml-dsa-65"
Hex-encoded X25519 public key.
Hex-encoded ML-KEM public (encapsulation) key.
Result of
POST /v2/pq/hybrid/keygen: a server-held X25519 + ML-KEM-768 key. The private halves stay on the server.Example