@dashevo/wallet-lib
Version:
Light wallet library for Dash
12 lines (10 loc) • 414 B
JavaScript
const { BIP44_TESTNET_ROOT_PATH, BIP44_LIVENET_ROOT_PATH } = require('../../../CONSTANTS');
/**
* Return a safier root keys to derivate from
* @return {HDPrivateKey|HDPublicKey}
*/
function getHardenedBIP44HDKey() {
const pathRoot = (this.network.toString() === 'testnet') ? BIP44_TESTNET_ROOT_PATH : BIP44_LIVENET_ROOT_PATH;
return this.getForPath(pathRoot).key;
}
module.exports = getHardenedBIP44HDKey;