ff: Remove Ord bound from PrimeField

ff_derive still implements Ord and PartialOrd for the fields it
implements, because pairing::bls12_381 internally assumes that those are
implemented. Once we delete that implementation, we will remove the Ord
and PartialOrd implementations from ff_derive.
This commit is contained in:
Jack Grigg
2020-05-02 15:48:51 +12:00
parent 38f87c2e73
commit fb31d09218
4 changed files with 19 additions and 39 deletions

View File

@@ -147,7 +147,7 @@ impl Endianness for byteorder::LittleEndian {
}
/// This represents an element of a prime field.
pub trait PrimeField: Field + Ord + From<u64> {
pub trait PrimeField: Field + From<u64> {
/// The prime field can be converted back and forth into this binary
/// representation.
type Repr: Default + AsRef<[u8]> + AsMut<[u8]> + From<Self> + for<'r> From<&'r Self>;