pub struct CuckaroomContext { /* private fields */ }
Expand description
Cuckaroom cycle context. Only includes the verifier for now.
Trait Implementations
sourceimpl PoWContext for CuckaroomContext
impl PoWContext for CuckaroomContext
sourcefn set_header_nonce(
&mut self,
header: Vec<u8>,
nonce: Option<u32>,
_solve: bool
) -> Result<(), Error>
fn set_header_nonce(
&mut self,
header: Vec<u8>,
nonce: Option<u32>,
_solve: bool
) -> Result<(), Error>
Sets the header along with an optional nonce at the end solve: whether to set up structures for a solve (true) or just validate (false) Read more
Auto Trait Implementations
impl RefUnwindSafe for CuckaroomContext
impl Send for CuckaroomContext
impl Sync for CuckaroomContext
impl Unpin for CuckaroomContext
impl UnwindSafe for CuckaroomContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more