Files
bip39/libs/stellar-util/stellar-util.js
2018-12-17 01:21:17 +01:00

10 lines
276 B
JavaScript

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);
}
}