[−][src]Enum accumulator::group::ClassGroup
Class group implementation, with future optimizations available via the --features
flag.
Discriminant generated via OpenSSL.
Methods
impl ClassGroup
[src]
pub fn normalize(
a: Integer,
b: Integer,
c: Integer
) -> (Integer, Integer, Integer)
[src]
a: Integer,
b: Integer,
c: Integer
) -> (Integer, Integer, Integer)
This method is only public for benchmarking. You should not need to use it.
pub fn reduce(a: Integer, b: Integer, c: Integer) -> (Integer, Integer, Integer)
[src]
This method is only public for benchmarking. You should not need to use it.
pub fn square(x: &ClassElem) -> ClassElem
[src]
This method is only public for benchmarking. You should not need to use it.
Trait Implementations
impl Group for ClassGroup
[src]
type Elem = ClassElem
The associated group element type for this group.
fn op_(_: &Integer, x: &ClassElem, y: &ClassElem) -> ClassElem
[src]
fn id_(d: &Integer) -> ClassElem
[src]
fn inv_(_: &Integer, x: &ClassElem) -> ClassElem
[src]
fn exp_(_: &Integer, a: &ClassElem, n: &Integer) -> ClassElem
[src]
fn id() -> Self::Elem
[src]
Returns the identity element of the group.
fn op(a: &Self::Elem, b: &Self::Elem) -> Self::Elem
[src]
Applies the group operation to elements a
and b
and returns the result.
fn exp(a: &Self::Elem, n: &Integer) -> Self::Elem
[src]
Applies the group operation to a
and itself n
times and returns the result.
fn inv(a: &Self::Elem) -> Self::Elem
[src]
Returns the group inverse of a
.
impl UnknownOrderGroup for ClassGroup
[src]
fn unknown_order_elem_(d: &Integer) -> ClassElem
[src]
fn unknown_order_elem() -> Self::Elem
[src]
Returns an element of unknown order in the group.
impl<A, B, C> ElemFrom<(A, B, C)> for ClassGroup where
Integer: From<A>,
Integer: From<B>,
Integer: From<C>,
[src]
Integer: From<A>,
Integer: From<B>,
Integer: From<C>,
Panics if (a, b, c)
cannot be reduced to a valid class element.
impl TypeRep for ClassGroup
[src]
type Rep = Integer
The associated type of the simulated type-level static information.
fn rep() -> &'static Self::Rep
[src]
impl Eq for ClassGroup
[src]
impl PartialEq<ClassGroup> for ClassGroup
[src]
fn eq(&self, other: &ClassGroup) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Clone for ClassGroup
[src]
fn clone(&self) -> ClassGroup
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for ClassGroup
[src]
impl Hash for ClassGroup
[src]
Auto Trait Implementations
impl Send for ClassGroup
impl Sync for ClassGroup
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Same for T
type Output = T
Should always be Self