* Note we're representing 16 uint64s as 32 uint32s
*/
static blake2bCompress (ctx: any, last: boolean): void {
- var i = 0
+ let i = 0
// init work variables
for (i = 0; i < 16; i++) {
import { Bip44Ckd } from './workers/bip44-ckd.js'
import { NanoNaCl, worker as NanoNaClWorker } from './workers/nano-nacl.js'
// import './workers/passkey.js'
-import { Pow } from './workers/pow.js'
+import { Pow } from './workers/powgl.js'
const w = () => {
}`
/** Used to set canvas size. Must be a multiple of 256. */
- static #WORKLOAD: number = 256 * Math.max(1, Math.floor(navigator.hardwareConcurrency))
+ static #WORKLOAD: number = 256 * Math.max(1, Math.floor(navigator.hardwareConcurrency) / 2)
static #hexify (arr: number[] | Uint8Array): string {
let out = ''
import { Account } from './lib/account.js'
import { Blake2b } from './lib/blake2b.js'
import { SendBlock, ReceiveBlock, ChangeBlock } from './lib/block.js'
-import { Pow } from './lib/workers/pow.js'
+import { Pow } from './lib/workers/powgl.js'
import { Rpc } from './lib/rpc.js'
import { Rolodex } from './lib/rolodex.js'
import { Safe } from './lib/safe.js'