pub struct ChallengeGenerator {
pub base_difficulty: u64,
pub base_mml_threshold: f64,
pub base_path_distance: u32,
pub max_tensor_dim: usize,
pub challenge_ttl_secs: i64,
}Expand description
Generates deterministic challenges from (slot, slot_hash) with configurable difficulty and thresholds.
Fields§
§base_difficulty: u64Base difficulty for generated challenges.
base_mml_threshold: f64Base MML threshold.
base_path_distance: u32Base path distance bound.
max_tensor_dim: usizeMaximum tensor dimension.
challenge_ttl_secs: i64Challenge TTL in seconds.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChallengeGenerator
impl RefUnwindSafe for ChallengeGenerator
impl Send for ChallengeGenerator
impl Sync for ChallengeGenerator
impl Unpin for ChallengeGenerator
impl UnsafeUnpin for ChallengeGenerator
impl UnwindSafe for ChallengeGenerator
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