@zilliqa-js/crypto
Advanced tools
Comparing version 0.7.5 to 0.8.1-alpha.0
@@ -16,3 +16,2 @@ "use strict"; | ||
// along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
var _this = this; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -73,3 +72,3 @@ var tslib_1 = require("tslib"); | ||
*/ | ||
exports.encryptPrivateKey = function (kdf, privateKey, passphrase) { return tslib_1.__awaiter(_this, void 0, void 0, function () { | ||
exports.encryptPrivateKey = function (kdf, privateKey, passphrase) { return tslib_1.__awaiter(void 0, void 0, void 0, function () { | ||
var address, salt, iv, kdfparams, derivedKey, cipher, ciphertext; | ||
@@ -131,3 +130,3 @@ return tslib_1.__generator(this, function (_a) { | ||
*/ | ||
exports.decryptPrivateKey = function (passphrase, keystore) { return tslib_1.__awaiter(_this, void 0, void 0, function () { | ||
exports.decryptPrivateKey = function (passphrase, keystore) { return tslib_1.__awaiter(void 0, void 0, void 0, function () { | ||
var ciphertext, iv, kdfparams, derivedKey, mac, cipher; | ||
@@ -134,0 +133,0 @@ return tslib_1.__generator(this, function (_a) { |
{ | ||
"name": "@zilliqa-js/crypto", | ||
"version": "0.7.5", | ||
"version": "0.8.1-alpha.0", | ||
"description": "Core crypto utilities for signing/verification/hashing Zilliqa transactions.", | ||
@@ -20,2 +20,5 @@ "main": "dist/index.js", | ||
}, | ||
"optionalDependencies": { | ||
"scrypt.js": "^0.3.0" | ||
}, | ||
"dependencies": { | ||
@@ -30,6 +33,6 @@ "@zilliqa-js/util": "0.7.1", | ||
"randombytes": "^2.0.6", | ||
"scrypt.js": "^0.2.0", | ||
"scryptsy": "^2.1.0", | ||
"uuid": "^3.3.2" | ||
}, | ||
"gitHead": "4a13751610427d83d0cf9ad432e5be6b06b8f8c7" | ||
"gitHead": "305e7f49bdb92a27c93190b153ee261bce93591f" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
4530944
11
40273
+ Addedscryptsy@^2.1.0
+ Addedscrypt.js@0.3.0(transitive)
+ Addedscryptsy@2.1.0(transitive)
- Removedscrypt.js@^0.2.0
- Removedscrypt.js@0.2.1(transitive)