Skip to content

Commit c8dc692

Browse files
authored
Update README.md
1 parent e39c4aa commit c8dc692

File tree

1 file changed

+6
-40
lines changed

1 file changed

+6
-40
lines changed

README.md

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
## This repo is looking for maintainers! Please reach out if interested.
2-
3-
--------
4-
5-
6-
71
node-multi-hashing
82
===============
93

@@ -16,28 +10,8 @@ Cryptocurrency hashing functions for node.js.
1610

1711
Algorithms
1812
----------
19-
* quark
20-
* x11
21-
* x13
22-
* x16r
23-
* x16rv2
24-
* nist5
25-
* scrypt
26-
* scryptn
27-
* scryptjane
28-
* keccak
29-
* bcrypt
30-
* skein
31-
* groestl
32-
* blake
33-
* fugue
34-
* qubit
35-
* hefty1
36-
* shavite3
37-
* cryptonight
38-
* boolberry
39-
* sha256d
40-
* lbry
13+
Supported algorithms: `quark, x11, x13, x16r, x16rv2, nist5, scrypt, scryptn, scryptjane, keccak, bcrypt, skein, groestl, blake, fugue, qubit, hefty1, shavite3, cryptonight, boolberry, sha256d, lbry`, *__and more!__*
14+
4115

4216
Usage
4317
-----
@@ -48,30 +22,22 @@ Install
4822
npm install multi-hashing
4923
```
5024

51-
So far this native Node.js addon can do the following hashing algos
25+
Example usage:
5226

5327
```javascript
5428
var multiHashing = require('multi-hashing');
5529

56-
var algorithms = ['quark', 'x11', 'scrypt', 'scryptn', 'scryptjane', 'keccak', 'bcrypt', 'skein', 'blake'];
30+
var algorithms = ['quark', 'x11', 'scrypt', 'scryptn', 'keccak', 'bcrypt', 'skein', 'blake'];
5731

5832
var data = new Buffer("7000000001e980924e4e1109230383e66d62945ff8e749903bea4336755c00000000000051928aff1b4d72416173a8c3948159a09a73ac3bb556aa6bfbcad1a85da7f4c1d13350531e24031b939b9e2b", "hex");
5933

6034
var hashedData = algorithms.map(function(algo){
61-
if (algo === 'scryptjane'){
62-
//scryptjane needs block.nTime and nChainStartTime (found in coin source)
63-
var yaCoinChainStartTime = 1367991200;
64-
var nTime = Math.round(Date.now() / 1000);
65-
return multiHashing[algo](data, nTime, yaCoinChainStartTime);
66-
}
67-
else{
68-
return multiHashing[algo](data);
69-
}
35+
return multiHashing[algo](data);
7036
});
7137

7238

7339
console.log(hashedData);
74-
//<SlowBuffer 0b de 16 ef 2d 92 e4 35 65 c6 6c d8 92 d9 66 b4 3d 65 ..... >
40+
//<Buffer 0b de 16 ef 2d 92 e4 35 65 c6 6c d8 92 d9 66 b4 3d 65 ..... >
7541

7642

7743
```

0 commit comments

Comments
 (0)