@airgap/groestlcoin 0.13.8-beta.5 → 0.13.8-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -30378,6 +30378,15 @@ var BitcoinProtocol = /** @class */ (function () {
|
|
|
30378
30378
|
});
|
|
30379
30379
|
});
|
|
30380
30380
|
};
|
|
30381
|
+
BitcoinProtocol.prototype.getExtendedPublicKeyFromMnemonic = function (mnemonic, derivationPath, password) {
|
|
30382
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
30383
|
+
var secret;
|
|
30384
|
+
return __generator(this, function (_a) {
|
|
30385
|
+
secret = (0, index_2.mnemonicToSeed)(mnemonic, password);
|
|
30386
|
+
return [2 /*return*/, this.getExtendedPublicKeyFromHexSecret(secret, derivationPath)];
|
|
30387
|
+
});
|
|
30388
|
+
});
|
|
30389
|
+
};
|
|
30381
30390
|
BitcoinProtocol.prototype.getExtendedPrivateKeyFromMnemonic = function (mnemonic, derivationPath, password) {
|
|
30382
30391
|
return __awaiter(this, void 0, void 0, function () {
|
|
30383
30392
|
var secret;
|
|
@@ -30405,6 +30414,13 @@ var BitcoinProtocol = /** @class */ (function () {
|
|
|
30405
30414
|
});
|
|
30406
30415
|
});
|
|
30407
30416
|
};
|
|
30417
|
+
BitcoinProtocol.prototype.getExtendedPublicKeyFromHexSecret = function (secret, derivationPath) {
|
|
30418
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
30419
|
+
return __generator(this, function (_a) {
|
|
30420
|
+
return [2 /*return*/, this.getPublicKeyFromHexSecret(secret, derivationPath)];
|
|
30421
|
+
});
|
|
30422
|
+
});
|
|
30423
|
+
};
|
|
30408
30424
|
BitcoinProtocol.prototype.getExtendedPrivateKeyFromHexSecret = function (secret, derivationPath) {
|
|
30409
30425
|
return __awaiter(this, void 0, void 0, function () {
|
|
30410
30426
|
var bitcoinNode;
|
package/package.json
CHANGED