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

PrimeField::Repr ambiguous endianness #106

Open
jonathanpwang opened this issue May 26, 2023 · 0 comments
Open

PrimeField::Repr ambiguous endianness #106

jonathanpwang opened this issue May 26, 2023 · 0 comments

Comments

@jonathanpwang
Copy link

It is unsafe in downstream use cases for PrimeField::to_repr and PrimeField::from_repr to have ambiguous endianness. (E.g., it's oftentimes hard to implement something for ff::PrimeField without assuming something about endianness.)

Can you either add an ENDIANNESS const or functions like to_bytes_le and from_bytes_le?

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

1 participant