Current collected state Current
Observed since 20 Oct, 19:08 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.


Cryptocurrency hashing functions for NodeJS
Now with Windows support
sudo apt-get nodejs nodejs-dev node-gyp npm
sudo ln -s /usr/bin/nodejs /usr/bin/node
npm install 2acoin-multi-hashing
Example use for native NodeJS addon. (See the complete list of supported algorithms above).
javascript
var multiHashing = require('2acoin-multi-hashing')
var Buffer = require('safe-buffer').Buffer
var algorithms = ['quark', 'x11', 'scrypt', 'scryptn', 'scryptjane', 'keccak', 'bcrypt', 'skein', 'blake']
var data = new Buffer('7000000001e980924e4e1109230383e66d62945ff8e749903bea4336755c00000000000051928aff1b4d72416173a8c3948159a09a73ac3bb556aa6bfbcad1a85da7f4c1d13350531e24031b939b9e2b', 'hex')
var hashedData = algorithms.map(function (algo) {
if (algo === 'scryptjane') {
// scryptjane needs block.nTime and nChainStartTime (found in coin source)
var yaCoinChainStartTime = 1367991200
var nTime = Math.round(Date.now() / 1000)
return multiHashing[algo](data, nTime, yaCoinChainStartTime)
} else {
return multiHashing[algo](data)
}
})
console.log(hashedData)
//<SlowBuffer 0b de 16 ef 2d 92 e4 35 65 c6 6c d8 92 d9 66 b4 3d 65 ..... >
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.19Registry latest | 31 Oct 2020 | 2 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 19:08 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:c182c56a9cef4da8a9554313276fda3dc8d69a8d12e40419304a00f40582a9eb