Struct grin_core::pow::cuckatoo::CuckatooContext [−][src]
pub struct CuckatooContext { /* fields omitted */ }
Cuckatoo solver context
Implementations
impl CuckatooContext
[src]
impl CuckatooContext
[src]pub fn new_impl(
edge_bits: u8,
proof_size: usize,
max_sols: u32
) -> Result<CuckatooContext, Error>
[src]
pub fn new_impl(
edge_bits: u8,
proof_size: usize,
max_sols: u32
) -> Result<CuckatooContext, Error>
[src]New Solver context
pub fn sipkey_hex(&self, index: usize) -> Result<String, Error>
[src]
pub fn sipkey_hex(&self, index: usize) -> Result<String, Error>
[src]Get a siphash key as a hex string (for display convenience)
pub fn byte_count(&self) -> Result<u64, Error>
[src]
pub fn byte_count(&self) -> Result<u64, Error>
[src]Return number of bytes used by the graph
pub fn set_header_nonce_impl(
&mut self,
header: Vec<u8>,
nonce: Option<u32>,
solve: bool
) -> Result<(), Error>
[src]
pub fn set_header_nonce_impl(
&mut self,
header: Vec<u8>,
nonce: Option<u32>,
solve: bool
) -> Result<(), Error>
[src]Set the header and optional nonce in the last part of the header
Trait Implementations
impl PoWContext for CuckatooContext
[src]
impl PoWContext for CuckatooContext
[src]fn set_header_nonce(
&mut self,
header: Vec<u8>,
nonce: Option<u32>,
solve: bool
) -> Result<(), Error>
[src]
fn set_header_nonce(
&mut self,
header: Vec<u8>,
nonce: Option<u32>,
solve: bool
) -> Result<(), Error>
[src]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 CuckatooContext
impl Send for CuckatooContext
impl Sync for CuckatooContext
impl Unpin for CuckatooContext
impl UnwindSafe for CuckatooContext
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> UnsafeAny for T where
T: Any,
T: Any,