Skip to main content

check

Function check 

Source
pub fn check(
    plugin_name: &str,
    signers: &[String],
    trust: &TrustStore,
    allow_untrusted: bool,
) -> Result<Verification>
Expand description

Apply the trust policy: the artifact is trusted iff at least one of signers is present in trust. Returns Error::UntrustedPlugin when unverified and allow_untrusted is false.