Skip to main content

zk_commit_index

Function zk_commit_index 

Source
pub const fn zk_commit_index(index: usize, log_len: usize) -> usize
Expand description

The coordinate of M_r that entry index of a zero-knowledge round’s committed table holds.

The map complements the low log_len bits of index, which reverses the order of the round. It is its own inverse, so it also gives the entry that a coordinate is committed at. See the module documentation for why a zero-knowledge round is committed reversed.