aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorIan Coleman <ian@iancoleman.io>2020-01-08 17:29:16 +1100
committerIan Coleman <ian@iancoleman.io>2020-01-08 17:30:16 +1100
commit3aa7677ace4f318dfeec8f28469f5862b0599c4e (patch)
treee14b49a1dbf0da3846855997b4b3341a76bb891b /libs
parent181b5d61e308bc6b6371e753f8ac5817755c01be (diff)
downloadBIP39-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.js56
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
3let basex = require('base-x') 3module.exports.basex = require('base-x')
4 4
5/* bchaddrjs */ 5/* bchaddrjs */
6 6
7let bchaddr = require('bchaddrjs') 7module.exports.bchaddr = require('bchaddrjs')
8 8
9/* bchaddrjs slp */ 9/* bchaddrjs slp */
10 10
11let bchaddrSlp = require('bchaddrjs-slp') 11module.exports.bchaddrSlp = require('bchaddrjs-slp')
12 12
13/* biginteger */ 13/* biginteger */
14 14
15let BigInteger = require('javascript-biginteger') 15module.exports.BigInteger = require('javascript-biginteger')
16 16
17/* bitcoinjs-bip38 */ 17/* bitcoinjs-bip38 */
18 18
19let bip38 = require('bip38') 19module.exports.bip38 = require('bip38')
20 20
21/* bitcoinjs-lib */ 21/* bitcoinjs-lib */
22 22
23let bitcoin = require('bitcoinjs-lib') 23module.exports.bitcoin = require('bitcoinjs-lib')
24 24
25/* buffer */ 25/* buffer */
26 26
27let buffer = require('buffer'); 27module.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
33let elastosjs = require('elastos-wallet-js') 33module.exports.elastosjs = require('elastos-wallet-js')
34 34
35/* ethereum-util */ 35/* ethereum-util */
36 36
37let ethUtil = require('ethereumjs-util') 37module.exports.ethUtil = require('ethereumjs-util')
38 38
39/* fast-levenshtein */ 39/* fast-levenshtein */
40 40
41let levenshtein = require('fast-levenshtein') 41module.exports.levenshtein = require('fast-levenshtein')
42 42
43/* groestlcoin */ 43/* groestlcoin */
44 44
45let groestlcoinjs = require('groestlcoinjs-lib') 45module.exports.groestlcoinjs = require('groestlcoinjs-lib')
46 46
47/* groestlcoin bip38 */ 47/* groestlcoin bip38 */
48 48
49let groestlcoinjsBip38 = require('bip38grs') 49module.exports.groestlcoinjsBip38 = require('bip38grs')
50 50
51/* kjua qr codes */ 51/* kjua qr codes */
52 52
53let kjua = require('kjua') 53module.exports.kjua = require('kjua')
54 54
55/* nebulas */ 55/* nebulas */
56 56
57let nebulas = require('nebulas') 57module.exports.nebulas = require('nebulas')
58 58
59/* stellar-util */ 59/* stellar-util */
60 60
61let StellarBase = require('stellar-base'); 61let StellarBase = require('stellar-base');
62let edHd = require('ed25519-hd-key'); 62let edHd = require('ed25519-hd-key');
63let stellarUtil = { 63module.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
79let unorm = require('unorm') 79module.exports.unorm = require('unorm')
80 80
81/* zxcvbn */ 81/* zxcvbn */
82 82
83let zxcvbn = require('zxcvbn') 83module.exports.zxcvbn = require('zxcvbn')
84
85/* exports */
86
87module.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}