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

EIP-2335: Keystore #1071

Merged
merged 69 commits into from
May 11, 2020
Merged

EIP-2335: Keystore #1071

merged 69 commits into from
May 11, 2020

Conversation

paulhauner
Copy link
Member

@paulhauner paulhauner commented Apr 28, 2020

Issue Addressed

Which issue # does this PR address?

Proposed Changes

Implements EIP-2335 for BLS keystores.

Builds upon @pawanjay176's PRs:

Additional Info

N/A

@paulhauner paulhauner added work-in-progress PR is a work-in-progress may-sec-review labels Apr 28, 2020
@paulhauner
Copy link
Member Author

All comments addressed, thank you for the detailed review! ❤️

@paulhauner paulhauner changed the title Keystore EIP-2335: Keystore May 7, 2020
@paulhauner
Copy link
Member Author

I had to make a change to split apart and make-public the encrypt and decrypt functions so I could so some stuff upsteam, sorry about the noise.

@paulhauner
Copy link
Member Author

I also realized the Password struct is unnecessary, we can just always accept the password as a &[u8] without forcing the user to use our Zeroize wrapper. Sorry, I'm finding out this stuff as I implement upstream things.

Copy link
Member

@kirk-baird kirk-baird 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, a couple more parameters that I think we should check against.

eth2/utils/eth2_keystore/src/keystore.rs Outdated Show resolved Hide resolved
eth2/utils/eth2_keystore/src/keystore.rs Outdated Show resolved Hide resolved
eth2/utils/eth2_keystore/src/keystore.rs Show resolved Hide resolved
eth2/utils/eth2_keystore/tests/json.rs Show resolved Hide resolved
@paulhauner
Copy link
Member Author

All comments addressed, thank you!

Copy link
Member

@kirk-baird kirk-baird 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!!

Assuming all CI checks pass I'm happy :)

@paulhauner paulhauner merged commit f30271e into master May 11, 2020
@paulhauner paulhauner deleted the keystore branch May 11, 2020 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-review The code is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants