4 ms·
> all branchless code runs in constant time No - e.g. division is not constant time. You have to have branchless code and only use certain instructions. E.g.
by IshKebab 3y ago
> all branchless code runs in constant time
No - e.g. division is not constant time.
You have to have branchless code and only use certain instructions.
E.g. here is the list for RISC-V.
https://github.com/rvkrypto/riscv-zkt-list/blob/main/zkt-list.adoc#zkt-listings https://github.com/rvkrypto/riscv-zkt-list/blob/main/zkt-lis...
Most things except div/rem, branches and floating point are ok. Oh and obviously store/load.
- brobinson 3y agoThanks, this is really interesting.