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
impl JubJubExtended
sourcepub const fn from_affine(affine: JubJubAffine) -> Self
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)
.
sourcepub const fn from_raw_unchecked(
u: BlsScalar,
v: BlsScalar,
z: BlsScalar,
t1: BlsScalar,
t2: BlsScalar
) -> Self
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
sourcepub fn to_hash_inputs(&self) -> [BlsScalar; 2]
pub fn to_hash_inputs(&self) -> [BlsScalar; 2]
Returns two scalars suitable for hashing that represent the Extended Point.