A {@code MakwaDelegation} instance contains the parameters neededto perform work delegation to an external system (the "delegation server"). Such a set of parameters is specific to a given modulus and work factor. Under normal conditions, it is expected that sets of parameters are created once, then saved in encoded format (as returned by {@link #export}), and decoded again at application start-up.
A new set of parameters (for a newly created modulus, or an hitherto unused work factor) can be obtained with {@link #generate}. The modulus is provided as either an encoded modulus, or an encoded Makwa private key. Since generating a set of parameters has a cost similar to computing Makwa 300 times, it is recommended to use a Makwa private key, which enables the "fast path".
Instances are immutable and thread-safe.
@version $Revision$ @author Thomas Pornin
|
|
|
|