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

secp256k1/ecdsa: update error types. #2281

Merged
merged 1 commit into from
Dec 16, 2020

Conversation

dnldd
Copy link
Member

@dnldd dnldd commented Jul 20, 2020

This updates the ECDSA error types to leverage go 1.13 errors.Is/As functionality as well as conform to the error infrastructure best practices outline in #2181.

@davecgh davecgh added this to the 1.7.0 milestone Jul 20, 2020
@dnldd dnldd force-pushed the update_ecdsa_error_types branch from de056dc to 2dc3946 Compare October 21, 2020 11:46
Copy link
Member

@davecgh davecgh left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Looks good overall. I only noticed on nitpick that is identified inline.

However, this is changing the public API in a non-backwards compatible way. That means a major module version bump is required. Similar to previous cases such as for gcs, please follow the standard practice for a major version bump to v4 via a separate PR.

dcrec/secp256k1/ecdsa/error.go Outdated Show resolved Hide resolved
This updates the ECDSA error types to leverage go
1.13 errors.Is/As functionality as well as conform
to the error infrastructure best practices.
@dnldd dnldd force-pushed the update_ecdsa_error_types branch from 2dc3946 to d31c8d3 Compare December 16, 2020 22:54
@davecgh davecgh merged commit 50699ed into decred:master Dec 16, 2020
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.

2 participants