pub trait ZkvmGuest: Zkvm {
    // Required methods
    fn read_from_host<T: DeserializeOwned>(&self) -> T;
    fn commit<T: Serialize>(&self, item: &T);
}
Expand description

A trait which is accessible from within a zkVM program.

Required Methods§

source

fn read_from_host<T: DeserializeOwned>(&self) -> T

Obtain “advice” non-deterministically from the host

source

fn commit<T: Serialize>(&self, item: &T)

Add a public output to the zkVM proof

Implementors§