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

Group impl support #200

Merged
merged 9 commits into from Jul 9, 2021
Merged

Conversation

daxpedda
Copy link
Contributor

@daxpedda daxpedda commented Jul 6, 2021

  • Implements a generic holy the Group for both PublicKey and PrivateKey
  • Group::Scalar now requires Copy
  • Group::scalar_as_bytes now takes and returns a value instead of a reference
  • Group::hash_to_curve now returns a Result
  • expose map_to_curve::expand_message_xmd

There are quiet a bit of breaking changes, I didn't expect me doing this now, but it turned out that P256 is more important then we thought for our needs. I'm open to any suggestions.

Fixes #198.

src/keypair.rs Show resolved Hide resolved
src/keypair.rs Outdated Show resolved Hide resolved
@daxpedda
Copy link
Contributor Author

daxpedda commented Jul 6, 2021

Clippy is currently broken because of rust-lang/rust-clippy#7422.

@daxpedda daxpedda requested a review from kevinlewi July 8, 2021 18:06
Copy link
Contributor

@kevinlewi kevinlewi left a comment

Choose a reason for hiding this comment

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

Thanks, overall this is a great change!

@kevinlewi kevinlewi merged commit e5db303 into facebook:master Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Group implementation support
3 participants