Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Accept 11 words legacy recovery phrases for Parity Signer compatibility #351

Merged
merged 2 commits into from
Jan 11, 2019

Conversation

Tbaut
Copy link
Collaborator

@Tbaut Tbaut commented Jan 10, 2019

@ltfschoen
Copy link
Contributor

I just used the branch from this PR #336, and applied your change in this PR to it. Then I tried to import an account into Fether that I had previously created on Parity Signer (which has a 11 recovery words), and I was able to do so correctly.

There were some issues but they need to be addressed in #336

@@ -131,7 +131,7 @@ export class CreateAccountStore {
const words = phrase.split(' ');
const PARITY_WORDLIST = getParityWordlist();
if (
words.length < 12 ||
words.length < 11 ||
Copy link
Contributor

Choose a reason for hiding this comment

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

could we use a constant for this instead of a magic number?
i.e. const MAX_PARITY_SIGNER_RECOVERY_WORDS = 11;

Copy link
Collaborator

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

Can merge right after Luke's proposition is implemented

@amaury1093 amaury1093 merged commit 118f445 into master Jan 11, 2019
@amaury1093 amaury1093 deleted the tbaut-accept-11-words-legacy-recovery branch January 11, 2019 10:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accept a 11 or 12 words parity recovery phrase
4 participants