Struct chik_protocol::ChallengeBlockInfo
source · pub struct ChallengeBlockInfo {
pub proof_of_space: ProofOfSpace,
pub challenge_chain_sp_vdf: Option<VDFInfo>,
pub challenge_chain_sp_signature: G2Element,
pub challenge_chain_ip_vdf: VDFInfo,
}Fields§
§proof_of_space: ProofOfSpace§challenge_chain_sp_vdf: Option<VDFInfo>§challenge_chain_sp_signature: G2Element§challenge_chain_ip_vdf: VDFInfoImplementations§
source§impl ChallengeBlockInfo
impl ChallengeBlockInfo
pub fn new( proof_of_space: ProofOfSpace, challenge_chain_sp_vdf: Option<VDFInfo>, challenge_chain_sp_signature: G2Element, challenge_chain_ip_vdf: VDFInfo ) -> ChallengeBlockInfo
Trait Implementations§
source§impl Clone for ChallengeBlockInfo
impl Clone for ChallengeBlockInfo
source§fn clone(&self) -> ChallengeBlockInfo
fn clone(&self) -> ChallengeBlockInfo
Returns a copy of the value. Read more
1.0.0 · 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 ChallengeBlockInfo
impl Debug for ChallengeBlockInfo
source§impl Hash for ChallengeBlockInfo
impl Hash for ChallengeBlockInfo
source§impl PartialEq for ChallengeBlockInfo
impl PartialEq for ChallengeBlockInfo
source§fn eq(&self, other: &ChallengeBlockInfo) -> bool
fn eq(&self, other: &ChallengeBlockInfo) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Streamable for ChallengeBlockInfo
impl Streamable for ChallengeBlockInfo
fn update_digest(&self, digest: &mut Sha256)
fn stream(&self, out: &mut Vec<u8>) -> Result<()>
fn parse<const TRUSTED: bool>(input: &mut Cursor<&[u8]>) -> Result<Self>
fn to_bytes(&self) -> Result<Vec<u8>, Error>
fn from_bytes(bytes: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn from_bytes_unchecked(bytes: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn hash(&self) -> [u8; 32]
impl Eq for ChallengeBlockInfo
impl StructuralPartialEq for ChallengeBlockInfo
Auto Trait Implementations§
impl Freeze for ChallengeBlockInfo
impl RefUnwindSafe for ChallengeBlockInfo
impl Send for ChallengeBlockInfo
impl Sync for ChallengeBlockInfo
impl Unpin for ChallengeBlockInfo
impl UnwindSafe for ChallengeBlockInfo
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