]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blame - libs/combined/index.js
feat(bip85): include bip85 library
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / libs / combined / index.js
CommitLineData
8017442c
IC
1/* base-x */
2
3aa7677a 3module.exports.basex = require('base-x')
8017442c 4
22f87669
IC
5/* bchaddrjs */
6
3aa7677a 7module.exports.bchaddr = require('bchaddrjs')
22f87669
IC
8
9/* bchaddrjs slp */
10
3aa7677a 11module.exports.bchaddrSlp = require('bchaddrjs-slp')
22f87669
IC
12
13/* biginteger */
14
3aa7677a 15module.exports.BigInteger = require('javascript-biginteger')
22f87669 16
8017442c
IC
17/* bitcoinjs-bip38 */
18
3aa7677a 19module.exports.bip38 = require('bip38')
8017442c 20
5e211c69
A
21/* bip85 */
22
23module.exports.bip85 = require('bip85')
24
8017442c
IC
25/* bitcoinjs-lib */
26
3aa7677a 27module.exports.bitcoin = require('bitcoinjs-lib')
8017442c 28
22f87669
IC
29/* buffer */
30
3aa7677a 31module.exports.buffer = require('buffer');
22f87669
IC
32
33/* elastos */
34// See https://github.com/iancoleman/bip39/pull/368
35// and https://github.com/johnnynanjiang/Elastos.SDK.Keypair.Javascript/tree/iancoleman-bip39
36
3aa7677a 37module.exports.elastosjs = require('elastos-wallet-js')
22f87669 38
8017442c
IC
39/* ethereum-util */
40
3aa7677a 41module.exports.ethUtil = require('ethereumjs-util')
8017442c 42
22f87669
IC
43/* fast-levenshtein */
44
3aa7677a 45module.exports.levenshtein = require('fast-levenshtein')
22f87669
IC
46
47/* groestlcoin */
48
3aa7677a 49module.exports.groestlcoinjs = require('groestlcoinjs-lib')
22f87669
IC
50
51/* groestlcoin bip38 */
52
3aa7677a 53module.exports.groestlcoinjsBip38 = require('bip38grs')
22f87669
IC
54
55/* kjua qr codes */
56
3aa7677a 57module.exports.kjua = require('kjua')
22f87669
IC
58
59/* nebulas */
60
d07983bc 61try {
3aa7677a 62module.exports.nebulas = require('nebulas')
d07983bc
IC
63}
64catch (e) {
65 console.warn("Error loading nebulas library");
66 console.warn(e);
67};
22f87669 68
8017442c
IC
69/* stellar-util */
70
71let StellarBase = require('stellar-base');
72let edHd = require('ed25519-hd-key');
3aa7677a 73module.exports.stellarUtil = {
8017442c
IC
74 getKeypair: function (path, seed) {
75 const result = edHd.derivePath(path, seed);
76 return StellarBase.Keypair.fromRawEd25519Seed(result.key);
77 },
78 dummyNetwork: {
79 bip32: {public: 0, private: 0},
80 messagePrefix: '',
81 pubKeyHash: 0,
82 scriptHash: 0,
83 wif: 0,
84 },
85}
86
e0863058
J
87/* nano-util */
88
89let NanoBase = require('nanocurrency-web');
90module.exports.nanoUtil = {
91 getKeypair: function (index, seed) {
92 const accounts = NanoBase.wallet.accounts(seed, index, index)
93 return {privKey: accounts[0].privateKey, pubKey: accounts[0].publicKey, address: accounts[0].address};
94 },
95 dummyNetwork: {
96 bip32: {public: 0, private: 0},
97 messagePrefix: '',
98 pubKeyHash: 0,
99 scriptHash: 0,
100 wif: 0,
101 },
102}
103
22f87669
IC
104/* unorm */
105
3aa7677a 106module.exports.unorm = require('unorm')
22f87669
IC
107
108/* zxcvbn */
109
3aa7677a 110module.exports.zxcvbn = require('zxcvbn')
0e1fd953 111
d1d8699f 112/* handshake */
0e1fd953 113module.exports.handshake = require('handshake-util')
d1d8699f
SA
114
115/* bs58 */
116try {
117 module.exports.bs58 = require('bs58')
118}
119catch (e) {
120 console.warn("Error loading bs58 library");
121 console.warn(e);
122};
123
124/* create-hash */
125try {
126 module.exports.createHash = require('create-hash')
127}
128catch (e) {
129 console.warn("Error loading create-hash library");
130 console.warn(e);
131};
132