Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sgxwallet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董子豪
sgxwallet
Commits
4ae010f8
Unverified
Commit
4ae010f8
authored
Jul 12, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-2895-fix-build-and-docs
parent
21270f4a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
DKGCrypto.cpp
DKGCrypto.cpp
+0
-1
ServerInit.cpp
ServerInit.cpp
+6
-0
EnclaveCommon.cpp
secure_enclave/EnclaveCommon.cpp
+1
-1
No files found.
DKGCrypto.cpp
View file @
4ae010f8
...
...
@@ -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
();
...
...
ServerInit.cpp
View file @
4ae010f8
...
...
@@ -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
();
}
...
...
secure_enclave/EnclaveCommon.cpp
View file @
4ae010f8
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment