Skip to main content

load_cog_shaped

Function load_cog_shaped 

Source
pub fn load_cog_shaped(
    expected: &str,
    package_dir: &Path,
    anchors: &TrustAnchors,
    kinds: &KindRegistry,
) -> Result<VerifiedWorkload, PlaneError>
Expand description

Verify and load a package whose verified body is cog-shaped, refusing it unless the verified envelope’s kind is expected (closes the window between peeking the kind and verifying the package).