[][src]Struct pvss::crypto::Scalar

pub struct Scalar { /* fields omitted */ }

Implementations

impl Scalar[src]

pub fn from_u32(v: u32) -> Scalar[src]

pub fn generate() -> Scalar[src]

pub fn multiplicative_identity() -> Scalar[src]

pub fn hash_points(points: Vec<Point>) -> Scalar[src]

pub fn pow(&self, pow: u32) -> Scalar[src]

pub fn inverse(&self) -> Scalar[src]

Trait Implementations

impl Add<Scalar> for Scalar[src]

type Output = Self

The resulting type after applying the + operator.

impl Clone for Scalar[src]

impl Mul<Scalar> for Scalar[src]

type Output = Self

The resulting type after applying the * operator.

impl PartialEq<Scalar> for Scalar[src]

impl Sub<Scalar> for Scalar[src]

type Output = Self

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for Scalar

impl Send for Scalar

impl Sync for Scalar

impl Unpin for Scalar

impl UnwindSafe for Scalar

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.