You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jets-bench: fix multiple issues with Ctx8 encoding
* changes `var_len_buf_from_slice` to interpret its `n` such that it's
reading the type (2^8)^<2^n rather than (2^8)^<2^(n+1); subtract 1
from all instances of `n` except the loop counter. (Previously we
were looping the wrong number of times, which this fixes.)
* calls `var_len_buf_from_slice` with n = 6, which matches the type
signature for Ctx8. Before we were calling with n = 8 which was just
wrong
* Changes `SimplicityCtx8::buffer` to have type `[u8; 64]` instead of
the wrong `[u8; 512]`
* Changes the nonsense "v.len() >= 1 << n" comparison to one that checks
the bits of v.len()
* Corrects various off-by-one errors
See #318 for more information.
0 commit comments