Expand description
ImageCap — Image cap.
Stores a single code region, endpoints, mappings, and slot references as
separate Vec<T> allocations. Allocation count per ImageCap is
bounded regardless of content size; we accept that in exchange for
direct field accessors.
Structs§
- Archived
Endpoint Def - An archived
EndpointDef - Archived
Image Cap - An archived
ImageCap - Archived
Image Slot Entry - An archived
ImageSlotEntry - Archived
Memory Mapping - An archived
MemoryMapping - Endpoint
Def - Endpoint definition. Dense
initial_regsarray; indexicorresponds to PVM registerφ[i].0is “use default” (same semantics as the spec’s oldBTreeMap<u8, u64>when the key is absent). - Endpoint
DefResolver - The resolver for an archived
EndpointDef - Image
Cap - Validation model: structure is eager, semantics are lazy
- Image
CapResolver - The resolver for an archived
ImageCap - Image
Slot Entry (slot_key, cap_hash)pair used by Image’spinnedandinitialarrays. References content-addressed caps only.- Image
Slot Entry Resolver - The resolver for an archived
ImageSlotEntry - Memory
Mapping - One mapped region. The kernel resolves
source(aSlotPathto aCap::Data) at instance start, reads the bytes, and lays them at[start, start + size). - Memory
Mapping Resolver - The resolver for an archived
MemoryMapping
Enums§
- Image
Convert Error - Failure modes when converting an SSZ-encoded
crate::image::Imageinto anImageCap. The conversion preserves the slots and metadata that remain cap-resident, drops only per-endpointarg_registers, and is constrained in others — these errors flag the constraint violations.
Functions§
- image_
cap - Build an
ImageCapfrom the SSZ-encodedcrate::image::Imageshape. The Data content referenced by pinned and initial slots must already be published — pass the resolved(SlotIdx, CapHash)pairs inpinned_hashesandinitial_hashes. The builder sorts both lists by slot index.