pub trait LegacyVerifiable<'a>:
Setup<'a>
+ Serialize
+ DeserializeOwned {
type View: LegacyViewable;
// Required methods
fn output<U: DeserializeOwned>(&self) -> Result<U, Self::Error>;
fn logs(&self) -> &Vec<String>;
fn detach(&mut self);
fn verify(&self) -> Result<(), Self::Error>;
}
Expand description
A verifiable proof of a zkVM execution. Also contains a view capturing the output of the machine.
Required Associated Types§
type View: LegacyViewable
Required Methods§
Sourcefn output<U: DeserializeOwned>(&self) -> Result<U, Self::Error>
fn output<U: DeserializeOwned>(&self) -> Result<U, Self::Error>
Get the contents of the output tape written by the zkVM execution.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.