pub fn generate_winning_post_sector_challenge<Tree: MerkleTreeTrait>(
post_config: &PoStConfig,
randomness: &ChallengeSeed,
sector_set_size: u64,
prover_id: Commitment,
) -> Result<Vec<u64>>
Expand description
Given some randomness and the length of available sectors, generates the challenged sector.
The returned values are indices in the range of 0..sector_set_size
, requiring the caller
to match the index to the correct sector.