Skip to main content

init_threads

Function init_threads 

Source
pub async fn init_threads(num_threads: usize) -> Result<(), JsValue>
Expand description

JavaScript-compatible solution result for IronShield challenges

  • solution_str: String representation of the solution nonce to avoid JavaScript BigInt precision issues.
  • solution: Original numeric value for compatibility.
  • challenge_signature_hex: Challenge signature preserved from the original challenge. Initializes WebAssembly thread pool for parallel proof-of-work

§Arguments

  • num_threads: Number of worker threads to spawn

§Note

Only available when compiled with a “threading” feature flag