Skip to content

Commit

Permalink
chore: address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Al-Kindi-0 committed Jan 31, 2025
1 parent ea9b61e commit f61103a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions air/src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub enum FieldExtension {
/// 4. Grinding factor - higher values increase proof soundness, but also may increase proof
/// generation time. More precisely, conjectured proof soundness is bounded by
/// `num_queries * log2(blowup_factor) + grinding_factor`.
/// 5. Batching type - either independent random values per multi-point quotient are used in
/// 5. Batching method - either independent random values per multi-point quotient are used in
/// the computation of the DEEP polynomial or powers of a single random value are used
/// instead. The first type of batching is called `Linear` while the second is called `Algebraic`.
///
Expand All @@ -96,8 +96,6 @@ pub struct ProofOptions {
fri_remainder_max_degree: u8,
batching_deep: BatchingMethod,
partition_options: PartitionOptions,
batching_deep: BatchingType,
partition_options: PartitionOptions,
}

// PROOF OPTIONS IMPLEMENTATION
Expand Down Expand Up @@ -265,6 +263,10 @@ impl ProofOptions {
/// Depending on other parameters, Algebraic batching may lead to a small reduction in the security
/// level of the generated proofs, but avoids extra calls to the random oracle (i.e., hash function).
pub fn deep_poly_batching_method(&self) -> BatchingMethod {
self.batching_deep
}
}

impl<E: StarkField> ToElements<E> for ProofOptions {
fn to_elements(&self) -> Vec<E> {
// encode field extension and FRI parameters into a single field element
Expand Down

0 comments on commit f61103a

Please sign in to comment.