aboutsummaryrefslogblamecommitdiff
path: root/libs/stellar-util/stellar-util.js
blob: 008dfe614361a6fccb037a79c2660fa702f47252 (plain) (tree)
1
2
3
4
5
6
7
                                            
                                       

                      

                                                   
                                                                  







                                       
 
const StellarBase = require('stellar-base');
const edHd = require('ed25519-hd-key');

window.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,
    },
}