Skip to main content

authorize_sensing

Function authorize_sensing 

Source
pub fn authorize_sensing(
    grant: &ConsentGrant,
    request: SensingRequest,
    identity: &impl IdentityAuthority,
    sensor_scope: &impl SensingScopeAuthority,
    revocations: &impl RevocationAuthority,
    clock: &mut impl TrustedUnixClock,
) -> Result<SensingPermit, AuthorizationError>
Expand description

Verify grant signature/expiry, principal-recipient binding, exact purpose, sensor scope, and complete revocation state before minting a permit.