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

split DlogGroup so we have a separate trait for MSM methods #380

Merged
merged 1 commit into from
Mar 20, 2025

Conversation

srinathsetty
Copy link
Collaborator

No description provided.

@srinathsetty srinathsetty merged commit bd01455 into main Mar 20, 2025
9 checks passed
@srinathsetty srinathsetty deleted the traits branch March 20, 2025 21:21
Comment on lines +221 to +235
impl DlogGroupExt for $name::Point {
fn vartime_multiscalar_mul(
scalars: &[Self::Scalar],
bases: &[Self::AffineGroupElement],
) -> Self {
msm(scalars, bases)
}

fn vartime_multiscalar_mul_small<T: Integer + Into<u64> + Copy + Sync + ToPrimitive>(
scalars: &[T],
bases: &[Self::AffineGroupElement],
) -> Self {
msm_small(scalars, bases)
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

The biggest issue is that this is still inside the impl_traits macro.
A possible solution could be to make a impl_traits_without_msm macro that is called from the impl_traits macro.
Then, and implementer can use the impl_traits_without_msm and implement DlogGroupExt.

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