Type Alias dusk_jubjub::JubJubExtended

source ·
pub type JubJubExtended = ExtendedPoint;
Expand description

An alias for ExtendedPoint

Aliased Type§

struct JubJubExtended { /* private fields */ }

Implementations§

source§

impl JubJubExtended

source

pub const fn from_affine(affine: JubJubAffine) -> Self

Constructs an extended point (with Z = 1) from an affine point using the map (x, y) => (x, y, 1, x, y).

source

pub const fn from_raw_unchecked( u: BlsScalar, v: BlsScalar, z: BlsScalar, t1: BlsScalar, t2: BlsScalar ) -> Self

Constructs an extended point from its raw internals

source

pub const fn get_u(&self) -> BlsScalar

Returns the u-coordinate of this point.

source

pub const fn get_v(&self) -> BlsScalar

Returns the v-coordinate of this point.

source

pub const fn get_z(&self) -> BlsScalar

Returns the z-coordinate of this point.

source

pub const fn get_t1(&self) -> BlsScalar

Returns the t1-coordinate of this point.

source

pub const fn get_t2(&self) -> BlsScalar

Returns the t2-coordinate of this point.

source

pub fn to_hash_inputs(&self) -> [BlsScalar; 2]

Returns two scalars suitable for hashing that represent the Extended Point.