X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=libs%2Fcombined%2Findex.js;fp=libs%2Fcombined%2Findex.js;h=cd976123158571c1e33c1cbc064bbae9cae19860;hb=8017442c509ef1fa545367e727608bdc91bc1504;hp=0000000000000000000000000000000000000000;hpb=82cf26c1cbad18ea2d30673ed8f678d1fb29471f;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git 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 @@ +/* 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 +}