pub struct GuestInput {
pub state: GuestState,
pub claims: Vec<ReceiptClaim>,
pub finalize: bool,
}Expand description
Input of the aggregation set builder guest.
Fields§
§state: GuestStateState of the incremental set building process. On first run, this will be the initial state, which does not require verification (it is trivially true that an empty set contains no false claims). On subsequent runs, it will be set to the state written to the journal by the last run of the set builder guest.
claims: Vec<ReceiptClaim>Vector of claims to be verified and added to the set of verified claims committed to by the MerkleMountainRange.
finalize: boolWhether or not to finalize the Merkle mountain range at the end of guest execution.
A finalized MerkleMountainRange cannot have additional leaves added, but is guaranteed to be a single root. The MerkleMountainRange should be finalized to obtain the root for use with the Solidity set verifier contract.
Trait Implementations§
Source§impl Clone for GuestInput
impl Clone for GuestInput
Source§fn clone(&self) -> GuestInput
fn clone(&self) -> GuestInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GuestInput
impl Debug for GuestInput
Source§impl<'de> Deserialize<'de> for GuestInput
impl<'de> Deserialize<'de> for GuestInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for GuestInput
impl RefUnwindSafe for GuestInput
impl Send for GuestInput
impl Sync for GuestInput
impl Unpin for GuestInput
impl UnwindSafe for GuestInput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more