Skip to main content

authority_with_succession

Function authority_with_succession 

Source
pub fn authority_with_succession(
    edges: &[NQuin],
    root_authority: u64,
    agent: u64,
    deceased_nodes: &[u64],
    probate_admitted: bool,
) -> bool
Expand description

Evaluates whether agent holds authority from root_authority taking decedent status and testamentary succession into account.

Rules:

  1. If an intermediary is in deceased_nodes, ordinary delegation edges from that intermediary lapse unless metadata & 0x01 != 0 (survivesDeath flag).
  2. If probate_admitted is true, testamentary successor edges (q42:testamentarySuccessor) from deceased nodes are activated.
  3. Zero-heap bounded BFS traversal.