pub struct TransitionChallenge {
pub previous_challenge: Vec<u8>,
pub next_challenge: Vec<u8>,
}Expand description
Challenge pair of a transition: it answers the predecessor’s challenge and emits the next one.
Fields§
§previous_challenge: Vec<u8>Echo of the predecessor checkpoint’s challenge.next_challenge.
next_challenge: Vec<u8>Fresh challenge for the successor checkpoint; must differ from
previous_challenge and be non-empty.
Trait Implementations§
Source§impl Clone for TransitionChallenge
impl Clone for TransitionChallenge
Source§fn clone(&self) -> TransitionChallenge
fn clone(&self) -> TransitionChallenge
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransitionChallenge
impl Debug for TransitionChallenge
Source§impl<'de> Deserialize<'de> for TransitionChallenge
impl<'de> Deserialize<'de> for TransitionChallenge
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransitionChallenge, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransitionChallenge, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TransitionChallenge
Source§impl PartialEq for TransitionChallenge
impl PartialEq for TransitionChallenge
Source§impl Serialize for TransitionChallenge
impl Serialize for TransitionChallenge
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TransitionChallenge
Auto Trait Implementations§
impl Freeze for TransitionChallenge
impl RefUnwindSafe for TransitionChallenge
impl Send for TransitionChallenge
impl Sync for TransitionChallenge
impl Unpin for TransitionChallenge
impl UnsafeUnpin for TransitionChallenge
impl UnwindSafe for TransitionChallenge
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
Mutably borrows from an owned value. Read more