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

accounts/keystore, crypto: don't enforce key checks on existing keyfiles #14565

Merged
merged 1 commit into from
Jun 1, 2017

Conversation

karalabe
Copy link
Member

@karalabe karalabe commented Jun 1, 2017

The #14502 PR turned out to be a bit overzealous. It enforced all private keys to be 256 bits. Although it makes sense, apparently there are some very old keyfiles lingering here and there that were encoded badly and thus fail to decode with the size enforcement.

This PR changes the logic so that enforcement is only done when creating new keys, but if a keyfile contains something weird already, it will still accept it.

@karalabe karalabe added this to the 1.6.3 milestone Jun 1, 2017
Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

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

LGTM

@karalabe karalabe merged commit f272879 into ethereum:master Jun 1, 2017
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.

None yet

4 participants