Skip to content

Commit

Permalink
clean prover. Moved to rapidsnark
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaylina committed Dec 14, 2020
1 parent 9aee793 commit e1d9700
Show file tree
Hide file tree
Showing 27 changed files with 52 additions and 1,903 deletions.
3 changes: 2 additions & 1 deletion benchmark/multiexp_g1.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#ifndef COUNT_OPS
#define COUNT_OPS
#endif

#include <stdio.h>
#include <stdlib.h>
#include "alt_bn128.hpp"
#include <time.h>


using namespace AltBn128;

__uint128_t g_lehmer64_state = 0xAAAAAAAAAAAAAAAALL;
Expand Down
2 changes: 2 additions & 0 deletions benchmark/multiexp_g2.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#ifndef COUNT_OPS
#define COUNT_OPS
#endif

#include <stdio.h>
#include <stdlib.h>
Expand Down
9 changes: 1 addition & 8 deletions c/curve.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#include <string>

#include "exp.hpp"
// #include "multiexp.hpp"
#include "multiexp2.hpp"
#include "par_multiexp2.hpp"
#include "multiexp.hpp"

template <typename BaseField>
class Curve {
Expand Down Expand Up @@ -117,11 +115,6 @@ class Curve {
nafMulByScalar<Curve<BaseField>, PointAffine, Point>(*this, r, base, scalar, scalarSize);
}

void multiMulByScalar_old(Point &r, PointAffine *bases, uint8_t* scalars, unsigned int scalarSize, unsigned int n) {
MultByScalar::fastMultiMulByScalar<Curve<BaseField>, Point, PointAffine>(*this, r, bases, scalars, scalarSize, n);
// MultByScalar::nafMultiMulByScalar<Curve<BaseField>, Point, PointAffine>(*this, r, bases, scalars, scalarSize, n);
}

void multiMulByScalar(Point &r, PointAffine *bases, uint8_t* scalars, unsigned int scalarSize, unsigned int n, unsigned int nThreads=0) {
ParallelMultiexp<Curve<BaseField>> pm(*this);
pm.multiexp(r, bases, scalars, scalarSize, n);
Expand Down
45 changes: 0 additions & 45 deletions c/div.cpp

This file was deleted.

256 changes: 0 additions & 256 deletions c/groth16.cpp

This file was deleted.

Loading

0 comments on commit e1d9700

Please sign in to comment.