pub trait ProverMessageBuilder: Builderwhere
Self::Entity: Into<LightClientMessageUnion>,{
type ProvedItems;
type MissingItems;
// Required methods
fn set_last_header(self, last_header: VerifiableHeader) -> Self;
fn set_proof(self, proof: HeaderDigestVec) -> Self;
fn set_proved_items(self, items: Self::ProvedItems) -> Self;
fn set_missing_items(self, items: Self::MissingItems) -> Self;
}
Expand description
A builder which builds the content of a message that used for proving.
Required Associated Types§
sourcetype ProvedItems
type ProvedItems
The type of the proved items.
sourcetype MissingItems
type MissingItems
The type of the missing items.
Required Methods§
sourcefn set_last_header(self, last_header: VerifiableHeader) -> Self
fn set_last_header(self, last_header: VerifiableHeader) -> Self
Set the verifiable header which includes the chain root.
sourcefn set_proof(self, proof: HeaderDigestVec) -> Self
fn set_proof(self, proof: HeaderDigestVec) -> Self
Set the proof for all items which require verifying.
sourcefn set_proved_items(self, items: Self::ProvedItems) -> Self
fn set_proved_items(self, items: Self::ProvedItems) -> Self
Set the proved items.
sourcefn set_missing_items(self, items: Self::MissingItems) -> Self
fn set_missing_items(self, items: Self::MissingItems) -> Self
Set the missing items.