Implementation of the same generation challanges as in nifs::protogalaxy mod
Consistency test added for challenges generation at {on,off}-circuit env
Corrected the number of bits generated for challenges (MAX_BITS will now be used)
Fix poseidon off-circuit hash
Previously, a successive on-circuit poseidon circuit call would cause the old buffer to be reused and the exact same successive off-circuit call would not reuse the previous buffer. Now the behavior has been brought to a uniform standard.
Motivation Part of #361
Overview
nifs::protogalaxy
modMAX_BITS
will now be used)Fix poseidon off-circuit hash Previously, a successive on-circuit poseidon circuit call would cause the old buffer to be reused and the exact same successive off-circuit call would not reuse the previous buffer. Now the behavior has been brought to a uniform standard.