1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! Lux VM interface for the Hanzo L2.
//!
//! This crate implements the VM engine that plugs into a Lux subnet,
//! wrapping EVM execution behind the Snow consensus interface.
//!
//! # Architecture
//!
//! ```text
//! Lux Consensus
//! |
//! HanzoVm (this crate)
//! |
//! +-----------+----------+-----------+
//! | EvmBackend | StateDb | Precompiles |
//! +-----------+----------+-----------+
//! |
//! +------+------+--------+
//! | Revm | Cevm | GoEvm |
//! +------+------+--------+
//! ```
//!
//! - [`vm::HanzoVm`] -- main VM struct implementing [`vm::VmEngine`].
//! - [`evm_backend`] -- pluggable EVM execution backends (revm, cevm, go-evm).
//! - [`state::StateDb`] -- account/storage persistence (SQLite for dev).
//! - [`block::Block`] -- block and transaction types.
//! - [`precompiles::PrecompileRegistry`] -- custom precompile contracts
//! (PQ signatures, quasar queries, AI inference/embeddings).
// Re-export key types for ergonomic imports.
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;