0.1.9 • Published 4 years ago

sha256-pow v0.1.9

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

sha256-pow

import init, { mine, verify } from 'https://deno.land/x/sha256pow@0.1.0/sha256_pow.js';

await init();

const target = "00000021e800000000000000000000000000000000000000000000000000000";

const powBuffer = new TextEncoder().encode("Hello, PoW!");

const pow = await mine(powBuffer, target);

console.log("Can verify PoW?", verify(pow, target));
0.1.9

4 years ago

0.1.8

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.0

4 years ago