Perhaps we can use this library: https://github.com/iota-pico/pow-webgl/blob/master/src/proofOfWorkWebGl.ts#L69