enclave-sdk-0g
v1.0.3
Published
Confidential agent-logic execution primitive on 0G Labs
Maintainers
Readme
enclave-sdk-0g
Confidential agent-logic execution primitive on 0G Labs.
Install
npm install enclave-sdk-0gUsage
import { Enclave } from 'enclave-sdk-0g';
const client = new Enclave({
privateKey: process.env.PRIVATE_KEY,
network: 'mainnet'
});
const result = await client.protect(myAgentLogic, { shards: 3 });
const proof = await client.verify(result.agentId);What it does
ENCLAVE splits your TypeScript agent logic into encrypted semantic shards using an AST parser, executes each shard in a separate TeeML hardware enclave on 0G Compute, uploads to 0G Storage, and records every step on 0G Chain.
Links
- GitHub: https://github.com/Web3smallie/enclave
- Dashboard: https://enclave-roan.vercel.app
