Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
Group represents Z_n* - group of all integers smaller than n and coprime with n. Note that this group is not cyclic in the general case (as opposed to, for example, Schnorr group).
When n is a prime, use a special case of this group, the GroupZp struct instead.
func (*Group) GetRandomElement ¶
GetRandomElement returns a random element from this group. Elements of this group are integers that are coprime with N.
func (*Group) IsElementInGroup ¶
IsElementInGroup returns true if x is in the group and false otherwise. An element x is in Group when it is coprime with group.N, that means gcd(x, group.N) = 1.
Click to show internal directories.
Click to hide internal directories.