Wondering what’s next for npm?Check out our public roadmap! »

node-tribus-hash-algo

0.0.2 • Public • Published

node-tribus-hash-algo

Trbius hashing algorithm for node.js

Usage

Install

npm install node-tribus-hash-algo
var tribus = require('node-tribus-hash-algo');
 
var denariusGenesisBlock = new Buffer("010000000000000000000000000000000000000000000000000000000000000000000000c762a6567f3cc092f0684bb62b7e00a84890b990f07cc71a6bb58d64b98e02e0dee1e352f0ff0f1ec3c927e6", 'hex');
 
var hashedData = tribus.hash(denariusGenesisBlock);
 
console.log(hashedData); //<SlowBuffer 2c bc f8 3b 62 91 3d 56 f6 05 c0 e5 81 a4 88 72 83 94 28 c9 2e 5e b7 6c d7 ad 94 bc af 0b 00 00>
console.log(hashedData.toString('hex')); //2cbcf83b62913d56f605c0e581a48872839428c92e5eb76cd7ad94bcaf0b0000
 
 

Credits

Install

npm i node-tribus-hash-algo

DownloadsWeekly Downloads

2

Version

0.0.2

License

none

Unpacked Size

244 kB

Total Files

16

Last publish

Collaborators

  • avatar