Crypto SDK
    Preparing search index...

    Interface KeyGenerateResult

    Result of POST /v2/keys/generate: the key's identifier and public key. The private key stays on the server.

    const { data } = await client.generateKeyPair({ algorithm: 'ed25519' });
    const result: KeyGenerateResult = data;
    await client.sign({ keyId: result.keyId, message: 'hello' });
    interface KeyGenerateResult {
        keyId: string;
        algorithm: string;
        publicKey: string;
        kid: string;
        metadata: KeyMetadata;
    }

    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").

    publicKey: string

    Hex-encoded public key.

    kid: string

    Key ID recorded in the metadata (SHA-256 thumbprint unless one was given).

    metadata: KeyMetadata

    Metadata recorded with the key.