Struct bellperson::bls::G1Projective [−][src]
Trait Implementations
impl ClearH for G1
[src]
impl Clone for G1
[src]
impl Copy for G1
[src]
impl CurveProjective for G1
[src]
type Engine = Bls12
type Scalar = Fr
type Base = Fq
type Affine = G1Affine
pub fn random<R>(rng: &mut R) -> G1 where
R: RngCore,
[src]
R: RngCore,
pub fn zero() -> G1
[src]
pub fn one() -> G1
[src]
pub fn is_zero(&self) -> bool
[src]
pub fn is_normalized(&self) -> bool
[src]
pub fn batch_normalization<S>(v: &mut [S]) where
S: BorrowMut<G1>,
[src]
S: BorrowMut<G1>,
pub fn double(&mut self)
[src]
pub fn add_assign(&mut self, other: &G1)
[src]
pub fn add_assign_mixed(&mut self, other: &<G1 as CurveProjective>::Affine)
[src]
pub fn negate(&mut self)
[src]
pub fn mul_assign<S>(&mut self, other: S) where
S: Into<<<G1 as CurveProjective>::Scalar as PrimeField>::Repr>,
[src]
S: Into<<<G1 as CurveProjective>::Scalar as PrimeField>::Repr>,
pub fn into_affine(&self) -> G1Affine
[src]
pub fn recommended_wnaf_for_scalar(
scalar: <<G1 as CurveProjective>::Scalar as PrimeField>::Repr
) -> usize
[src]
scalar: <<G1 as CurveProjective>::Scalar as PrimeField>::Repr
) -> usize
pub fn recommended_wnaf_for_num_scalars(num_scalars: usize) -> usize
[src]
pub fn hash(msg: &[u8]) -> G1
[src]
Implements "Indifferentiable Hashing to Barreto–Naehrig Curves" from Foque-Tibouchi. https://www.di.ens.fr/~fouque/pub/latincrypt12.pdf
pub fn sub_assign(&mut self, other: &Self)
[src]
impl Debug for G1
[src]
impl Display for G1
[src]
impl Eq for G1
[src]
impl From<G1> for G1Affine
[src]
impl From<G1Affine> for G1
[src]
impl IsogenyMap for G1
[src]
pub fn isogeny_map(&mut self)
[src]
impl OsswuMap for G1
[src]
impl PartialEq<G1> for G1
[src]
impl StructuralEq for G1
[src]
Auto Trait Implementations
impl RefUnwindSafe for G1
[src]
impl Send for G1
[src]
impl Sync for G1
[src]
impl Unpin for G1
[src]
impl UnwindSafe for G1
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<PtT, X> HashToCurve<X> for PtT where
X: ExpandMsg,
PtT: ClearH + IsogenyMap + OsswuMap,
<PtT as CurveProjective>::Base: FromRO,
[src]
X: ExpandMsg,
PtT: ClearH + IsogenyMap + OsswuMap,
<PtT as CurveProjective>::Base: FromRO,
pub fn hash_to_curve<Mt, Dt>(msg: Mt, dst: Dt) -> PtT where
Mt: AsRef<[u8]>,
Dt: AsRef<[u8]>,
[src]
Mt: AsRef<[u8]>,
Dt: AsRef<[u8]>,
pub fn encode_to_curve<Mt, Dt>(msg: Mt, dst: Dt) -> PtT where
Mt: AsRef<[u8]>,
Dt: AsRef<[u8]>,
[src]
Mt: AsRef<[u8]>,
Dt: AsRef<[u8]>,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,