Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BabyBear with only Plonky3 changes #1693

Merged
merged 21 commits into from
Sep 6, 2024
Merged

BabyBear with only Plonky3 changes #1693

merged 21 commits into from
Sep 6, 2024

Conversation

topanisto
Copy link
Contributor

Adding BabyBear params to Plonky3 crate.

plonky3/src/stark.rs Outdated Show resolved Hide resolved
@topanisto topanisto closed this Aug 21, 2024
@topanisto topanisto reopened this Aug 21, 2024
@topanisto topanisto marked this pull request as ready for review August 21, 2024 12:05
plonky3/src/params.rs Outdated Show resolved Hide resolved
@leonardoalt
Copy link
Member

fixed conflicts

@leonardoalt
Copy link
Member

running p3 bb composite on two tests

impl FieldElementMap for BabyBearField {
type Config = StarkConfig<MyPcs, FriChallenge, FriChallenger>;
fn to_p3_field(&self) -> Plonky3Field<Self> {
BabyBear::from_canonical_u32(self.to_integer().try_into_u32().unwrap())
Copy link
Collaborator

Choose a reason for hiding this comment

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

This does not need to go through integers, as our BabyBearField type wraps a p3 babybear element. Opened #1761

Copy link
Member

Choose a reason for hiding this comment

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

fixed in the latest commit

plonky3/src/circuit_builder.rs Outdated Show resolved Hide resolved
plonky3/src/circuit_builder.rs Outdated Show resolved Hide resolved
@Schaeff
Copy link
Collaborator

Schaeff commented Sep 6, 2024

I think into_inner would be cleaner on the BabyBearField struct than pub but not a huge deal @leonardoalt

@leonardoalt
Copy link
Member

I think into_inner would be cleaner on the BabyBearField struct than pub but not a huge deal @leonardoalt

done

@Schaeff Schaeff added this pull request to the merge queue Sep 6, 2024
Merged via the queue into main with commit 277edbf Sep 6, 2024
14 checks passed
@Schaeff Schaeff deleted the babybear-params-2 branch September 6, 2024 14:01
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.

4 participants