Skip to content

Commit

Permalink
Update usage to new method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
howardwu committed Jun 28, 2021
1 parent 70fd229 commit 5bb7343
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions algorithms/src/msm/variable_base/cuda.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
// You should have received a copy of the GNU General Public License
// along with the snarkVM library. If not, see <https://www.gnu.org/licenses/>.

use std::{any::TypeId, rc::Rc};

use cuda_oxide::*;
use snarkvm_curves::{
bls12_377::{Fq, Fr, G1Affine, G1Projective},
traits::{AffineCurve, ProjectiveCurve},
};
use snarkvm_fields::{PrimeField, Zero};
use snarkvm_utilities::BitIteratorBE;

use cuda_oxide::*;
use std::{any::TypeId, rc::Rc};

pub struct CudaRequest {
bases: Vec<G1Affine>,
Expand Down Expand Up @@ -233,7 +234,7 @@ pub(super) fn msm_cuda<G: AffineCurve>(
let mut acc = G::Projective::zero();

for (base, scalar) in bases.iter().zip(scalars.iter()) {
acc += &base.mul(*scalar);
acc += &base.mul_bits(BitIteratorBE::new(*scalar))
}
return Ok(acc);
}
Expand Down

0 comments on commit 5bb7343

Please sign in to comment.