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

General Improvements #47

Merged
merged 6 commits into from
Dec 25, 2021
Merged

General Improvements #47

merged 6 commits into from
Dec 25, 2021

Conversation

daxpedda
Copy link
Contributor

@daxpedda daxpedda commented Dec 24, 2021

  • Add a Result shorthand: Result<T, InternalError.
  • Rename InternalError to Error, I believe this was an artifact when we still had multiple error types.
  • Re-export Group, Result, Error, VerifiableClientBatchFinalizeResult and VerifiableServerBatchEvaluateResult.
  • Made group and error modules private, because of re-exports.
  • Re-export Proof, this was kinda a bug because downstream users couldn't use that type, strange that Rust didn't complain.
  • Move deserialize to the serialize module, the only place it was used.
  • Make serialize and serialize_owned to methods of Serialized, which was renamed to Serialize.
  • Update p256 to 0.10.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 24, 2021
Comment on lines +27 to +28
output[L::USIZE.saturating_sub(SIZEOF_USIZE)..]
.copy_from_slice(&input.to_be_bytes()[SIZEOF_USIZE.saturating_sub(L::USIZE)..]);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is correct as far as I can tell, but I'm pointing it out here to be extra-careful.

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.

Great!

@kevinlewi kevinlewi merged commit 55ef981 into facebook:main Dec 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants