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

Update Ethdo Keystore Deps #7537

Merged
merged 17 commits into from
Oct 15, 2020
Merged

Update Ethdo Keystore Deps #7537

merged 17 commits into from
Oct 15, 2020

Conversation

rauljordan
Copy link
Contributor

@rauljordan rauljordan commented Oct 15, 2020

What does this PR do? Why is it needed?

This PR updates the following ethdo dependencies

go-eth2-wallet-encryptor-keystorev4 v1.1.1
go-eth2-wallet v1.14.1
go-eth2-wallet-hd/v2 v2.5.1
go-eth2-wallet-nd/v2 v2.3.1
go-eth2-wallet-distributed v1.1.1

This allows us to be fully compliant with the key derivation from the eth2 deposit cli, which uses an updated pbkdf parameter which changes the way seeds derive into private keys. To support users using our current HD wallet, we leverage keystore versions to prevent breaking their current setups.

To ensure that we are backwards compatible, we add a version field to the keymanageropts for the keymanagers. If version is "2", we use the new dependencies to derive and create keystore files, and the old ones otherwise.

Which issues(s) does this PR fix?

Fixes #7448

Other notes for review

  • Ensure key derivation matches latest launchpad eth2 deposit cli
  • Update all ethdo deps
  • Check in old derivation algorithm for backwards compatibility
  • Leverage keystore versions to conditionally determine what derivation algorithm to apply

@rauljordan rauljordan marked this pull request as ready for review October 15, 2020 18:43
@rauljordan rauljordan requested a review from a team as a code owner October 15, 2020 18:43
@rauljordan rauljordan self-assigned this Oct 15, 2020
@rauljordan rauljordan added this to the v1.0.0-beta milestone Oct 15, 2020
WORKSPACE Outdated Show resolved Hide resolved
WORKSPACE Outdated
@@ -157,7 +157,7 @@ go_rules_dependencies()

go_register_toolchains(nogo = "@//:nogo")

load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
Copy link
Member

Choose a reason for hiding this comment

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

Revert

@rauljordan
Copy link
Contributor Author

Ready again @prestonvanloon

@codecov
Copy link

codecov bot commented Oct 15, 2020

Codecov Report

Merging #7537 into master will decrease coverage by 0.23%.
The diff coverage is 20.32%.

@@            Coverage Diff             @@
##           master    #7537      +/-   ##
==========================================
- Coverage   61.89%   61.66%   -0.24%     
==========================================
  Files         422      423       +1     
  Lines       29774    29854      +80     
==========================================
- Hits        18430    18410      -20     
- Misses       8383     8481      +98     
- Partials     2961     2963       +2     

@rauljordan rauljordan merged commit 7abc1fe into master Oct 15, 2020
@rauljordan rauljordan deleted the update-ethdo-deps branch October 15, 2020 20:33
@nisdas nisdas mentioned this pull request Oct 24, 2020
3 tasks
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.

Prysm Wallet Recovery Not Aligned With Latest Launchpad
2 participants