Trait poly_commitment::commitment::CommitmentCurve
source · pub trait CommitmentCurve: AffineRepr + Sub<Output = Self::Group> {
type Params: SWCurveConfig;
type Map: GroupMap<Self::BaseField>;
// Required methods
fn to_coordinates(&self) -> Option<(Self::BaseField, Self::BaseField)>;
fn of_coordinates(x: Self::BaseField, y: Self::BaseField) -> Self;
}
Expand description
A useful trait extending AffineRepr for commitments.
Unfortunately, we can’t specify that AffineRepr<BaseField : PrimeField>
,
so usage of this traits must manually bind G::BaseField: PrimeField
.