sha256-pow
TypeScript icon, indicating that this package has built-in type declarations

0.1.9 • Public • Published

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));

/sha256-pow/

    Package Sidebar

    Install

    npm i sha256-pow

    Weekly Downloads

    1

    Version

    0.1.9

    License

    none

    Unpacked Size

    166 kB

    Total Files

    5

    Last publish

    Collaborators

    • firaenix