Skip to main content

Crate zap_proto

Crate zap_proto 

Source
Expand description

§zap-proto

This crate re-exports zap-schema.

§Installation

cargo add zap-schema

See zap-schema documentation for full API reference.

Modules§

agent_consensus
Agentic consensus for response voting
client
ZAP client implementation
config
Configuration for ZAP
consensus
Ringtail Consensus Integration for ZAP
crypto
Post-Quantum Cryptography Module for ZAP
error
Error types for ZAP
gateway
ZAP MCP Gateway - Full Implementation
identity
W3C Decentralized Identifier (DID) Implementation
schema
ZAP Schema Compiler
server
ZAP server implementation
transport
Transport implementations for ZAP
zap_capnp

Structs§

AgentConsensus
Simplified agent consensus for response voting
AgentConsensusVoting
Agentic consensus for response voting
Client
ZAP client for connecting to ZAP gateways
Config
ZAP configuration
ConsensusResult
Result of consensus voting
Did
W3C Decentralized Identifier (DID)
DidDocument
W3C DID Document
Gateway
ZAP MCP Gateway - aggregates multiple MCP servers
NodeIdentity
Node identity combining DID with cryptographic keypair
Query
A query submitted to the agent network
Response
A response to a query
RingtailConsensus
Ringtail-compatible consensus for ZAP agents
RingtailSignature
Ringtail threshold signature
Round1Output
Round 1 output from a party
Round2Output
Round 2 output from a party
Server
ZAP Server
Service
Service endpoint in DID Document
VerificationMethod
Verification method (public key) in DID Document
ZapSchema
ZAP schema compiler

Enums§

DidMethod
DID method identifier
Error
ZAP error type
SchemaFormat
Schema format type

Constants§

DEFAULT_PORT
Default port for ZAP connections
VERSION
ZAP protocol version

Traits§

StakeRegistry
Trait for stake registry implementations

Functions§

capnp_to_zap
Convert .capnp source to .zap whitespace format
compile_to_rust
Compile .zap source to Rust code
migrate_capnp_to_zap
Convert a .capnp file to .zap file
transpile
Compile a .zap file
transpile_str
Compile .zap source string

Type Aliases§

QueryId
Query ID (32-byte hash)
ResponseId
Response ID (32-byte hash)
Result
Result type for ZAP operations