Skip to main content

verify_capsule

Function verify_capsule 

Source
pub fn verify_capsule(capsule: &Capsule) -> Result<()>
Expand description

Verify a genesis/self-certifying Capsule: the composite signature must verify (pinned Hybrid) against some published subject key.

subjectKeys is a published set (#1188 / #1183), so which member signed the self-certifying capsule is not positional. Try each published subject key and accept the capsule iff its composite signature verifies under one of them — the “try each candidate” rule for a set with no wire-level selector. A capsule signed by a key it does not publish, or signed by none, fails closed.