]>
Commit | Line | Data |
---|---|---|
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 | } |