Skip to main content

resolve_ext_component

Function resolve_ext_component 

Source
pub fn resolve_ext_component(
    pack_dir: &Path,
    raw_ref: &str,
) -> Result<(Vec<u8>, String)>
Expand description

Resolve an ext://<id>#component reference by extracting the wasm from the extension’s .gtxpack and verifying the digest against the component.json sidecar.

pack_dir is the directory containing pack.extensions.json.

This file://-only entry point keeps the Phase-1 signature; network schemes (store:///oci://) require resolve_ext_component_with_dist.

Returns the raw wasm bytes and the verified digest string (sha256:<hex>).