Defined in File GlobalTradeSequence.hpp
Computes a bijection f:[p]->[p], x -> (a*x+b) mod p where p is chosen as the smallest p >= n and p prime. a and b are drawn unif at random.
T –
Public Functions
Hashes [n] to [p] with (a*x+b) mod p.
Alias to hash(n)
invert(hash(x)) == x
Is true if there exists no x in [n], s.t. h(x) == y, i.e. it can be used to determine if the map maps to y
randomly samples parameters a and b
Sets parameters a = 1 and b = 0.