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

Cleanup address utils #137

Merged
merged 3 commits into from
Oct 18, 2018
Merged

Conversation

onyb
Copy link
Contributor

@onyb onyb commented Oct 13, 2018

What was wrong?

  • eth_tester.utils.account.generate_contract_address and eth_tester.utils.address.generate_contract_address were duplicates.

  • eth_tester.utils.account.private_key_to_address was not using the standard eth_keys API.

Closes #86.

How was it fixed?

  • removed the eth_tester.utils.account.generate_contract_address.
  • modified eth_tester.utils.address.generate_contract_address to return a canonical address.
  • modified the eth_tester.utils.account.private_key_to_address to use eth_keys API instead of the utils in the sekp256k1 module.
  • subsequently removed the sekp256k1 and jacobian modules, which were not used anymore.

Cute Animal Picture

Cute animal picture

Copy link
Contributor

@carver carver left a comment

Choose a reason for hiding this comment

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

Thanks!

Feel free to squash any final changes with the flake8 commit.

eth_tester/utils/address.py Outdated Show resolved Hide resolved
Split generate_contract_address logic into multiple lines
@pipermerriam pipermerriam merged commit 9c852dd into ethereum:master Oct 18, 2018
@onyb onyb deleted the cleanup-address-utils branch October 18, 2018 17:40
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.

Cleanup address and account utils
3 participants