Skip to main content

MachineProgram

Trait MachineProgram 

Source
pub trait MachineProgram<F>: Send + Sync {
    // Required methods
    fn pc_start(&self) -> [F; 3];
    fn initial_global_cumulative_sum(&self) -> SepticDigest<F>;
    fn enable_untrusted_programs(&self) -> F;
}
Expand description

A program that defines the control flow of a machine through a program counter.

Required Methods§

Source

fn pc_start(&self) -> [F; 3]

Gets the starting program counter.

Source

fn initial_global_cumulative_sum(&self) -> SepticDigest<F>

Gets the initial global cumulative sum.

Source

fn enable_untrusted_programs(&self) -> F

Gets the flag indicating if untrusted programs are allowed.

Implementors§