eth-keyring-controller
Advanced tools
Comparing version 6.0.1 to 6.1.0
16
index.js
@@ -164,2 +164,18 @@ | ||
/** | ||
* Verify Password | ||
* | ||
* Attempts to decrypt the current vault with a given password | ||
* to verify its validity. | ||
* | ||
* @param {string} password | ||
*/ | ||
async verifyPassword (password) { | ||
const encryptedVault = this.store.getState().vault | ||
if (!encryptedVault) { | ||
throw new Error('Cannot unlock without a previous vault.') | ||
} | ||
await this.encryptor.decrypt(password, encryptedVault) | ||
} | ||
/** | ||
* Add New Keyring | ||
@@ -166,0 +182,0 @@ * |
{ | ||
"name": "eth-keyring-controller", | ||
"version": "6.0.1", | ||
"version": "6.1.0", | ||
"description": "A module for managing various keyrings of Ethereum accounts, encrypting them, and using them.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
26569
700
1