Opacus Modules

Complete overview of all production and development modules in the Opacus ecosystem

Core Protocol v1.0.5 - PRODUCTION

Foundation cryptographic and networking primitives for secure agent communication

Cryptography

  • Ed25519 + X25519 Cryptography - Signing and encryption keys for secure agent identities
  • ECDH Key Exchange - Secure shared secret derivation between agents
  • Nonce-based Anti-Replay - Protection against replay attacks with monotonic nonces

Data Encoding

  • CBOR Binary Framing - Efficient serialization format for message encoding

Transport Layer

  • WebSocket Support - Real-time bidirectional communication
  • WebTransport Support - Opacus Nitro based modern transport with lower latency
import { OpacusClient } from 'opacus-sdk'; const client = new OpacusClient({ transport: 'websocket', // or 'webtransport' encryption: true, antiReplay: true }); // Send encrypted message await client.send({ to: 'did:opacus:h3:8c2a1072b181fff:0x123...', payload: { type: 'request', data: 'example' } });

H3-DAC Agent Identity v1.0.5 - PRODUCTION

Blockchain-verified agent identities with geospatial indexing and reputation system

Identity & Discovery

  • H3 Geospatial Indexing - Location-based agent discovery using Uber's H3 hexagonal grid system
  • On-Chain Agent Registry - Blockchain-verified agent identities on 0G Chain
  • DID Standard - Decentralized identifiers: did:opacus:h3:<h3Index>:<address>
  • Capability Discovery - Search agents by skills, abilities, and service types

Security & Authentication

  • Challenge/Response Auth - Mutual agent authentication protocol with cryptographic proof
  • Key Rotation - Secure key management with 24-hour cooldown period

Trust System

  • Reputation System - Trust scoring from 0-100 based on successful interactions
import { H3AgentIdentity, AgentRegistry } from 'opacus-sdk'; import { ethers } from 'ethers'; const signer = new ethers.Wallet( process.env.PRIVATE_KEY!, new ethers.JsonRpcProvider('https://evmrpc.0g.ai') ); const identity = await H3AgentIdentity.create(signer, '8c2a1072b181fff', { name: 'TradingBot Alpha', description: 'Market-making agent', capabilities: ['trading', 'data-analysis', 'market-making'], endpoint: 'wss://agent.example.com', h3Resolution: 9 }); console.log('Agent DID:', identity.did); const registry = new AgentRegistry(process.env.AGENT_REGISTRY_ADDRESS!, signer); const { agentId } = await registry.registerAgent(identity.h3Index, { name: identity.metadata.name, description: identity.metadata.description, capabilities: identity.metadata.capabilities, endpoint: identity.metadata.endpoint }); const tradingAgentIds = await registry.findByCapability('trading'); console.log('Registered agent:', agentId); console.log(`Found ${tradingAgentIds.length} trading agents in the registry`);

Blockchain & Payments v1.0.5 - PRODUCTION

Multi-chain support with integrated payment infrastructure and Citadel Mint

Chain Integration

  • 0G Chain Integration - Native support for 0G network with 50+ GB/s throughput
  • Multi-Chain Ready - EVM-compatible chain support (Ethereum, Base, Polygon, Arbitrum, etc.)

Data Channels (DAC)

  • DAC Management - Data Access Consortium creation and subscription management
  • Micropayment Escrow - Built-in payment support with stake requirements

Citadel Mint Payment System

  • HTTP Payment Protocol - Pay-per-request API calls with X-402 standard
  • Gasless Transactions - Relayer-sponsored payments for better UX
  • Micropayment Support - As low as $0.000001 per request with ZK batching
import { OGChainClient, SecurityManager, DACManager, OpacusPaymentManager } from 'opacus-sdk'; const chainClient = new OGChainClient({ network: 'mainnet', chainRpc: 'https://evmrpc.0g.ai', privateKey: process.env.PRIVATE_KEY }); const security = new SecurityManager(); // Initialize on-chain contracts before calling createDAC(...) const dacManager = new DACManager(chainClient, security); const payments = new OpacusPaymentManager(chainClient, security); await payments.init(process.env.USDC_ADDRESS!); const paymentRequest = payments.createPaymentRequest( process.env.PAYER_ADDRESS!, process.env.MERCHANT_WALLET!, '0.000001', 'Premium market data request' ); const receipt = await payments.payForRequest(paymentRequest); console.log('Payment tx:', receipt.txHash);

Advanced Performance Modules Q1 2026 - IN DEVELOPMENT

Next-generation performance primitives currently in active development

Network Optimization

  • Kinetic Streams Kernel Bypass (eBPF) - Sub-100Ξs latency with XDP packet processing and zero-copy I/O
  • Intent DAG Streams - Directed acyclic graph for agent intent propagation and ordering

Cryptographic Acceleration

  • BLS Signature Streaming - Aggregatable signatures with 1000:1 compression ratio
  • GPU-Accelerated Verification - 100,000+ signatures/second batch verification using CUDA

State & Consensus

  • CRDT State Management - Conflict-free replicated data types for distributed agent state

Zero-Knowledge

  • zkOracle Pricing - Privacy-preserving price feeds with zk-SNARKs (hides intent from mempool)
// Coming in Q1 2026 import { KernelBypassQUICTransport, StreamingAggregator, GPUSignatureVerifier, CRDTStateManager, zkOracle, IntentDAGSDK } from 'opacus-sdk'; const transport = new KernelBypassQUICTransport({ interface: 'eth0', fastPath: true, zeroCopy: true }); const aggregator = new StreamingAggregator(); const verifier = new GPUSignatureVerifier(); const state = new CRDTStateManager('agent-node-1'); const oracle = zkOracle; const dag = new IntentDAGSDK(); dag.init({ validators: ['node-a', 'node-b', 'node-c'] }); dag.start(); const intentId = await dag.submit({ type: 'swap', assetIn: 'USDC', assetOut: 'OG', amountIn: 1000000n, chainId: 16661 }); console.log('Intent submitted:', intentId);

Complete Module Integration

Example of combining all production modules for a fully-featured autonomous agent

import { H3AgentIdentity, AgentRegistry, OGChainClient, SecurityManager, DACManager, OpacusPaymentManager } from 'opacus-sdk'; import { ethers } from 'ethers'; const signer = new ethers.Wallet( process.env.PRIVATE_KEY!, new ethers.JsonRpcProvider('https://evmrpc.0g.ai') ); const chainClient = new OGChainClient({ network: 'mainnet', chainRpc: 'https://evmrpc.0g.ai', privateKey: process.env.PRIVATE_KEY }); const security = new SecurityManager(); const identity = await H3AgentIdentity.create(signer, '8c2a1072b181fff', { name: 'Advanced Trading Agent', description: 'Autonomous market data consumer', capabilities: ['trading', 'market-making', 'analytics'], endpoint: 'wss://agent.trading.ai', h3Resolution: 9 }); const registry = new AgentRegistry(process.env.AGENT_REGISTRY_ADDRESS!, signer); const { agentId } = await registry.registerAgent(identity.h3Index, { name: identity.metadata.name, description: identity.metadata.description, capabilities: identity.metadata.capabilities, endpoint: identity.metadata.endpoint }); const dataProviderIds = await registry.findByCapability('data-provider'); console.log(`Found ${dataProviderIds.length} trusted data providers`); const dacManager = new DACManager(chainClient, security); const payments = new OpacusPaymentManager(chainClient, security); await payments.init(process.env.USDC_ADDRESS!); const paymentRequest = payments.createPaymentRequest( process.env.PAYER_ADDRESS!, process.env.MERCHANT_WALLET!, '0.00001', 'Real-time market data subscription' ); const receipt = await payments.payForRequest(paymentRequest); console.log('Registered agent:', agentId); console.log('Payment tx:', receipt.txHash); console.log('Peer reputation:', authResult.reputation);

Version History & Roadmap

v1.0.5 (Current - November 2025)

  • Package renamed to opacus-sdk
  • Enhanced Citadel Mint integration
  • Improved H3-DAC documentation
  • Bug fixes and performance improvements

v1.0.3 (November 2025)

  • H3-DAC Agent Identity system launch
  • Geospatial agent discovery with H3 indexing
  • On-chain agent registry on 0G Chain
  • Reputation scoring (0-100)
  • Citadel Mint micropayment protocol
  • Gasless transaction support
  • Challenge/Response authentication
  • Key rotation with cooldown

v1.0.0 (September 2025)

  • Core protocol launch
  • Ed25519 + X25519 cryptography
  • ECDH key exchange
  • Nonce-based anti-replay protection
  • CBOR binary framing
  • WebSocket & WebTransport support
  • 0G Chain integration
  • Multi-chain EVM support
  • DAC management system

Roadmap (Q1-Q2 2026)

  • Q1 2026 🚧 IN PROGRESS:
    • Kinetic Streams kernel bypass with eBPF/XDP
    • BLS signature streaming
    • GPU-accelerated verification (CUDA)
    • CRDT state management
    • Intent DAG streams
    • zkOracle privacy-preserving pricing
  • Q2 2026 📋 PLANNED:
    • Multi-GPU verification cluster
    • DAG mempool optimization
    • Agent marketplace launch
    • Enterprise key vault integration
    • Developer grant program

📚 Additional Resources

NPM Package: opacus-sdk v1.0.5
Installation: npm install opacus-sdk
GitHub: Opacus-xyz/Opacus
Documentation: Getting Started | Code Examples | API Reference
Community: Discord | Twitter

Module Quick Reference

Direct links to specific module documentation

Core Protocol

Cryptography, Transport, CBOR

Learn More →

H3-DAC Identity

Agent Registry, Discovery, DID

Learn More →

Payments

Citadel Mint, DAC, Micropayments

Learn More →

Advanced Features

Opacus Nitro, BLS, GPU, CRDT, zkOracle

Q1 2026 Roadmap →