You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I have two vectors/slices
One contains my bases: Vec<<E as Pairing>::G1Affine>
And the other my scalars: Vec<<E as Pairing>::ScalarField>
I can use them just fine with msm_unchecked providing &bases and scalars as arguments.
I cannot however figure out how to do it with msm_chunks.
I tried creating iterators out of them:
let base_iter = bases.iter();let scalar_iter = scalars.iter();
Or even
let base_iter = ark_ec::iterable::Iterable::iter(&bases);let scalar_iter = ark_ec::iterable::Iterable::iter(&scalars);
Yet, I always receive the error:
error[E0277]: the trait bound `std::slice::Iter<'_, <E as Pairing>::G1Affine>: std::marker::Copy` is not satisfied
--> /home/vaqxai/ark-project/ark-module/src/mod.rs:92:21
|
92 | let result = E::G1::msm_chunks(&bases.iter(), &scalars.iter());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Copy` is not implemented for `std::slice::Iter<'_, <E as Pairing>::G1Affine>`, which is required by `std::slice::Iter<'_, <E as Pairing>::G1Affine>: Iterable`
|
= help: the trait `Iterable` is implemented for `ark_std::iterable::Reverse<I>`
= note: required for `std::slice::Iter<'_, <E as Pairing>::G1Affine>` to implement `Iterable`
The text was updated successfully, but these errors were encountered:
Hi! I have two vectors/slices
One contains my
bases: Vec<<E as Pairing>::G1Affine>
And the other my
scalars: Vec<<E as Pairing>::ScalarField>
I can use them just fine with
msm_unchecked
providing&bases
andscalars
as arguments.I cannot however figure out how to do it with
msm_chunks
.I tried creating iterators out of them:
Or even
Yet, I always receive the error:
The text was updated successfully, but these errors were encountered: