]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blame - libs/combined/index.js
Added NANO currency
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / libs / combined / index.js
CommitLineData
8017442c
IC
1/* base-x */
2
3aa7677a 3module.exports.basex = require('base-x')
8017442c 4
22f87669
IC
5/* bchaddrjs */
6
3aa7677a 7module.exports.bchaddr = require('bchaddrjs')
22f87669
IC
8
9/* bchaddrjs slp */
10
3aa7677a 11module.exports.bchaddrSlp = require('bchaddrjs-slp')
22f87669
IC
12
13/* biginteger */
14
3aa7677a 15module.exports.BigInteger = require('javascript-biginteger')
22f87669 16
8017442c
IC
17/* bitcoinjs-bip38 */
18
3aa7677a 19module.exports.bip38 = require('bip38')
8017442c
IC
20
21/* bitcoinjs-lib */
22
3aa7677a 23module.exports.bitcoin = require('bitcoinjs-lib')
8017442c 24
22f87669
IC
25/* buffer */
26
3aa7677a 27module.exports.buffer = require('buffer');
22f87669
IC
28
29/* elastos */
30// See https://github.com/iancoleman/bip39/pull/368
31// and https://github.com/johnnynanjiang/Elastos.SDK.Keypair.Javascript/tree/iancoleman-bip39
32
3aa7677a 33module.exports.elastosjs = require('elastos-wallet-js')
22f87669 34
8017442c
IC
35/* ethereum-util */
36
3aa7677a 37module.exports.ethUtil = require('ethereumjs-util')
8017442c 38
22f87669
IC
39/* fast-levenshtein */
40
3aa7677a 41module.exports.levenshtein = require('fast-levenshtein')
22f87669
IC
42
43/* groestlcoin */
44
3aa7677a 45module.exports.groestlcoinjs = require('groestlcoinjs-lib')
22f87669
IC
46
47/* groestlcoin bip38 */
48
3aa7677a 49module.exports.groestlcoinjsBip38 = require('bip38grs')
22f87669
IC
50
51/* kjua qr codes */
52
3aa7677a 53module.exports.kjua = require('kjua')
22f87669
IC
54
55/* nebulas */
56
d07983bc 57try {
3aa7677a 58module.exports.nebulas = require('nebulas')
d07983bc
IC
59}
60catch (e) {
61 console.warn("Error loading nebulas library");
62 console.warn(e);
63};
22f87669 64
8017442c
IC
65/* stellar-util */
66
67let StellarBase = require('stellar-base');
68let edHd = require('ed25519-hd-key');
3aa7677a 69module.exports.stellarUtil = {
8017442c
IC
70 getKeypair: function (path, seed) {
71 const result = edHd.derivePath(path, seed);
72 return StellarBase.Keypair.fromRawEd25519Seed(result.key);
73 },
74 dummyNetwork: {
75 bip32: {public: 0, private: 0},
76 messagePrefix: '',
77 pubKeyHash: 0,
78 scriptHash: 0,
79 wif: 0,
80 },
81}
82
e0863058
J
83/* nano-util */
84
85let NanoBase = require('nanocurrency-web');
86module.exports.nanoUtil = {
87 getKeypair: function (index, seed) {
88 const accounts = NanoBase.wallet.accounts(seed, index, index)
89 return {privKey: accounts[0].privateKey, pubKey: accounts[0].publicKey, address: accounts[0].address};
90 },
91 dummyNetwork: {
92 bip32: {public: 0, private: 0},
93 messagePrefix: '',
94 pubKeyHash: 0,
95 scriptHash: 0,
96 wif: 0,
97 },
98}
99
22f87669
IC
100/* unorm */
101
3aa7677a 102module.exports.unorm = require('unorm')
22f87669
IC
103
104/* zxcvbn */
105
3aa7677a 106module.exports.zxcvbn = require('zxcvbn')
0e1fd953 107
d1d8699f 108/* handshake */
0e1fd953 109module.exports.handshake = require('handshake-util')
d1d8699f
SA
110
111/* bs58 */
112try {
113 module.exports.bs58 = require('bs58')
114}
115catch (e) {
116 console.warn("Error loading bs58 library");
117 console.warn(e);
118};
119
120/* create-hash */
121try {
122 module.exports.createHash = require('create-hash')
123}
124catch (e) {
125 console.warn("Error loading create-hash library");
126 console.warn(e);
127};
128