ZAP - High-Performance
Agent Communication
Cap'n Proto RPC protocol designed for AI agent ecosystems. Zero-copy serialization, post-quantum security, and native support for 11 programming languages.
interface Zap {
init @0 (client :ClientInfo) -> (server :ServerInfo);
listTools @1 () -> (tools :ToolList);
callTool @2 (call :ToolCall) -> (result :ToolResult);
listResources @3 () -> (resources :ResourceList);
readResource @4 (uri :Text) -> (content :ResourceContent);
}ZAP brings zero-copy performance to AI agent communication with MCP compatibility and post-quantum security built-in.
Why ZAP over MCP?
- 10-100x faster than JSON-RPC serialization
- Zero-copy message passing with shared memory
- Post-quantum ML-KEM/ML-DSA cryptography
- Threshold signing with Ringtail consensus
- W3C DID native identity support
MCP Gateway
Full backward compatibility with existing MCP servers through the Gateway interface. Bridge stdio, HTTP, WebSocket, and Unix socket transports.
interface Gateway extends(Zap) {
addServer @0 (name :Text, url :Text,
config :ServerConfig) -> (id :Text);
listServers @2 () -> (servers :List(ConnectedServer));
}Post-Quantum Security
Future-proof your agent communication with NIST-approved post-quantum algorithms.
ML-KEM-768
Key encapsulation
ML-DSA-65
Digital signatures
X25519
Hybrid handshake
Ringtail
Threshold signing
Agent Consensus
Voting-based consensus for multi-agent response aggregation with configurable thresholds.
struct AgentConsensusConfig {
threshold @0 :Float64; # Vote fraction
minResponses @1 :UInt32; # Min responses
timeoutSecs @2 :UInt32; # Query timeout
requireSignatures @3 :Bool; # Signatures req
}W3C DID Support
Native decentralized identity with did:lux, did:key, and did:web methods.
struct Did {
method @0 :DidMethod; # lux, key, web
id @1 :Text; # Method-specific ID
}
interface DidRegistry {
resolve @0 (request :DidResolveRequest)
-> (response :DidResolveResponse);
}Lux Network Integration
First-class support for the Lux blockchain with did:lux anchoring and stake registry.
- Blockchain-anchored DIDs
- Stake-weighted agent coordination
- On-chain identity verification
- Cross-chain interoperability
Quick Start
Rust
cargo add zap-protocol
Go
go get github.com/zap-protocol/zap-go
Python
pip install zap-protocol
Ready to Build?
Join the next generation of AI agent protocols. ZAP provides the performance and security infrastructure your agents need.