Struct Point
pub struct Point {
pub x: Field,
pub y: Field,
pub is_infinite: bool,
}
Fields
x: Fieldy: Fieldis_infinite: boolImplementations
impl Point
pub fn generator() -> Self
pub fn point_at_infinity() -> Self
pub fn double(self) -> Self
pub fn to_embedded(self) -> EmbeddedCurvePoint
Trait implementations
impl Add for Point
pub fn add(self, other: Self) -> Self
impl Deserialize for Point
pub fn deserialize(fields: [Field; 3]) -> Self
pub fn stream_deserialize<let K: u32>(reader: &mut Reader<K>) -> Self
impl Empty for Point
pub fn empty() -> Self
pub fn is_empty(self) -> bool
pub fn assert_empty<let S: u32>(self, msg: str<S>)
impl Eq for Point
pub fn eq(self, other: Self) -> bool
impl From<EmbeddedCurvePoint> for Point
pub fn from(p: EmbeddedCurvePoint) -> Self
impl Hash for Point
pub fn hash(self) -> Field
impl Neg for Point
pub fn neg(self) -> Self
impl Packable for Point
impl Serialize for Point
pub fn serialize(self) -> [Field; 3]
pub fn stream_serialize<let K: u32>(self, writer: &mut Writer<K>)
impl Sub for Point
pub fn sub(self, other: Self) -> Self
Note: Does not return a valid point on curve - instead represents an empty/"unpopulated" point struct (e.g. empty/unpopulated value in an array of points).