Trait sov_rollup_interface::zk::ZkvmGuest
source · 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§
sourcefn read_from_host<T: DeserializeOwned>(&self) -> T
fn read_from_host<T: DeserializeOwned>(&self) -> T
Obtain “advice” non-deterministically from the host