Skip to main content

chain_authorizes

Function chain_authorizes 

Source
pub fn chain_authorizes(chain: &[&[u64]], requested_domain: u64) -> bool
Expand description

A multi-link delegation chain authorizes requested_domain iff: the root holds it, every link attenuates its predecessor (subset), and the domain survives at every level (no link silently re-broadens authority). chain[0] is the root delegation; each later link is a sub-delegation. Zero-heap (slice of slices).