Skip to main content

judge

Function judge 

Source
pub(crate) fn judge(
    text: &str,
    sender: &str,
    verified: Option<bool>,
    install_ok: bool,
    peers: &[LanInstance],
) -> Verdict
Expand description

The decision, from what was proven: verified is the signature check’s outcome, install_ok whether the install that vouches for the sender key is one this machine trusts. Pure, so each refusal has a test.