diff options
author | Ian Coleman <ian@iancoleman.io> | 2020-01-08 17:29:16 +1100 |
---|---|---|
committer | Ian Coleman <ian@iancoleman.io> | 2020-01-08 17:30:16 +1100 |
commit | 3aa7677ace4f318dfeec8f28469f5862b0599c4e (patch) | |
tree | e14b49a1dbf0da3846855997b4b3341a76bb891b /libs | |
parent | 181b5d61e308bc6b6371e753f8ac5817755c01be (diff) | |
download | BIP39-3aa7677ace4f318dfeec8f28469f5862b0599c4e.tar.gz BIP39-3aa7677ace4f318dfeec8f28469f5862b0599c4e.tar.zst BIP39-3aa7677ace4f318dfeec8f28469f5862b0599c4e.zip |
Directly export libraries where they're required
Diffstat (limited to 'libs')
-rw-r--r-- | libs/combined/index.js | 56 |
1 files changed, 17 insertions, 39 deletions
diff --git a/libs/combined/index.js b/libs/combined/index.js index 46f4681..1de5b92 100644 --- a/libs/combined/index.js +++ b/libs/combined/index.js | |||
@@ -1,66 +1,66 @@ | |||
1 | /* base-x */ | 1 | /* base-x */ |
2 | 2 | ||
3 | let basex = require('base-x') | 3 | module.exports.basex = require('base-x') |
4 | 4 | ||
5 | /* bchaddrjs */ | 5 | /* bchaddrjs */ |
6 | 6 | ||
7 | let bchaddr = require('bchaddrjs') | 7 | module.exports.bchaddr = require('bchaddrjs') |
8 | 8 | ||
9 | /* bchaddrjs slp */ | 9 | /* bchaddrjs slp */ |
10 | 10 | ||
11 | let bchaddrSlp = require('bchaddrjs-slp') | 11 | module.exports.bchaddrSlp = require('bchaddrjs-slp') |
12 | 12 | ||
13 | /* biginteger */ | 13 | /* biginteger */ |
14 | 14 | ||
15 | let BigInteger = require('javascript-biginteger') | 15 | module.exports.BigInteger = require('javascript-biginteger') |
16 | 16 | ||
17 | /* bitcoinjs-bip38 */ | 17 | /* bitcoinjs-bip38 */ |
18 | 18 | ||
19 | let bip38 = require('bip38') | 19 | module.exports.bip38 = require('bip38') |
20 | 20 | ||
21 | /* bitcoinjs-lib */ | 21 | /* bitcoinjs-lib */ |
22 | 22 | ||
23 | let bitcoin = require('bitcoinjs-lib') | 23 | module.exports.bitcoin = require('bitcoinjs-lib') |
24 | 24 | ||
25 | /* buffer */ | 25 | /* buffer */ |
26 | 26 | ||
27 | let buffer = require('buffer'); | 27 | module.exports.buffer = require('buffer'); |
28 | 28 | ||
29 | /* elastos */ | 29 | /* elastos */ |
30 | // See https://github.com/iancoleman/bip39/pull/368 | 30 | // See https://github.com/iancoleman/bip39/pull/368 |
31 | // and https://github.com/johnnynanjiang/Elastos.SDK.Keypair.Javascript/tree/iancoleman-bip39 | 31 | // and https://github.com/johnnynanjiang/Elastos.SDK.Keypair.Javascript/tree/iancoleman-bip39 |
32 | 32 | ||
33 | let elastosjs = require('elastos-wallet-js') | 33 | module.exports.elastosjs = require('elastos-wallet-js') |
34 | 34 | ||
35 | /* ethereum-util */ | 35 | /* ethereum-util */ |
36 | 36 | ||
37 | let ethUtil = require('ethereumjs-util') | 37 | module.exports.ethUtil = require('ethereumjs-util') |
38 | 38 | ||
39 | /* fast-levenshtein */ | 39 | /* fast-levenshtein */ |
40 | 40 | ||
41 | let levenshtein = require('fast-levenshtein') | 41 | module.exports.levenshtein = require('fast-levenshtein') |
42 | 42 | ||
43 | /* groestlcoin */ | 43 | /* groestlcoin */ |
44 | 44 | ||
45 | let groestlcoinjs = require('groestlcoinjs-lib') | 45 | module.exports.groestlcoinjs = require('groestlcoinjs-lib') |
46 | 46 | ||
47 | /* groestlcoin bip38 */ | 47 | /* groestlcoin bip38 */ |
48 | 48 | ||
49 | let groestlcoinjsBip38 = require('bip38grs') | 49 | module.exports.groestlcoinjsBip38 = require('bip38grs') |
50 | 50 | ||
51 | /* kjua qr codes */ | 51 | /* kjua qr codes */ |
52 | 52 | ||
53 | let kjua = require('kjua') | 53 | module.exports.kjua = require('kjua') |
54 | 54 | ||
55 | /* nebulas */ | 55 | /* nebulas */ |
56 | 56 | ||
57 | let nebulas = require('nebulas') | 57 | module.exports.nebulas = require('nebulas') |
58 | 58 | ||
59 | /* stellar-util */ | 59 | /* stellar-util */ |
60 | 60 | ||
61 | let StellarBase = require('stellar-base'); | 61 | let StellarBase = require('stellar-base'); |
62 | let edHd = require('ed25519-hd-key'); | 62 | let edHd = require('ed25519-hd-key'); |
63 | let stellarUtil = { | 63 | module.exports.stellarUtil = { |
64 | getKeypair: function (path, seed) { | 64 | getKeypair: function (path, seed) { |
65 | const result = edHd.derivePath(path, seed); | 65 | const result = edHd.derivePath(path, seed); |
66 | return StellarBase.Keypair.fromRawEd25519Seed(result.key); | 66 | return StellarBase.Keypair.fromRawEd25519Seed(result.key); |
@@ -76,30 +76,8 @@ let stellarUtil = { | |||
76 | 76 | ||
77 | /* unorm */ | 77 | /* unorm */ |
78 | 78 | ||
79 | let unorm = require('unorm') | 79 | module.exports.unorm = require('unorm') |
80 | 80 | ||
81 | /* zxcvbn */ | 81 | /* zxcvbn */ |
82 | 82 | ||
83 | let zxcvbn = require('zxcvbn') | 83 | module.exports.zxcvbn = require('zxcvbn') |
84 | |||
85 | /* exports */ | ||
86 | |||
87 | module.exports = { | ||
88 | basex, | ||
89 | bchaddr, | ||
90 | bchaddrSlp, | ||
91 | buffer, | ||
92 | BigInteger, | ||
93 | bip38, | ||
94 | bitcoin, | ||
95 | elastosjs, | ||
96 | ethUtil, | ||
97 | groestlcoinjs, | ||
98 | groestlcoinjsBip38, | ||
99 | kjua, | ||
100 | levenshtein, | ||
101 | nebulas, | ||
102 | stellarUtil, | ||
103 | unorm, | ||
104 | zxcvbn | ||
105 | } | ||