aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libs/combined/index.js43
-rw-r--r--libs/combined/package.json19
2 files changed, 62 insertions, 0 deletions
diff --git a/libs/combined/index.js b/libs/combined/index.js
new file mode 100644
index 0000000..cd97612
--- /dev/null
+++ b/libs/combined/index.js
@@ -0,0 +1,43 @@
1/* base-x */
2
3let basex = require('base-x')
4
5/* bitcoinjs-bip38 */
6
7let bip38 = require('bip38')
8
9/* bitcoinjs-lib */
10
11let bitcoin = require('bitcoinjs-lib')
12
13/* ethereum-util */
14
15let ethUtil = require('ethereumjs-util')
16
17/* stellar-util */
18
19let StellarBase = require('stellar-base');
20let edHd = require('ed25519-hd-key');
21let stellarUtil = {
22 getKeypair: function (path, seed) {
23 const result = edHd.derivePath(path, seed);
24 return StellarBase.Keypair.fromRawEd25519Seed(result.key);
25 },
26 dummyNetwork: {
27 bip32: {public: 0, private: 0},
28 messagePrefix: '',
29 pubKeyHash: 0,
30 scriptHash: 0,
31 wif: 0,
32 },
33}
34
35/* exports */
36
37module.exports = {
38 basex,
39 bip38,
40 bitcoin,
41 ethUtil,
42 stellarUtil
43}
diff --git a/libs/combined/package.json b/libs/combined/package.json
new file mode 100644
index 0000000..93ffe40
--- /dev/null
+++ b/libs/combined/package.json
@@ -0,0 +1,19 @@
1{
2 "name": "bip39-tool-external-libs",
3 "version": "0.4.0",
4 "scripts": {
5 "build": "browserify index.js --standalone libs > /tmp/bip39-libs.js"
6 },
7 "dependencies": {
8 "bip38": "2.0.2",
9 "bitcoinjs-lib": "3.3.2",
10 "base-x": "3.0.7",
11 "ed25519-hd-key": "^1.0.0",
12 "ethereumjs-util": "6.0.0",
13 "stellar-base": "^0.10.0"
14 },
15 "devDependencies": {
16 "browserify": "^16.2.3",
17 "uglify-es": "^3.3.9"
18 }
19}