-
Notifications
You must be signed in to change notification settings - Fork 168
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
Conversation
@@ -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); |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
currently only seedPhrase
@@ -45,6 +45,7 @@ build/ | |||
.gradle | |||
local.properties | |||
*.iml | |||
gen/ |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Naming is the most difficult problem.
Renaming
seed
toseedPhrase
if phrase is used.In schema we use
encryptedSeed
since password will also used to secure that in the future version.