Skip to main content

first_chain_of_xof

Function first_chain_of_xof 

Source
pub const fn first_chain_of_xof(block: usize) -> i32
Expand description

First chain that reads XOF block block.

Chain c reads XOF bytes 18c..18c+18. The answer is the smallest c whose last byte falls in or after block block, that is 18c + 18 > 64 ยท block. Chain c issues at T + c, so this is also the offset by which the block must be in the window.