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§

source

type ProvedItems

The type of the proved items.

source

type MissingItems

The type of the missing items.

Required Methods§

source

fn set_last_header(self, last_header: VerifiableHeader) -> Self

Set the verifiable header which includes the chain root.

source

fn set_proof(self, proof: HeaderDigestVec) -> Self

Set the proof for all items which require verifying.

source

fn set_proved_items(self, items: Self::ProvedItems) -> Self

Set the proved items.

source

fn set_missing_items(self, items: Self::MissingItems) -> Self

Set the missing items.

Implementors§