Skip to main content

Module authority

Module authority 

Source
Expand description

Verified authority types. Trusted constructors stay crate-private.

Structs§

AuthorisedContact
Current authorised contact. Inactive states cannot release content.
AuthorityBinding
SHA-384 bindings for principal, recipient, instrument, scope and purpose.
AuthorityOwner
Single owner of verified grants, contacts and permits for this process.
CachedGrant
Cached view of a grant. cached_at is observational; it never extends expiry.
CurrentAuthorityGuard
Host-owned synchronous authority scope. Do not await, reenter this mutex, drop its controllers, or call unbounded/blocking peer I/O while held. This guard establishes owner affinity, not consent or remote admission.
DecodedClaim
Wire or caller-asserted claim. Not a credential and not a permit.
ExecutionPermit
Compiled permit. Fields are private; only super::AuthorityOwner issues it.
IndependentFacts
Independent facts that must not collapse into a trusted-peer boolean.
InstalledSessionKeys
Confirmed directional traffic secrets. Not Copy; zeroized on drop.
MutationHandle
Handle for an asynchronous mutation. Validated against owner-held records.
TemporalGrant
Purpose-scoped grant. Cache hits never renew permission.
VerifiedCredential
Credential whose digest bindings were checked by super::AuthorityOwner.

Enums§

CompensationClass
Contributor / principal class for finite compensation.
ContactState
Protected-person contact state. Payment cannot bypass these.
ObservationQuality
Observation quality. Unknown is not free or safe.
Plane
Identifier fabric planes. A verified route is not a NaturalAgent.
PolicyOutcome
QPolicy decision. Only Allow with a current grant handle admits service traffic.
ResourceKind
Independent resource kinds. Energy, time and typed compute never mix.

Functions§

admit_service
Maps a policy outcome onto session admission.
bind_authority_digests
Binds authority digests.
binding_for_controllers
Helper used by native pairing: hash two controller byte strings into a binding.
bootstrap_admit
Bootstrap/control allowance is independent of payment. Paid cannot admit alone.
collapse_to_trusted_peer
Independent facts must not collapse into a trusted-peer boolean.
evaluate_precedence
Blocked/Revoked beat Allow. An expired historical grant cannot authorize now.
grant_matches_contact
true when the grant matches the contact.