MAP Docs
MAZE

Internals

Crate path, key types, adjacent protocols for MAZE.

MAZE (Multi-Agent Zero-knowledge Evaluation) lives in protocols/maze. This page covers where to find the implementation, the key Rust types, and how it composes with adjacent protocols.

Source

PathContains
protocols/maze/src/lib.rsProtocolModule impl, operation dispatch
protocols/maze/src/protocol.rscore protocol logic
protocols/maze/src/types.rsrequest/response types (derive schemars::JsonSchema)
protocols/maze/tests/unit + integration tests
schemas/maze/v1/published JSON Schemas

ProtocolModule contract

impl ProtocolModule for MazeProtocol {
    fn protocol_name(&self) -> &'static str { "MAZE" }
    fn version(&self) -> &'static str { "v1.0.0" }

    fn operations(&self) -> Vec<&'static str> {
        vec![
            "topology",
            "prove",
            "path",
        ]
    }

    async fn invoke(&self, op: &str, payload: Value, ctx: &InvokeContext)
        -> Result<Response, ProtocolError>
    {
        match op {
            "topology" => self.topology(payload, ctx).await,
            "prove" => self.prove(payload, ctx).await,
            "path" => self.path(payload, ctx).await,
            _ => Err(ProtocolError::UnknownOperation(op.into())),
        }
    }
}

Adjacent

RelationMembers
Consults
Records toMAX · MOTET · MOMENT
Subject toMAXIM · MOAT (cross-org) · MOOT (disputes)
Settled withMEAL · MANA · MADE

Status

Implemented · production-grade.

Tests

cargo test -p maze --all-features

See also

On this page