}
switch (api) {
case 'webgpu': {
- return Cache.store(await NanoPowWebgpu(bigintFrom(hash, 'hex'), difficulty, effort, debug))
+ return Cache.store(await NanoPowWebgpu(bigintHash, difficulty, effort, debug))
}
case 'webgl': {
- return Cache.store(await NanoPowWebgl(bigintFrom(hash, 'hex'), difficulty, effort, debug))
+ return Cache.store(await NanoPowWebgl(bigintHash, difficulty, effort, debug))
}
case 'wasm': {
- return Cache.store(await NanoPowWasm(bigintFrom(hash, 'hex'), difficulty, effort, debug))
+ return Cache.store(await NanoPowWasm(bigintHash, difficulty, effort, debug))
}
default: {
- return Cache.store(await NanoPowCpu(bigintFrom(hash, 'hex'), difficulty, debug))
+ return Cache.store(await NanoPowCpu(bigintHash, difficulty, debug))
}
}
} catch (e: any) {