Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edge case: If scatter application is refreshed with 'CTRL + R' while developer console is open, the correct password will not unlock the wallet. Must close and re-open Scatter Desktop to successfully unlock again #322

Closed
acoutts opened this issue Apr 24, 2019 · 1 comment · May be fixed by Exhorder6/ScatterDesktop#8

Comments

@acoutts
Copy link

acoutts commented Apr 24, 2019

Scatter Desktop v10.1.2

Steps to reproduce:

  • Unlock Scatter Desktop
  • Open developer console with F12
  • Refresh with CTRL + R
  • The unlock screen is shown again. Enter your password and it will say password is incorrect.
  • Close / re-open Scatter Desktop and it will unlock with the same password as expected.
@nsjames
Copy link
Contributor

nsjames commented Apr 26, 2019

This is by design.
The seed that is used for encryption/decryption exists only on the main process and the connection between the main and renderer process is secured with a single-session keypair. So when you refresh the page the renderer is refreshed and gets a new keypair, but the main process is not refreshed and still holds a reference to the old keypair from the renderer making it so you can't apply a new seed or use the old one.

You can see here there's even special logic for when running in development mode to bypass that since it's a hassle for development: https://github.com/GetScatter/ScatterDesktop/blob/master/electron.js#L262

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants