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

Serialization simplification and better errors #5

Merged
merged 5 commits into from
Sep 2, 2023

Conversation

ArnaudBrousseau
Copy link
Owner

This PR contains the following

  • Use Arkworks' Serialization/Deserialization traits instead of previously-written custom logic. See this excellent response from Arkworks' maintainer for context.
  • Rework error handling and enums to be more ergonomic and digestible (better error messages!)
  • (minor) in keygen I noticed I had previously hardcoded the length of OKM to 42. Instead let's use the value computed above. No reason to allow for drift in the value of L.

- Use Arkworks Serialization/Deserialization traits instead of
  previously written custom logic
- Drop `num-bigint` as a result (from serialization file -- it's still
  used in the main lib.rs)
- Rework error handling and enums to be more ergonomic
@ArnaudBrousseau ArnaudBrousseau merged commit dbbcbaa into main Sep 2, 2023
@ArnaudBrousseau ArnaudBrousseau mentioned this pull request Sep 3, 2023
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