node-stratum-pool/node_modules/quark-hash
Matthew Little ae475f2b76 updated
2014-01-08 15:25:38 -05:00
..
build updated 2014-01-08 15:25:38 -05:00
node_modules/bindings updated 2014-01-08 15:25:38 -05:00
sha3 updated 2014-01-08 15:25:38 -05:00
binding.gyp updated 2014-01-08 15:25:38 -05:00
index.js updated 2014-01-08 15:25:38 -05:00
package.json updated 2014-01-08 15:25:38 -05:00
quark.c updated 2014-01-08 15:25:38 -05:00
quark.h updated 2014-01-08 15:25:38 -05:00
quarkhash.cc updated 2014-01-08 15:25:38 -05:00
README.md updated 2014-01-08 15:25:38 -05:00

node-quark-hash

Quark hashing function for node.js. Useful for various cryptocurrencies.

Usage

Install

npm install quark-hash

Hash your data

var quark = require('quark-hash');

var data = new Buffer("hash me good bro");
var hashed = quark.digest(data); //returns a 32 byte buffer

console.log(hashed);
//<SlowBuffer 0b de 16 ef 2d 92 e4 35 65 c6 6c d8 92 d9 66 b4 3d 65 ..... >

Credits

  • Uses scrypt.c written by Colin Percival
  • Neisklar for the python module this is based off of