@montyanderson/pow.js
v0.0.1
Published
Proof-of-Work implemented in Javascript
Downloads
5
Readme
pow.js
Proof-of-Work implemented in Javascript
Usage
const pow = require("@montyanderson/pow.js");
const input = Buffer.from("Hello, World!");
const target = Buffer.from("00000000000000000000000000000000000000000000000000000000000f0000", "hex");
const nonce = pow.work(input, target);
// later
pow.verify(input, target, nonce); // true