Unverified Commit 4ae010f8 authored by kladko's avatar kladko

SKALE-2895-fix-build-and-docs

parent 21270f4a
......@@ -351,7 +351,6 @@ string decryptDHKey(const string &polyName, int ind) {
vector<string> mult_G2(const string &x) {
vector<string> result(4);
libff::init_alt_bn128_params();
libff::alt_bn128_Fr el(x.c_str());
libff::alt_bn128_G2 elG2 = el * libff::alt_bn128_G2::one();
elG2.to_affine_coordinates();
......
......@@ -31,6 +31,7 @@
#include <sys/stat.h>
#include "libff/algebra/curves/alt_bn128/alt_bn128_init.hpp"
#include <libff/common/profiling.hpp>
#include "bls.h"
#include "leveldb/db.h"
#include <jsonrpccpp/server/connectors/httpserver.h>
......@@ -56,7 +57,12 @@
#include "SGXWalletServer.hpp"
void initUserSpace() {
libff::inhibit_profiling_counters = true;
libff::inhibit_profiling_info = true;
libff::init_alt_bn128_params();
LevelDB::initDataFolderAndDBs();
}
......
......@@ -101,7 +101,7 @@ void enclave_init() {
bool enclave_sign(const char *_keyString, const char *_hashXString, const char *_hashYString,
char* sig) {
libff::init_alt_bn128_params();
auto key = keyFromString(_keyString);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment