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

Remove num-bigint as a crate dependency #6

Merged
merged 3 commits into from
Sep 3, 2023

Conversation

ArnaudBrousseau
Copy link
Owner

This PR removes num-bigint as a direct create dependency. I'm still keeping it in dev deps because I need it to parse decimal strings. Other than that we're using Arkwork's Bigint entirely!

This PR also up-levels SecretKey: it's no longer an arbitrary BigInt, it's now a proper field element (Fr). This means we automatically enforce that it's between 0 and p-1.

It took a bit of work to find from_be_bytes_mod_order; glad it exists.

@ArnaudBrousseau ArnaudBrousseau merged commit e7a38dc into main Sep 3, 2023
2 checks passed
@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