aboutsummaryrefslogtreecommitdiff
path: root/libs/combined/index.js
blob: 46f46811a5400d210ca67d7cced8544a4c4ef17d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/* base-x */

let basex = require('base-x')

/* bchaddrjs */

let bchaddr = require('bchaddrjs')

/* bchaddrjs slp */

let bchaddrSlp = require('bchaddrjs-slp')

/* biginteger */

let BigInteger = require('javascript-biginteger')

/* bitcoinjs-bip38 */

let bip38 = require('bip38')

/* bitcoinjs-lib */

let bitcoin = require('bitcoinjs-lib')

/* buffer */

let buffer = require('buffer');

/* elastos */
// See https://github.com/iancoleman/bip39/pull/368
// and https://github.com/johnnynanjiang/Elastos.SDK.Keypair.Javascript/tree/iancoleman-bip39

let elastosjs = require('elastos-wallet-js')

/* ethereum-util */

let ethUtil = require('ethereumjs-util')

/* fast-levenshtein */

let levenshtein = require('fast-levenshtein')

/* groestlcoin */

let groestlcoinjs = require('groestlcoinjs-lib')

/* groestlcoin bip38 */

let groestlcoinjsBip38 = require('bip38grs')

/* kjua qr codes */

let kjua = require('kjua')

/* nebulas */

let nebulas = require('nebulas')

/* stellar-util */

let StellarBase = require('stellar-base');
let edHd = require('ed25519-hd-key');
let stellarUtil = {
    getKeypair: function (path, seed) {
        const result = edHd.derivePath(path, seed);
        return StellarBase.Keypair.fromRawEd25519Seed(result.key);
    },
    dummyNetwork: {
        bip32: {public: 0, private: 0},
        messagePrefix: '',
        pubKeyHash: 0,
        scriptHash: 0,
        wif: 0,
    },
}

/* unorm */

let unorm = require('unorm')

/* zxcvbn */

let zxcvbn = require('zxcvbn')

/* exports */

module.exports = {
  basex,
  bchaddr,
  bchaddrSlp,
  buffer,
  BigInteger,
  bip38,
  bitcoin,
  elastosjs,
  ethUtil,
  groestlcoinjs,
  groestlcoinjsBip38,
  kjua,
  levenshtein,
  nebulas,
  stellarUtil,
  unorm,
  zxcvbn
}