MAP Docs
AEGIS

Internals

Crate path, key types, adjacent protocols for AEGIS.

AEGIS (Verification · Delegation · Authorization) lives in external. This page covers where to find the implementation, the key Rust types, and how it composes with adjacent protocols.

Source

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

ProtocolModule contract

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

    fn operations(&self) -> Vec<&'static str> {
        vec![
            "challenge",
            "delegate",
            "policy",
        ]
    }

    async fn invoke(&self, op: &str, payload: Value, ctx: &InvokeContext)
        -> Result<Response, ProtocolError>
    {
        match op {
            "challenge" => self.challenge(payload, ctx).await,
            "delegate" => self.delegate(payload, ctx).await,
            "policy" => self.policy(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 mim-lib --all-features

See also

On this page