New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

node-tribus-hash-algo

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-tribus-hash-algo

node-tribus-hash-algo ===============

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
6
-72.73%
Maintainers
1
Weekly downloads
 
Created
Source

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

  • Keccak - Guido Bertoni, Joan Daemen, Michaël Peeters, and Gilles Van Assche
  • Tribus - Carsen Klock
  • node-multi-hashing - Base module

Keywords

tribus

FAQs

Package last updated on 17 Mar 2018

Related posts