Skip to content

Conversation

@Leo-Besancon
Copy link

This PR adds 2 fri parameters constructors to be used for miden proving. On the air-script side, the PR and comment related to this change: 0xMiden/air-script#523 (comment)

Copy link

@Al-Kindi-0 Al-Kindi-0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!
We could also use the current Winterfell options as a starting point, here and here
We might need to update the number of FRI queries, but these are the options we will go with for the short to medium term

num_queries: 100,
proof_of_work_bits: 16,
mmcs,
log_folding_factor: 1,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we now have support for higher folding arity, right? If yes, we should use 4 to match our current Winterfell setting.

pub const fn create_miden_fri_params<Mmcs>(mmcs: Mmcs) -> FriParameters<Mmcs> {
FriParameters {
log_blowup: 4,
log_final_poly_len: 0,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We currently use log(128)

@Al-Kindi-0 Al-Kindi-0 merged commit 95fb1c9 into 0xMiden:main Dec 16, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants