pub fn generate_winning_post_sector_challenge(
proof_type: RegisteredPoStProof,
randomness: &ChallengeSeed,
sector_set_len: u64,
prover_id: ProverId,
) -> Result<Vec<u64>>
Expand description
Given some randomness and the length of available sectors, generates a sector challenge.
The returned values are indices in the range of 0..sector_set_len
, requiring the caller
to match the index to the correct sector.
§Arguments
proof_type
- PoSt proof type for this challenge, must be “winning” proof type.randomness
- Random value generated by caller (verifier).sector_set_len
- Number of available sectors to challenge.prover_id
- Unique 32 byte ID of prover which will be challenged with these sectors.
Returns a vector, with each element representing a sector to challenge.