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

Merge updates from the python project template #96

Merged
merged 201 commits into from
Jan 10, 2024

Conversation

pacrob
Copy link
Collaborator

@pacrob pacrob commented Dec 20, 2023

What was wrong?

Joining this repo with the python project template. Notable changes:

  • drop python 3.6 and 3.7 support
  • add python 3.11 support
  • use pre-commit for linting
  • change the name of the master branch to main
  • drop tests for coincurve<12 , as 12 is the first version to support python 3.8
  • add tests for coincurve up to the current v18

Cute Animal Picture

image

@pacrob pacrob force-pushed the upgrade-template branch 4 times, most recently from e61d240 to fb76f81 Compare December 21, 2023 18:40
signature_bytes = signature.to_bytes()
try:
public_key_bytes = self.keys.PublicKey.from_signature_and_message(
signature_bytes,
msg_hash,
hasher=None,
).format(compressed=False)[1:]
except (ValueError, Exception) as err:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

A ValueError is an Exception, so catching both is redundant.

@pacrob pacrob force-pushed the upgrade-template branch 5 times, most recently from ee8082c to 3b06e4f Compare January 3, 2024 19:14
Copy link
Contributor

@reedsa reedsa left a comment

Choose a reason for hiding this comment

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

lgtm

@pacrob pacrob merged commit 563678a into ethereum:main Jan 10, 2024
30 checks passed
@pacrob pacrob deleted the upgrade-template branch January 10, 2024 19:08
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