Add experimental incomplete combined js libs

This commit is contained in:
Ian Coleman
2019-09-25 09:24:52 +10:00
parent 82cf26c1cb
commit 8017442c50
2 changed files with 62 additions and 0 deletions

43
libs/combined/index.js Normal file
View File

@@ -0,0 +1,43 @@
/* base-x */
let basex = require('base-x')
/* bitcoinjs-bip38 */
let bip38 = require('bip38')
/* bitcoinjs-lib */
let bitcoin = require('bitcoinjs-lib')
/* ethereum-util */
let ethUtil = require('ethereumjs-util')
/* 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,
},
}
/* exports */
module.exports = {
basex,
bip38,
bitcoin,
ethUtil,
stellarUtil
}

View File

@@ -0,0 +1,19 @@
{
"name": "bip39-tool-external-libs",
"version": "0.4.0",
"scripts": {
"build": "browserify index.js --standalone libs > /tmp/bip39-libs.js"
},
"dependencies": {
"bip38": "2.0.2",
"bitcoinjs-lib": "3.3.2",
"base-x": "3.0.7",
"ed25519-hd-key": "^1.0.0",
"ethereumjs-util": "6.0.0",
"stellar-base": "^0.10.0"
},
"devDependencies": {
"browserify": "^16.2.3",
"uglify-es": "^3.3.9"
}
}