Total Complexity | 0 |
Complexity/F | 0 |
Lines of Code | 25 |
Function Count | 0 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
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); |
||
|
|||
14 | var primarySeed = AES.decrypt(encryptedPrimarySeed, secret); |
||
15 | |||
16 | // new encrypt |
||
17 | var passwordEncryptedSecret = AES.encrypt(secret, newPassword); |
||
18 | |||
19 | server.updateWalletEncryptedSecret( |
||
20 | identifier, |
||
21 | passwordEncryptedSecret |
||
22 | ); |
||
23 | |||
24 | blocktrailSDK.makeBackupPDFPage2( |
||
25 | passwordEncryptedSecret |
||
26 | ).store(); |
||
27 |
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.