Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Broken seed overlay is not displayed #14001

Closed
NejcZdovc opened this issue May 3, 2018 · 4 comments · Fixed by #14002
Closed

Broken seed overlay is not displayed #14001

NejcZdovc opened this issue May 3, 2018 · 4 comments · Fixed by #14002

Comments

@NejcZdovc
Copy link
Contributor

Description

Steps to Reproduce

  1. Enable payments and close browser after wallet is created
  2. Edit ledger-state.json file and change the keyinfo section to look like this per When detecting a corrupted seed #13424 (comment):
    "keyinfo": {
    "seed": {
    "0": 0,
    "1": 0
    }
  3. Relaunch browser go to payments --> payments doesn't show corrupted overlay
  4. Furthermore, when I go to the gear icon and try to view my words, all backup words are displayed even though my ledger-state.json file shows keyinfo as above.

Actual result:

Expected result:

Reproduces how often:

Brave Version

about:brave info:

Reproducible on current live release:

Additional Information

@NejcZdovc NejcZdovc added this to the 0.22.x Release 3 (Beta channel) milestone May 3, 2018
@NejcZdovc NejcZdovc self-assigned this May 3, 2018
@NejcZdovc NejcZdovc added regression 0.22.x issue first seen in 0.22.x labels May 3, 2018
NejcZdovc added a commit to NejcZdovc/browser-laptop that referenced this issue May 3, 2018
Resolves brave#14001

Auditors:

Test Plan:
jasonrsadler pushed a commit that referenced this issue May 3, 2018
Fixes broken seed overlay trigger
jasonrsadler pushed a commit that referenced this issue May 3, 2018
Fixes broken seed overlay trigger
jasonrsadler pushed a commit that referenced this issue May 3, 2018
Fixes broken seed overlay trigger
@LaurenWags
Copy link
Member

LaurenWags commented May 8, 2018

Verified with macOS 10.12.6 using

  • 0.22.703 903b8d0
  • muon 6.0.8
  • libchromiumcontent 66.0.3359.139

Verified on Windows x64

  • 0.22.703 903b8d0
  • libchromiumcontent 66.0.3359.139
  • muon: 6.0.8

Verified on Ubuntu 17.10 x64

  • 0.22.703 903b8d0
  • libchromiumcontent 66.0.3359.139
  • muon: 6.0.8

@LaurenWags
Copy link
Member

LaurenWags commented May 8, 2018

Note, while testing @kjozwiak and I did encounter the following error. Confirmed with @ryanml and @NejcZdovc that it is expected in this scenario.

TypeError: Invalid entropy
at Object.entropyToMnemonic (/Applications/Brave-Beta.app/Contents/Resources/app.asar/node_modules/bip39/index.js:98:34)
at Object.fromBytesOrHex (/Applications/Brave-Beta.app/Contents/Resources/app.asar/node_modules/brave-crypto/index.js:191:20)
at Object.Client.getWalletPassphrase (/Applications/Brave-Beta.app/Contents/Resources/app.asar/node_modules/bat-client/index.js:521:39)
at getStateInfo (/Applications/Brave-Beta.app/Contents/Resources/app.asar/app/browser/api/ledger.js:1680:45)
at Object.onInitRead (/Applications/Brave-Beta.app/Contents/Resources/app.asar/app/browser/api/ledger.js:2326:11)
at ledgerReducer (/Applications/Brave-Beta.app/Contents/Resources/app.asar/app/browser/reducers/ledgerReducer.js:334:27)
at handleAppAction (/Applications/Brave-Beta.app/Contents/Resources/app.asar/js/stores/appStore.js:249:16)
at callbacks.forEach (/Applications/Brave-Beta.app/Contents/Resources/app.asar/js/dispatcher/appDispatcher.js:107:7)
at Array.forEach ()

@btlechowski
Copy link
Contributor

Is it valid behavior that recovery dialog is shown?
image

On top of that I can go to 'Backup my wallet ' and use the words for recovery.

Tested with clean profile on

Brave: 0.22.703 
V8: 6.6.346.26 
rev: 903b8d0d3703b5fdc5a719294403e7460d9b806d 
Muon: 6.0.8 
OS Release: 4.13.0-21-generic 
Update Channel: Beta 
OS Architecture: x64 
OS Platform: Linux 
Node.js: 7.9.0 
Brave Sync: v1.4.2 
libchromiumcontent: 66.0.3359.139

@NejcZdovc
Copy link
Contributor Author

@btlechowski yes broken seed dialog should be displayed when you corrupt your seed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.