Result of a key generation operation.
const { data } = await client.generateKeyPair({ algorithm: 'ed25519' });const result: KeyGenerateResult = data;console.log(result.publicKey, result.privateKey, result.kid); Copy
const { data } = await client.generateKeyPair({ algorithm: 'ed25519' });const result: KeyGenerateResult = data;console.log(result.publicKey, result.privateKey, result.kid);
Hex-encoded public key.
Hex-encoded private key.
Key algorithm (e.g. "ed25519").
"ed25519"
Unique key identifier.
Result of a key generation operation.
Example