]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blame - libs/combined/index.js
Catch nebulas error on some chrome configs
[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
22f87669
IC
83/* unorm */
84
3aa7677a 85module.exports.unorm = require('unorm')
22f87669
IC
86
87/* zxcvbn */
88
3aa7677a 89module.exports.zxcvbn = require('zxcvbn')