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

chore: renaming to seedPhrase when phrase is used #477

Merged
merged 5 commits into from
Nov 27, 2019

Conversation

hanwencheng
Copy link
Contributor

Naming is the most difficult problem.

Renaming seed to seedPhrase if phrase is used.

In schema we use encryptedSeed since password will also used to secure that in the future version.

@@ -296,6 +296,8 @@ export default class AccountsStore extends Container<AccountsStoreState> {

async saveNewIdentity(seedPhrase, pin) {
const updatedIdentity = deepCopyIdentity(this.state.newIdentity);
//TODO encrypt seedPhrase with password in the future version,
// current encryption with only seedPhrase is compatible.
updatedIdentity.encryptedSeed = await encryptData(seedPhrase, pin);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently we only encrypt seedPhrase in encryptedSeed, but will include password in the future

@@ -38,7 +38,8 @@ type AccountMeta = {
};

export type Identity = {
encryptedSeedPhrase: string,
// encrypted seed include seedPhrase and password
Copy link
Contributor Author

Choose a reason for hiding this comment

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

currently only seedPhrase

@hanwencheng hanwencheng changed the title Chore: renaming to seedPhrase when phrase is used chore: renaming to seedPhrase when phrase is used Nov 26, 2019
@@ -45,6 +45,7 @@ build/
.gradle
local.properties
*.iml
gen/
Copy link
Contributor

Choose a reason for hiding this comment

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

just curious, what is generating this?

Copy link
Contributor Author

@hanwencheng hanwencheng Nov 26, 2019

Choose a reason for hiding this comment

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

I don't know either, after build android with gradle assemble, it created three files under gen: buildConfig.java, Manifest.java and R.java. On each of them there is a head comment said:

/*___Generated_by_IDEA___*/

So I just add them there.

Copy link
Contributor

@pmespresso pmespresso left a comment

Choose a reason for hiding this comment

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

lgtm

@hanwencheng hanwencheng merged commit bdb2349 into master Nov 27, 2019
@hanwencheng hanwencheng deleted the hanwen-renaming-seed branch November 27, 2019 11:51
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 this pull request may close these issues.

3 participants