Struct grin_core::pow::cuckaroo::CuckarooContext
source · pub struct CuckarooContext { /* private fields */ }
Expand description
Cuckaroo cycle context. Only includes the verifier for now.
Trait Implementations§
source§impl PoWContext for CuckarooContext
impl PoWContext for CuckarooContext
source§fn 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)
Auto Trait Implementations§
impl Freeze for CuckarooContext
impl RefUnwindSafe for CuckarooContext
impl Send for CuckarooContext
impl Sync for CuckarooContext
impl Unpin for CuckarooContext
impl UnwindSafe for CuckarooContext
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