StateTransitionData

Struct StateTransitionData 

Source
pub struct StateTransitionData<StateRoot, Witness, DA: DaSpec> {
    pub pre_state_root: StateRoot,
    pub da_block_header: DA::BlockHeader,
    pub inclusion_proof: DA::InclusionMultiProof,
    pub completeness_proof: DA::CompletenessProof,
    pub blobs: Vec<<DA as DaSpec>::BlobTransaction>,
    pub state_transition_witness: Witness,
}
Expand description

Data required to verify a state transition.

Fields§

§pre_state_root: StateRoot

The state root before the state transition

§da_block_header: DA::BlockHeader

The header of the da block that is being processed

§inclusion_proof: DA::InclusionMultiProof

The proof of inclusion for all blobs

§completeness_proof: DA::CompletenessProof

The proof that the provided set of blobs is complete

§blobs: Vec<<DA as DaSpec>::BlobTransaction>

The blobs that are being processed

§state_transition_witness: Witness

The witness for the state transition

Trait Implementations§

Source§

impl<StateRoot, Witness, DA: DaSpec> BorshDeserialize for StateTransitionData<StateRoot, Witness, DA>

Source§

fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>

Source§

fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>

Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes.
Source§

fn try_from_slice(v: &[u8]) -> Result<Self, Error>

Deserialize this instance from a slice of bytes.
Source§

fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>
where R: Read,

Source§

impl<StateRoot, Witness, DA: DaSpec> BorshSerialize for StateTransitionData<StateRoot, Witness, DA>

Source§

fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), Error>

Source§

fn try_to_vec(&self) -> Result<Vec<u8>, Error>

Serialize this instance into a vector of bytes.
Source§

impl<'de, StateRoot, Witness, DA: DaSpec> Deserialize<'de> for StateTransitionData<StateRoot, Witness, DA>
where StateRoot: Serialize + DeserializeOwned, Witness: Serialize + DeserializeOwned,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<StateRoot, Witness, DA: DaSpec> Serialize for StateTransitionData<StateRoot, Witness, DA>
where StateRoot: Serialize + DeserializeOwned, Witness: Serialize + DeserializeOwned,

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<StateRoot, Witness, DA> Freeze for StateTransitionData<StateRoot, Witness, DA>
where StateRoot: Freeze, <DA as DaSpec>::BlockHeader: Freeze, <DA as DaSpec>::InclusionMultiProof: Freeze, <DA as DaSpec>::CompletenessProof: Freeze, Witness: Freeze,

§

impl<StateRoot, Witness, DA> RefUnwindSafe for StateTransitionData<StateRoot, Witness, DA>

§

impl<StateRoot, Witness, DA> Send for StateTransitionData<StateRoot, Witness, DA>
where StateRoot: Send, <DA as DaSpec>::BlockHeader: Send, <DA as DaSpec>::InclusionMultiProof: Send, <DA as DaSpec>::CompletenessProof: Send, Witness: Send,

§

impl<StateRoot, Witness, DA> Sync for StateTransitionData<StateRoot, Witness, DA>
where StateRoot: Sync, <DA as DaSpec>::BlockHeader: Sync, <DA as DaSpec>::InclusionMultiProof: Sync, <DA as DaSpec>::CompletenessProof: Sync, Witness: Sync,

§

impl<StateRoot, Witness, DA> Unpin for StateTransitionData<StateRoot, Witness, DA>
where StateRoot: Unpin, <DA as DaSpec>::BlockHeader: Unpin, <DA as DaSpec>::InclusionMultiProof: Unpin, <DA as DaSpec>::CompletenessProof: Unpin, Witness: Unpin, <DA as DaSpec>::BlobTransaction: Unpin,

§

impl<StateRoot, Witness, DA> UnwindSafe for StateTransitionData<StateRoot, Witness, DA>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,