Skip to main content

Crate hashiverse_client_wasm

Crate hashiverse_client_wasm 

Source

Modules§

hashiverse_client_wasm
wasm_bootstrap_provider
wasm_client_storage
wasm_key_locker
wasm_local_settings
wasm_parallel_pow_generator
wasm_transport
wasm_try
with_js_context

Macros§

wasm_try

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).