1.0.0 • Published 5 years ago

cpupower v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

cpupower-nodejs

This package implements the hashing algorithm used by CPUchain.

Prerequisites

  • Node.js

Build

git clone https://github.com/cpuchain/node-cpupower.git && cd node-cpupower
npm install

Example Code

var cpupower= require('cpupower');

var data = new Buffer("7000000001e980924e4e1109230383e66d62945ff8e749903bea4336755c00000000000051928aff1b4d72416173a8c3948159a09a73ac3bb556aa6bfbcad1a85da7f4c1d13350531e24031b939b9e2b", "hex");
console.log(cpupower.hash(data).toString('hex'));