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

elliptic-curve: ensure PublicKey is not the identity point #404

Merged
merged 1 commit into from
Dec 17, 2020

Conversation

tarcieri
Copy link
Member

Adds an invariant to the AffinePoint wrapped by a PublicKey which ensures it is not the identity point.

This is notable now that we support SEC1 encoding of identity points (#401), as it might be unexpected to end users to receive public keys which encode the identity element.

Adds an invariant to the `AffinePoint` wrapped by a `PublicKey` which
ensures it is not the identity point.

This is notable now that we support SEC1 encoding of identity points
(#401), as it might be unexpected to end users to receive public keys
which encode the identity element.
@tarcieri tarcieri merged commit 76c8f99 into master Dec 17, 2020
@tarcieri tarcieri deleted the elliptic-curve/ensure-public-keys-are-not-identity branch December 17, 2020 02:04
@tarcieri tarcieri mentioned this pull request Dec 17, 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.

1 participant