Skip to content

Commit 723a1a3

Browse files
authored
elliptic-curve: have LinearCombinationExt allow ?Sized (#1406)
...as the `PointsAndScalars` generic parameter, so we can accept slices
1 parent 37507fd commit 723a1a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elliptic-curve/src/ops.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ pub trait LinearCombination: Group {
167167
// TODO(tarcieri): replace the current `LinearCombination` with this in the next release
168168
pub trait LinearCombinationExt<PointsAndScalars>: group::Curve
169169
where
170-
PointsAndScalars: AsRef<[(Self, Self::Scalar)]>,
170+
PointsAndScalars: AsRef<[(Self, Self::Scalar)]> + ?Sized,
171171
{
172172
/// Calculates `x1 * k1 + ... + xn * kn`.
173173
fn lincomb_ext(points_and_scalars: &PointsAndScalars) -> Self {

0 commit comments

Comments
 (0)