aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/seed-phrase-verifier.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/lib/seed-phrase-verifier.js')
-rw-r--r--app/scripts/lib/seed-phrase-verifier.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/scripts/lib/seed-phrase-verifier.js b/app/scripts/lib/seed-phrase-verifier.js
index 1f35c2c67..9cea22029 100644
--- a/app/scripts/lib/seed-phrase-verifier.js
+++ b/app/scripts/lib/seed-phrase-verifier.js
@@ -2,6 +2,11 @@ const KeyringController = require('eth-keyring-controller')
const seedPhraseVerifier = {
+ // Verifies if the seed words can restore the accounts.
+ //
+ // The seed words can recreate the primary keyring and the accounts belonging to it.
+ // The created accounts in the primary keyring are always the same.
+ // The keyring always creates the accounts in the same sequence.
verifyAccounts (createdAccounts, seedWords) {
return new Promise((resolve, reject) => {