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