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-2386 (draft): Eth2 wallet #1117

Merged
merged 133 commits into from
May 11, 2020
Merged

EIP-2386 (draft): Eth2 wallet #1117

merged 133 commits into from
May 11, 2020

Conversation

paulhauner
Copy link
Member

@paulhauner paulhauner commented May 7, 2020

Issue Addressed

NA

Proposed Changes

Implements the draft EIP-2386 for an encrypted BLS wallet with support for hierarchical key derivation.

Additional Info

TODO

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.

A couple of minor things but mostly there :)

eth2/utils/eth2_wallet/src/json_wallet/mod.rs Show resolved Hide resolved
///
/// - If `wallet_password` is unable to decrypt `self`.
/// - If `keystore_password.is_empty()`.
/// - If `self.nextaccount == u32::max_value() - 1`.
Copy link
Member

Choose a reason for hiding this comment

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

self.nextaccount == u32::max_value() ?

The checked_add() would fail when we add 1 to u32::max_value?

eth2/utils/eth2_wallet/tests/eip2386_vectors.rs Outdated Show resolved Hide resolved
eth2/utils/eth2_wallet/tests/json.rs Outdated Show resolved Hide resolved
eth2/utils/eth2_wallet/tests/json.rs Outdated Show resolved Hide resolved
@paulhauner
Copy link
Member Author

All comments addressed, thank you!

@paulhauner paulhauner added ready-for-review The code is ready for review and removed blocked work-in-progress PR is a work-in-progress labels May 11, 2020
@paulhauner paulhauner marked this pull request as ready for review May 11, 2020 09:13
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.

Happy with the changes :)

@paulhauner paulhauner merged commit cab6c58 into master May 11, 2020
@paulhauner paulhauner deleted the wallet branch May 11, 2020 22:55
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