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

Improvement/migrate aes crypto lib #1755

Merged
merged 18 commits into from
Aug 12, 2020

Conversation

andrepimenta
Copy link
Member

@andrepimenta andrepimenta commented Aug 6, 2020

Description

Migration to the current version of aes-crypto lib from the forked one.

@andrepimenta andrepimenta requested a review from a team as a code owner August 6, 2020 20:23
*
* @param password - Password to recreate and set the vault with
*/
export const recreateVault = async (password = '', selectedAddress) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this taking imported accounts or it's going to be deleted?

@ibrahimtaveras00 ibrahimtaveras00 added next release QA in Progress QA has started on the feature. labels Aug 7, 2020
Copy link
Contributor

@ibrahimtaveras00 ibrahimtaveras00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, QA Passed 👍

@ibrahimtaveras00 ibrahimtaveras00 added QA Passed A successful QA run through has been done and removed QA in Progress QA has started on the feature. labels Aug 7, 2020
@ibrahimtaveras00 ibrahimtaveras00 added needs-qa Any New Features that needs a full manual QA prior to being added to a release. and removed QA Passed A successful QA run through has been done labels Aug 10, 2020
Copy link
Contributor

@ibrahimtaveras00 ibrahimtaveras00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still fails on imported accounts as mentioned in #1756

@ibrahimtaveras00 ibrahimtaveras00 added QA'd - Issues Found QA has been complete, however issues have been discovered that need to be addressed and removed needs-qa Any New Features that needs a full manual QA prior to being added to a release. labels Aug 10, 2020
@andrepimenta andrepimenta added needs-qa Any New Features that needs a full manual QA prior to being added to a release. and removed QA'd - Issues Found QA has been complete, however issues have been discovered that need to be addressed labels Aug 11, 2020
const { KeyringController, PreferencesController } = Engine.context;
const seedPhrase = await getSeedPhrase(password);

let importedAccounts = [];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like is the same code right? https://github.com/MetaMask/metamask-mobile/pull/1756/files#diff-05500d00f4a6959745b57a220987a4b6R359
would be nice to have Logger here to know what's going on and remove duplicated code, but we can do the last after releasing

@ibrahimtaveras00
Copy link
Contributor

Imported accounts are not lost on login 👍

I did notice that we show a different error message on android with empty password or wrong password rather than how in iOS we show Invalid password

seen here = https://recordit.co/K8r7qnxUl8

Screen Shot 2020-08-11 at 5 30 04 PM

Again this is only on android. To reproduce:

  • either sync with extension/import via seed phrase/ or create a new wallet
  • after arriving on wallet view, open drawer and log out
  • now on login screen simply tap log in or input an invalid password

@ibrahimtaveras00 ibrahimtaveras00 added QA'd - Issues Found QA has been complete, however issues have been discovered that need to be addressed and removed needs-qa Any New Features that needs a full manual QA prior to being added to a release. labels Aug 11, 2020
@andrepimenta andrepimenta added needs-qa Any New Features that needs a full manual QA prior to being added to a release. and removed QA'd - Issues Found QA has been complete, however issues have been discovered that need to be addressed labels Aug 12, 2020
@andrepimenta
Copy link
Member Author

@ibrahimtaveras00 just fixed the error message on Android 👍 You can take a look again

Copy link
Contributor

@ibrahimtaveras00 ibrahimtaveras00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA Passed 👍

@ibrahimtaveras00 ibrahimtaveras00 added QA Passed A successful QA run through has been done and removed needs-qa Any New Features that needs a full manual QA prior to being added to a release. labels Aug 12, 2020
@andrepimenta andrepimenta merged commit 84cc298 into develop Aug 12, 2020
@andrepimenta andrepimenta deleted the improvement/migrate-aes-crypto-lib branch August 12, 2020 17:34
rickycodes pushed a commit that referenced this pull request Jan 31, 2022
* Update aes crypto lib working

* Working on iOS

* init migration

* Recreate vault on login and fingerprint

* Fix selectedAddress

* Add passwordSet again

* Fix recreate vault

* Improve getting simple key pair accounts

* Update tests

* Make sure selectedAddress is available

* Fix for multiple imported accounts

* remove unecessary async await

* Rename and remove unecessary code

* Using logger now

* Check new error on android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next release QA Passed A successful QA run through has been done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants