Skip to content

Commit

Permalink
elliptic-curve: have LinearCombinationExt allow ?Sized (#1406)
Browse files Browse the repository at this point in the history
...as the `PointsAndScalars` generic parameter, so we can accept slices
  • Loading branch information
tarcieri authored Nov 15, 2023
1 parent 37507fd commit 723a1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elliptic-curve/src/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ pub trait LinearCombination: Group {
// TODO(tarcieri): replace the current `LinearCombination` with this in the next release
pub trait LinearCombinationExt<PointsAndScalars>: group::Curve
where
PointsAndScalars: AsRef<[(Self, Self::Scalar)]>,
PointsAndScalars: AsRef<[(Self, Self::Scalar)]> + ?Sized,
{
/// Calculates `x1 * k1 + ... + xn * kn`.
fn lincomb_ext(points_and_scalars: &PointsAndScalars) -> Self {
Expand Down

0 comments on commit 723a1a3

Please sign in to comment.