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

Implement reduce from a 32-byte / 256-bit scalar mod l. #164

Closed
jeandudey opened this issue Jul 18, 2018 · 1 comment
Closed

Implement reduce from a 32-byte / 256-bit scalar mod l. #164

jeandudey opened this issue Jul 18, 2018 · 1 comment

Comments

@jeandudey
Copy link
Contributor

I need a function to convert a 32-byte input to an scalar

@isislovecruft
Copy link
Member

Scalar::from_bytes_mod_order(bytes: [u8; 32]) should do what you need. :)

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

No branches or pull requests

2 participants