Skip to main content

truthlinked_axiom/
lib.rs

1//! Axiom virtual machine and bytecode primitives for TruthLinked cells.
2//!
3//! This crate defines the bytecode format, opcode set, gas metering, host
4//! interface, and interpreter used by TruthLinked Axiom cells. VM behavior is
5//! consensus-sensitive: execution must remain deterministic across platforms and
6//! releases.
7
8#![cfg_attr(not(feature = "std"), no_std)]
9extern crate alloc;
10
11pub mod bytecode;
12pub mod error;
13pub mod gas;
14pub mod host;
15pub mod opcode;
16pub mod vm;
17
18pub use bytecode::{CellBytecode, MAGIC, VERSION};
19pub use error::AxiomError;
20pub use gas::GasMeter;
21pub use host::{CellLog, CrossCellResult, Host};
22pub use vm::{ExecResult, Vm};