File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1288,10 +1288,12 @@ var DashKeys = ("object" === typeof module && exports) || {};
1288
1288
1289
1289
/**
1290
1290
* @param {String } wif - Base58Check-encoded Private Key
1291
+ * @param {DecodeOpts } [opts]
1291
1292
* @returns {Promise<Uint8Array> } - private key (no magic byte or checksum)
1292
1293
*/
1293
1294
_DashKeys . wifToPrivKey = async function ( wif , opts ) {
1294
- let wifParts = await dash58check . decode ( wif , opts ) ;
1295
+ let wifParts = await _DashKeys . decode ( wif , opts ) ;
1296
+ //@ts -ignore - wifParts does have privateKey
1295
1297
let privBytes = Utils . hexToBytes ( wifParts . privateKey ) ;
1296
1298
1297
1299
return privBytes ;
@@ -1343,7 +1345,7 @@ if ("object" === typeof module) {
1343
1345
1344
1346
/**
1345
1347
* @typedef DecodeOpts
1346
- * @prop {Boolean } validate - throw if check fails, true by default
1348
+ * @prop {Boolean } [ validate] - throw if check fails, true by default
1347
1349
* @prop {Array<VERSION|Number> } [versions]
1348
1350
* @prop {VERSION|Number } [version]
1349
1351
*/
You can’t perform that action at this time.
0 commit comments