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: add scalar::IsHigh trait #814

Merged
merged 1 commit into from
Nov 17, 2021

Conversation

tarcieri
Copy link
Member

Adds a trait for determining if a given scalar is larger than the order divided by 2.

This is useful for "normalization" use cases such as low-S normalized ECDSA signatures, where a scalar is conditionally negated if "high".

Adds a trait for determining if a given scalar is larger than the order
divided by 2.

This is useful for "normalization" use cases such as low-S normalized
ECDSA signatures, where a scalar is conditionally negated if "high".
@tarcieri tarcieri merged commit 0b26502 into master Nov 17, 2021
@tarcieri tarcieri deleted the elliptic-curve/scalar-is-high-trait branch November 17, 2021 21:02
@tarcieri tarcieri mentioned this pull request Nov 20, 2021
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