-
Notifications
You must be signed in to change notification settings - Fork 82
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
Conversation
…ear-params-2 merging into main
…ear-params-2 adding changes from main
bd35465
to
928317f
Compare
…#1721) Unfortunately this requires unsafe, but a pretty tame one. --------- Co-authored-by: schaeff <[email protected]>
fixed conflicts |
running p3 bb composite on two tests |
plonky3/src/baby_bear.rs
Outdated
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()) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
I think |
done |
Adding BabyBear params to Plonky3 crate.