Skip to content

Conversation

@alxiong
Copy link
Contributor

@alxiong alxiong commented Aug 21, 2024

Not meant to merge into main !

Keep this as a draft PR to track the changes made.

Comment on lines +19 to +24
pub fn msm(p: &[G1Affine], s: &[ScalarField]) -> G1Affine {
let mut iter = p.iter().zip(s).filter(|(_, s)| !s.is_zero());
let mut result = {
let (p, s) = iter.next().unwrap();
let mut p = wrap_g1affine(p);
bn254_double_and_add(&mut p, s);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

may i ask why we didn't use AffinePoint struct and the ::msm() directly from sp1-lib as suggested in https://github.com/EspressoSystems/zkrollup-integration/issues/21#issuecomment-2292645127?

Copy link
Contributor

Choose a reason for hiding this comment

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

I saw this after I had these working implementations. I don't think it's necessary to follow their APIs.

@alxiong alxiong requested a review from mrain August 21, 2024 02:45
@alxiong alxiong changed the title Diff Tracking: Sp1 patches feat: Diff Tracking SP1 patches Aug 21, 2024
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.

3 participants