mirror of
https://github.com/pseXperiments/ff-Goldilocks.git
synced 2026-01-09 15:38:06 -05:00
feat: simplify trait bounds
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
//! This module defines our customized field trait.
|
||||
|
||||
use std::hash::Hash;
|
||||
|
||||
use ff::Field;
|
||||
use ff::FromUniformBytes;
|
||||
use ff::PrimeField;
|
||||
use halo2curves::serde::SerdeObject;
|
||||
use rand_core::RngCore;
|
||||
use serde::Serialize;
|
||||
|
||||
use crate::{fp2::GoldilocksExt2, Goldilocks, GoldilocksExt3};
|
||||
|
||||
pub trait SmallField: PrimeField + Serialize + SerdeObject {
|
||||
pub trait SmallField: Serialize + SerdeObject + FromUniformBytes<64> + Hash {
|
||||
/// Base field
|
||||
type BaseField: SmallField + FromUniformBytes<64>;
|
||||
/// Extension degree of the Field
|
||||
|
||||
Reference in New Issue
Block a user