pub struct ChallengeContents<Address, Da: DaSpec> {
    pub challenger_address: Address,
    pub state_transition: StateTransition<Da, Address>,
}
Expand description

The contents of a challenge to an attestation, which are contained as a public output of the proof Generic over an address type and a validity condition

Fields§

§challenger_address: Address

The rollup address of the originator of this challenge

§state_transition: StateTransition<Da, Address>

The state transition that was proven

Trait Implementations§

source§

impl<Address, Da: DaSpec> BorshDeserialize for ChallengeContents<Address, Da>where Address: BorshDeserialize, StateTransition<Da, Address>: BorshDeserialize,

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<Address, Da: DaSpec> BorshSerialize for ChallengeContents<Address, Da>where Address: BorshSerialize, StateTransition<Da, Address>: BorshSerialize,

source§

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

source§

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

Serialize this instance into a vector of bytes.
source§

impl<Address: Clone, Da: Clone + DaSpec> Clone for ChallengeContents<Address, Da>

source§

fn clone(&self) -> ChallengeContents<Address, Da>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<Address: Debug, Da: Debug + DaSpec> Debug for ChallengeContents<Address, Da>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de, Address, Da> Deserialize<'de> for ChallengeContents<Address, Da>where Address: Deserialize<'de>, Da: Deserialize<'de> + DaSpec,

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<Address: PartialEq, Da: PartialEq + DaSpec> PartialEq<ChallengeContents<Address, Da>> for ChallengeContents<Address, Da>

source§

fn eq(&self, other: &ChallengeContents<Address, Da>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Address, Da> Serialize for ChallengeContents<Address, Da>where Address: Serialize, Da: Serialize + DaSpec,

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
source§

impl<Address: Eq, Da: Eq + DaSpec> Eq for ChallengeContents<Address, Da>

source§

impl<Address, Da: DaSpec> StructuralEq for ChallengeContents<Address, Da>

source§

impl<Address, Da: DaSpec> StructuralPartialEq for ChallengeContents<Address, Da>

Auto Trait Implementations§

§

impl<Address, Da> RefUnwindSafe for ChallengeContents<Address, Da>where Address: RefUnwindSafe, <Da as DaSpec>::SlotHash: RefUnwindSafe, <Da as DaSpec>::ValidityCondition: RefUnwindSafe,

§

impl<Address, Da> Send for ChallengeContents<Address, Da>where Address: Send,

§

impl<Address, Da> Sync for ChallengeContents<Address, Da>where Address: Sync,

§

impl<Address, Da> Unpin for ChallengeContents<Address, Da>where Address: Unpin, <Da as DaSpec>::SlotHash: Unpin, <Da as DaSpec>::ValidityCondition: Unpin,

§

impl<Address, Da> UnwindSafe for ChallengeContents<Address, Da>where Address: UnwindSafe, <Da as DaSpec>::SlotHash: UnwindSafe, <Da as DaSpec>::ValidityCondition: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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 Twhere U: TryFrom<T>,

§

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 Twhere T: for<'de> Deserialize<'de>,