Issues (615)

docs/keys-pseudocode/recovery.js (4 issues)

Labels
Severity
1
// from backup PDF
2
var backupSeed = prompt();
3
var encryptedPrimarySeed = prompt();
4
var recoveryEncryptedSecret = prompt();
5
6
// user input
7
var newPassword = prompt();
8
9
// from email (from our server)
10
var recoverySecret = prompt();
11
12
// decrypt
13
var secret = AES.decrypt(recoveryEncryptedSecret, recoverySecret);
0 ignored issues
show
The variable AES seems to be never declared. If this is a global, consider adding a /** global: AES */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
14
var primarySeed = AES.decrypt(encryptedPrimarySeed, secret);
15
16
// new encrypt
17
var passwordEncryptedSecret = AES.encrypt(secret, newPassword);
18
19
server.updateWalletEncryptedSecret(
0 ignored issues
show
The variable server seems to be never declared. If this is a global, consider adding a /** global: server */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
20
    identifier,
0 ignored issues
show
The variable identifier seems to be never declared. If this is a global, consider adding a /** global: identifier */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
21
    passwordEncryptedSecret
22
);
23
24
blocktrailSDK.makeBackupPDFPage2(
0 ignored issues
show
The variable blocktrailSDK seems to be never declared. If this is a global, consider adding a /** global: blocktrailSDK */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
25
    passwordEncryptedSecret
26
).store();
27