Fabcoin Core
0.16.2
P2P Digital Currency
|
Public Member Functions | |
const AbstractRing< T > & | GetRing () const |
bool | Equal (const Element &a, const Element &b) const |
Compare two elements for equality. More... | |
const Element & | Identity () const |
Provides the Identity element. More... | |
const Element & | Add (const Element &a, const Element &b) const |
Adds elements in the group. More... | |
Element & | Accumulate (Element &a, const Element &b) const |
TODO. More... | |
const Element & | Inverse (const Element &a) const |
Inverts the element in the group. More... | |
const Element & | Subtract (const Element &a, const Element &b) const |
Subtracts elements in the group. More... | |
Element & | Reduce (Element &a, const Element &b) const |
Reduces an element in the congruence class. More... | |
const Element & | Double (const Element &a) const |
Doubles an element in the group. More... | |
Element | ScalarMultiply (const Element &a, const Integer &e) const |
Performs a scalar multiplication. More... | |
Element | CascadeScalarMultiply (const Element &x, const Integer &e1, const Element &y, const Integer &e2) const |
TODO. More... | |
void | SimultaneousMultiply (Element *results, const Element &base, const Integer *exponents, unsigned int exponentsCount) const |
Multiplies a base to multiple exponents in a group. More... | |
Public Member Functions inherited from AbstractGroup< T > | |
virtual | ~AbstractGroup () |
virtual bool | InversionIsFast () const |
Determine if inversion is fast. More... | |
Public Attributes | |
const AbstractRing< T > * | m_pRing |
Additional Inherited Members | |
Public Types inherited from AbstractGroup< T > | |
typedef T | Element |
|
inlinevirtual |
|
inlinevirtual |
Adds elements in the group.
a | first element |
b | second element |
a
and b
Implements AbstractGroup< T >.
|
inlinevirtual |
TODO.
x | first multiplicand |
e1 | the first multiplier |
y | second multiplicand |
e2 | the second multiplier |
Reimplemented from AbstractGroup< T >.
|
inlinevirtual |
Doubles an element in the group.
a | the element |
Reimplemented from AbstractGroup< T >.
|
inlinevirtual |
Compare two elements for equality.
a | first element |
b | second element |
Equal() tests the elements for equality using a==b
Implements AbstractGroup< T >.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Inverts the element in the group.
a | first element |
Implements AbstractGroup< T >.
|
inlinevirtual |
Reduces an element in the congruence class.
a | element to reduce |
b | the congruence class |
Reimplemented from AbstractGroup< T >.
|
inlinevirtual |
Performs a scalar multiplication.
a | multiplicand |
e | multiplier |
Reimplemented from AbstractGroup< T >.
|
inlinevirtual |
Multiplies a base to multiple exponents in a group.
results | an array of Elements |
base | the base to raise to the exponents |
exponents | an array of exponents |
exponentsCount | the number of exponents in the array |
SimultaneousMultiply() multiplies the base to each exponent in the exponents array and stores the result at the respective position in the results array.
SimultaneousMultiply() must be implemented in a derived class.
COUNTOF(results) == exponentsCount
COUNTOF(exponents) == exponentsCount
Reimplemented from AbstractGroup< T >.
|
inlinevirtual |
Subtracts elements in the group.
a | first element |
b | second element |
a
and b
. The element a
must provide a Subtract member function. Reimplemented from AbstractGroup< T >.
const AbstractRing<T>* AbstractRing< T >::MultiplicativeGroupT::m_pRing |