Skip to main content

Crate echo_authority_core

Crate echo_authority_core 

Source
Expand description

echo-authority-core — a reference implementation of the Echo Authority Protocol, Draft 0.1.

This crate is a SECOND, INDEPENDENT implementation of the deterministic Border Control verifier and the attenuation-only delegation rule. It exists to prove the protocol is a shared language, not one company’s server: given the same Authority Object, the same Invocation, and the same verifier state, this Rust code MUST return the identical verdict as the TypeScript reference at /protocol.

The verifier is deliberately boring. No model, no heuristics, no network. Every decision falls out of the object’s own declared bounds.

Structs§

AttenuationResult
AuthorityObject
BorderResult
Constraints
Delegation
Invocation
JsonVerdict
The outcome of evaluating a request: the canonical verdict JSON plus whether it allowed.
Revocation
Scope
VerifierState
Mutable verifier state — what the gateway knows at decision time.

Enums§

Decision
Reason

Constants§

FORBIDDEN_CAPS

Functions§

border_check
canonical_authority
canonical_invocation
check_attenuation
evaluate_json
Evaluate a { authority, invocation, state } request document and return the canonical verdict { "decision", "reason", "receipt" }. Deterministic; never panics.
reason_str
The stable, human-readable name of a reason code (matches the TypeScript reference).
resource_within