Skip to content

PrimeField::Repr ambiguous endianness #106

@jonathanpwang

Description

@jonathanpwang

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions