//! Runtime traits for VM execution, proving, and deployment.
//!
//! Trident is the weapon. Warriors wield it. Trident defines these
//! traits; warriors implement them. A warrior is a target-specific
//! tool (separate crate) that takes compiled Trident output and
//! handles execution, proving, and deployment for a particular
//! VM+OS combination.
//!
//! Example: **Trisha** (Triton + Neptune warrior) implements `Runner`
//! via `triton_vm::simulate()`, `Prover` via `triton_vm::prove()`,
//! and `Deployer` via Neptune RPC โ all using Trident's `PrimeField`,
//! `Poseidon2`, and `Claim` primitives from `crate::field`.
//!
//! No heavy dependencies here โ only the interface contract and
//! the serializable `ProgramBundle` artifact format.
use crateClaim;
pub use ProgramBundle;
// โโโ Types โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
/// VM execution result.
/// Proof artifact: claim + opaque proof bytes.
///
/// The `claim` is universal (defined in `field::proof`). The
/// `proof_bytes` are warrior-specific โ their format depends on
/// the proving system (STARK, SNARK, etc.).
/// Input specification for program execution.
// โโโ Warrior Traits โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
/// Run a compiled program on a VM.
///
/// Warriors implement this to execute TASM (or other target assembly)
/// using the actual VM runtime.
/// Generate a proof of correct execution.
///
/// Warriors implement this to produce a cryptographic proof that the
/// program executed correctly on the given inputs.
/// Verify a proof against its claim.
///
/// Warriors implement this to check that a proof is valid for its
/// claimed program, input, and output.
/// Search for a nonce that satisfies a difficulty target.
///
/// Warriors implement this to find a nonce such that
/// `hash(message ++ nonce) < target`. Used for proof-of-work
/// mining and computational puzzles.
/// Result of a successful nonce search.
/// Deploy a program to a chain or runtime.
///
/// Warriors implement this for chain-specific deployment (e.g.,
/// constructing Neptune LockScript/TypeScript, broadcasting
/// transactions via RPC).
trident/src/runtime/mod.rs
ฯ 0.0%