Skip to main content

Crate jar_kernel

Crate jar_kernel 

Source
Expand description

JAR v3 kernel.

Composes the foundational cap system (javm-cap), the pure execution engine (javm-exec), and the integration crate (javm) into the chain-side kernel: σ state, block apply, state-root, kernel-assisted Instance impls, host_open/host_save.

σ is a [javm_cap::CacheDirectory] plus the validator set; cap content (Images, Data, CNodes, Instances) lives in the cache and is content-addressed by [javm_cap::CapHash]. apply_event publishes the event payload as a DataCap, rebinds the chain root cnode’s slot[0] to it, and drives [javm::Vm::invoke_cached].

Re-exports§

pub use apply::Block;
pub use apply::Event;
pub use apply::EventOutcome;
pub use apply::apply_block;
pub use apply::apply_event;
pub use error::KernelError;
pub use genesis::Genesis;
pub use genesis::genesis;
pub use kernel::Kernel;
pub use kernel_assist::SigmaKernelAssist;
pub use state::State;
pub use state::ValidatorKey;
pub use state::state_root;

Modules§

abi
Slot numbers the v3 chain ABI exposes to chain Instances at genesis. Sourced from [javm_cap::abi] so the transpiler can reference the same constants when building chain Images.
apply
Block apply driver.
error
Errors surfaced by the v3 jar-kernel.
genesis
Chain genesis: σ initialization + kernel-cap injection.
kernel
Top-level Kernel API.
kernel_assist
σ-aware [javm::KernelAssist] implementation.
state
σ — the v3 chain state.