Skip to main content

Keysets

Ed25519 signing key pair management. Keysets enable cryptographic signing and verification of assets and events using EdDSA (Ed25519) public-key cryptography.

Methods​

Method (TypeScript)Method (Python)DescriptionHTTP
create(options?)create(options=None)Generate new Ed25519 key pairPOST /keysets
get(keysetId)get(keyset_id)Retrieve keysetGET /keysets/{id}
list(options?)list(options=None)List keysetsGET /keysets
delete(keysetId)delete(keyset_id)Delete keysetDELETE /keysets/{id}

Example​

import { OptropicClient } from 'optropic';

const client = new OptropicClient({ apiKey: 'optr_live_...' });

// Create a new signing keyset
const keyset = await client.keysets.create({
name: 'Manufacturing Authority',
description: 'Primary signing key for factory operations'
});

console.log(`Public Key: ${keyset.publicKey}`);
console.log(`Keyset ID: ${keyset.id}`);

// The private key is returned only once - store it securely