fn generate_winning_post_sector_challenge(
        proof: RegisteredPoStProof,
        prover_id: u64,
        Randomness(mut randomness): Randomness,
        eligible_sector_count: u64,
    ) -> Result<Vec<u64>, Box<dyn StdError>> {
        // Necessary to be valid bls12 381 element.
        randomness[31] &= 0x3f;

        Ok(post::generate_winning_post_sector_challenge(
            proof.try_into()?,
            &randomness,
            eligible_sector_count,
            prover_id_from_u64(prover_id),
        )?)
    }
/// Generates sector challenge indexes for use in winning PoSt verification.
Generates sector challenge indexes for use in winning PoSt verification.
Generates sector challenge indexes for use in winning PoSt verification .
fn generate_winning_post_sector_challenge(
        proof: RegisteredPoStProof,
        prover_id: u64,
        Randomness(mut randomness): Randomness,
        eligible_sector_count: u64,
    ) -> Result<Vec<u64>, Box<dyn StdError>> {
        // Necessary to be valid bls12 381 element.
        randomness[31] &= 0x3f;
        Ok(post::generate_winning_post_sector_challenge(
            proof.try_into()?,
            &randomness,
            eligible_sector_count,
            prover_id_from_u64(prover_id),
        )?)
    }
fn generate_winning_post_sector_challenge ( proof : RegisteredPoStProof , prover_id : u64 , Randomness ( mut randomness ) : Randomness , eligible_sector_count : u64 , ) -> Result < Vec < u64 > , Box < dyn StdError > > { // Necessary to be valid bls12 381 element. randomness [ 31 ] &= 0x3f ; Ok ( post :: generate_winning_post_sector_challenge ( proof . try_into ( ) ? , & randomness , eligible_sector_count , prover_id_from_u64 ( prover_id ) , ) ? ) }
Generates sector challenge indexes for use in winning PoSt verification.
Generates sector challenge indexes for use in winning PoSt verification .
proof
RegisteredPoStProof
prover_id
Randomness
eligible_sector_count
u64