/// Return the curve this field element is from
Return the curve this field element is from
Return the curve this field element is from
pub fn curve(&self) -> EccCurve {
        match self {
            Self::K256(_) => EccCurve::new(EccCurveType::K256),
            Self::P256(_) => EccCurve::new(EccCurveType::P256),
        }
    }
pub fn curve ( & self ) -> EccCurve { match self { Self :: K256 ( _ ) => EccCurve :: new ( EccCurveType :: K256 ) , Self :: P256 ( _ ) => EccCurve :: new ( EccCurveType :: P256 ) , } }
Return the curve this field element is from
Return the curve this field element is from
&self