@okxweb3/crypto-lib
Version:
A base package for @okxweb3/coin-*
11 lines • 393 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.fromSeedV2 = void 0;
const bip32_1 = require("@scure/bip32");
function fromSeedV2(seed, hdPath) {
const hdkey = bip32_1.HDKey.fromMasterSeed(new Uint8Array([...seed]));
const childKey = hdkey.derive(hdPath);
return childKey;
}
exports.fromSeedV2 = fromSeedV2;
//# sourceMappingURL=bip32_v2.js.map