Skip to main content

extract_and_verify_bytes

Function extract_and_verify_bytes 

Source
pub fn extract_and_verify_bytes(
    extension_id: &str,
    zip_bytes: &[u8],
) -> Result<(Vec<u8>, String)>
Expand description

Read the component.json sidecar + the component wasm asset from .gtxpack ZIP zip_bytes, verify the digest, and return (wasm_bytes, verified_digest).