0.7.1
This new version of the ZoKrates toolbox comes with the following main features. For a full list of the changes, check out the changelog!
Constant declarations
ZoKrates now offers the possibility to declare constants at the module level:
const u32 ANSWER = 21 * 2
No more copy pasting or wrapping in a function!
Constant range checks
When using comparison operators such as a < b
, ZoKrates used to have limitations on the size of a
and b
. These still apply when both a
and b
are variables which cannot be known at compile time. However, in the cases where the compiler can determine a constant value for one of the bounds, it now accept any value for the other.
Poseidon hashing
ZoKrates now supports the poseidon hash function.
Special thanks to @jiangxb-son who submitted a first implementation of this algorithm.