Monorepo for SKALE Programmable Privacy tooling — encrypted ERC-20 transfers with on-chain confidential computation.
| Package | Version | Description |
|---|---|---|
@skalenetwork/privacy-sdk |
TypeScript SDK — core classes and actions | |
@skalenetwork/privacy-mcp |
MCP server — AI agent integration via Model Context Protocol |
SKALE stores token balances and transfer amounts encrypted on-chain. A Conditional Transaction (CTX) lets smart contracts decrypt data on demand — only when specific conditions are met — with the result delivered in a callback one block later.
Block N: Your tx → submitCTX(encryptedArgs)
Block N+1: Ephemeral wallet → onDecrypt(decryptedArgs) → balances updated
The SDK abstracts this two-block lifecycle. The MCP server exposes it as intent-based tools that AI agents can call directly.
packages/
├── sdk/ @skalenetwork/privacy-sdk — core TypeScript SDK
└── mcp/ @skalenetwork/privacy-mcp — MCP server for AI agents
docs/ Shared concepts, architecture, and API reference
# Install all workspace dependencies
pnpm install
# Build all packages
pnpm build
# Test all packages
pnpm test
# Build a single package
pnpm --filter @skalenetwork/privacy-sdk build
pnpm --filter @skalenetwork/privacy-mcp build- Concepts — CTX lifecycle, viewer keys, CtxPromise
- Architecture — three-layer SDK design
- API Reference — full method and type reference