Revert "fix(js): use pure JS SHA256 library, refactor (#471)" (#475)

This reverts commit 7b84904d15.
This commit is contained in:
Xe Iaso 2025-05-08 18:22:08 -04:00 committed by GitHub
parent 7b84904d15
commit b1c276db9f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 234 additions and 335 deletions

View file

@ -1,6 +1,6 @@
import processFast from "./algorithms/fast.mjs";
import processSlow from "./algorithms/slow.mjs";
import { testVideo } from "./tests/video.mjs";
import processFast from "./proof-of-work.mjs";
import processSlow from "./proof-of-work-slow.mjs";
import { testVideo } from "./video.mjs";
const algorithms = {
"fast": processFast,
@ -168,7 +168,6 @@ function showContinueBar(hash, nonce, t0, t1) {
try {
const t0 = Date.now();
const { hash, nonce } = await process(
basePrefix,
challenge,
rules.difficulty,
null,