0.0.1 • Published 7 years ago
@montyanderson/pow.js v0.0.1
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
0.0.1
7 years ago