Skip to content

montyanderson/pow.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pow.js

npm

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

About

Proof-of-Work implemented in Javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published