Skip to main content

Crate hashiverse_client_wasm

Crate hashiverse_client_wasm 

Source

Modules§

hashiverse_client_wasm
wasm_try

Macros§

wasm_try
wasm_try_ts
wasm_try! whose block evaluates to a Tsify value, returned as Ts<T>.
wasm_try_ts_vec
wasm_try! whose block evaluates to a Vec of Tsify values, returned as Vec<Ts<T>>.

Functions§

get_wasm_parallel_pow_generator
Get the global WasmParallelPowGenerator if initialized.
init_pow_workers
Initialize the parallel PoW worker pool. Call from TypeScript, passing an array of ready Worker handles that each run HashiversePowWorker.ts.
pow_compute_batch
Sync PoW batch computation for sub-workers. Each sub-worker calls this function with a portion of the total iteration budget.
wasm_init
Initialise logging and panic hook. Must be called manually before using the WASM module. Pass verbose = true for the main worker (logs confirmation), false for PoW sub-workers (silent).