Skip to main content

Module program

Module program 

Source
Expand description

Lower a [ProgramBlob] into a runnable ProgramSpec.

This is the “no personality” personality: the shortest path from a linked program to a running one, with no capability graph, no content addressing and no store. A personality that has those does this lowering itself from its own object types (JAVM: javm::JavmLocal::run_instance) — and must arrive at exactly the same ProgramSpec, since gas is a function of it.

Structs§

PreparedProgram
A [ProgramBlob] lowered to the buffers a ProgramSpec borrows.

Enums§

PrepareError
Why a [ProgramBlob] could not be prepared for execution.

Functions§

run_blob
Convenience: prepare and run endpoint of blob once.