Crypto SDK
    Preparing search index...

    Interface KeyGenerateResult

    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);
    interface KeyGenerateResult {
        publicKey: string;
        privateKey: string;
        algorithm: string;
        kid: string;
    }
    Index
    publicKey: string

    Hex-encoded public key.

    privateKey: string

    Hex-encoded private key.

    algorithm: string

    Key algorithm (e.g. "ed25519").

    kid: string

    Unique key identifier.