Skip to main content

jar_kernel/
lib.rs

1//! JAR v3 kernel.
2//!
3//! Composes the foundational cap system (`javm-cap`), the pure
4//! execution engine (`javm-exec`), and the integration crate
5//! (`javm`) into the chain-side kernel: σ state, block apply,
6//! state-root, kernel-assisted Instance impls, host_open/host_save.
7//!
8//! σ is a [`javm_cap::CacheDirectory`] plus the validator set; cap
9//! content (Images, Data, CNodes, Instances) lives in the cache and
10//! is content-addressed by [`javm_cap::CapHash`]. `apply_event`
11//! publishes the event payload as a DataCap, rebinds the chain root
12//! cnode's slot\[0\] to it, and drives [`javm::Vm::invoke_cached`].
13
14pub mod abi;
15pub mod apply;
16pub mod error;
17pub mod genesis;
18pub mod kernel;
19pub mod kernel_assist;
20pub mod state;
21
22pub use apply::{Block, Event, EventOutcome, apply_block, apply_event};
23pub use error::KernelError;
24pub use genesis::{Genesis, genesis};
25pub use kernel::Kernel;
26pub use kernel_assist::SigmaKernelAssist;
27pub use state::{State, ValidatorKey, state_root};