@epochcore/identity-sdk
v1.0.0
Published
World's First Universal Infrastructure Identity SDK - Ed25519 cryptographic identities for workers, databases, storage, and daemons
Maintainers
Readme
@epochcore/identity-sdk
World's First Universal Infrastructure Identity SDK
Generate Ed25519 cryptographic identities for workers, databases, storage buckets, durable objects, and daemons. Goes beyond ERC-8004 (agents only) to provide identity for your entire infrastructure.
Features
- Ed25519 Keypairs - Industry-standard elliptic curve cryptography
- secp256k1 Wallets - Ethereum/Base compatible wallet derivation
- DID Format -
did:epochcore:<type>:<name>:<fingerprint> - JWKS Support - OAuth2/OIDC integration ready
- Post-Quantum Ready - Prepared for NIST-5 algorithm upgrades
Installation
npm install @epochcore/identity-sdkQuick Start
import { generateIdentity, deriveWallet, signPayload } from '@epochcore/identity-sdk';
// Generate identity for a Cloudflare Worker
const { identity, privateKey } = await generateIdentity('worker', 'my-api-worker');
console.log(identity.did);
// did:epochcore:worker:my-api-worker:a1b2c3d4e5f6g7h8
// Derive Web3 wallet for on-chain operations
const wallet = deriveWallet(privateKey, identity.did);
console.log(wallet.address);
// 0x1234...abcd
// Sign a payload
const signed = await signPayload('{"action":"deploy"}', privateKey);Identity Types
| Type | Use Case |
|------|----------|
| worker | Cloudflare Workers, Lambda functions |
| database | D1, Postgres, SQLite databases |
| storage | R2 buckets, S3, blob storage |
| durable_object | Stateful edge objects |
| daemon | Local background processes |
JWKS Endpoint
Generate a JWKS for your infrastructure identities:
import { generateJWKS } from '@epochcore/identity-sdk';
const jwks = generateJWKS([identity1.publicKey, identity2.publicKey]);
// Serve at /.well-known/jwks.jsonFunded on Base Mainnet
Our production ecosystem has 130 identities with 44 wallets funded on Base L2.
TX: 0x88ac90f24c922ffd24b2553b2210de2b5d20d808a2e4367a4c011f26e2422270
License
MIT - EpochCore LLC
