Skip to main content

decide

Function decide 

Source
pub fn decide(
    lists: &[PublishedList],
    publishers: &[Key],
    threshold: usize,
    local: &BTreeSet<Key>,
    observed: &[Observed],
    hash: &[u8; 32],
) -> Decision
Expand description

Whether hash is confirmed under the verifier’s policy. One rule shared by offline bundle verification and confirmation at load time.

The time used to pick lists is the window of signed vote times for this hash, not the median: duplicates and the order of validations do not change the window, and every list in effect at any moment of the window must give the same answer. A publisher with no list in effect in the window makes the policy incomplete, and there is no confirmation.