]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blame - libs/stellar-util/stellar-util.js
use dummyNetwork for stellar
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / libs / stellar-util / stellar-util.js
CommitLineData
8ffa333b 1const StellarBase = require('stellar-base');
22c443df 2const edHd = require('ed25519-hd-key');
8ffa333b
3
4window.stellarUtil = {
22c443df
5 getKeypair: function (path, seed) {
6 const result = edHd.derivePath(path, seed);
8ffa333b 7 return StellarBase.Keypair.fromRawEd25519Seed(result.key);
ad59508d
8 },
9 dummyNetwork: {
10 bip32: {public: 0, private: 0},
11 messagePrefix: '',
12 pubKeyHash: 0,
13 scriptHash: 0,
14 wif: 0,
15 },
8ffa333b 16}