Class: PPGroupElement

verificatum.arithm.PPGroupElement()

new PPGroupElement()

Source:

Extends

Methods

assertType(other)

Throws an error if this and the input are not instances of the same class and are contained in the same group.
Parameters:
Name Type Description
other Other element expected to be contained in the same group.
Inherited From:
Source:

decode(destination, startIndex)

Decodes the contents of a group element.
Parameters:
Name Type Description
destination Destination of decoded bytes.
startIndex Where to start writing in destination.
Overrides:
Source:
Returns:
The number of decoded bytes.

equals(other)

Compares this element and the input.
Parameters:
Name Type Description
other Other group element.
Overrides:
Source:
Returns:
true or false depending on if this element equals the input or not.

exp()

Computes a power of this element. If the exponent belongs to the ring of exponents of the group to which this element belongs, then we use its component exponents for the corresponding components of this element. If not, then we simply use the exponent directly for each component of this element.
Overrides:
Source:
Returns:
Power of this element raised to the input exponent.

fixed(size)

Peform pre-computations for the given number of fixed-basis exponentiations.
Parameters:
Name Type Description
size Expected number of exponentiations to compute.
Inherited From:
Source:

inv()

Returns the inverse of this element.
Overrides:
Source:
Returns:
Inverse of this element.

mul(other)

Computes the product of this element and the input.
Parameters:
Name Type Description
other Other group element from the same group as this element.
Overrides:
Source:
Returns:
this * other.

project(i)

ith component of this product group element.
Parameters:
Name Type Description
i Index of component.
Source:
Returns:
ith component of this product group element.

toByteTree()

Computes a byte tree representation of this element.
Overrides:
Source:
Returns:
Byte tree representation of this element.

toString()

Compiles a human readable representation of this element. This should only be used for debugging.
Overrides:
Source:
Returns:
Human readable representation of this element.