pub fn load_component(
engine: &Engine,
path: &Path,
) -> Result<(Component, String)>Expand description
Load a .wasm component from a file path and report the SHA-256 of its bytes.
The digest identifies the exact artifact in the audit trail, so it is read from the file rather than inferred from the reference — a local path and an OCI cache entry are treated identically.