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
2f06d0e1
Unverified
Commit
2f06d0e1
authored
May 14, 2020
by
Oleh Nikolaiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-2545 remove unused code
parent
d6fc4674
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
6 deletions
+3
-6
SGXWalletServer.cpp
SGXWalletServer.cpp
+0
-1
build_deps.py
scripts/build_deps.py
+2
-2
DKGUtils.cpp
secure_enclave/DKGUtils.cpp
+1
-1
secure_enclave.c
secure_enclave/secure_enclave.c
+0
-2
No files found.
SGXWalletServer.cpp
View file @
2f06d0e1
...
...
@@ -43,7 +43,6 @@
#include "Log.h"
void
setFullOptions
(
int
_printDebugInfo
,
int
_printTraceInfo
,
int
_useHTTPS
,
int
_autoconfirm
,
int
_encryptKeys
)
{
if
(
_printDebugInfo
)
...
...
scripts/build_deps.py
View file @
2f06d0e1
...
...
@@ -133,10 +133,10 @@ os.chdir(topDir)
assert
subprocess
.
call
([
"cp"
,
"sgx_tgmp.h"
,
TGMP_BUILD_DIR
+
"/include/sgx_tgmp.h"
])
==
0
os
.
chdir
(
SSL_DIR
)
print
"===>>> Downloading vanilla openssl source package"
print
(
"===>>> Downloading vanilla openssl source package"
)
os
.
chdir
(
SSL_SOURCE_DIR
)
assert
subprocess
.
call
([
"wget"
,
"https://www.openssl.org/source/openssl-1.1.1b.tar.gz"
])
==
0
print
"===>>> Making SSL project"
print
(
"===>>> Making SSL project"
)
os
.
chdir
(
SSL_MAKE_DIR
)
#assert subprocess.call(["make", "SGX_SDK=" + SGX_SDK_DIR_SSL, "all", "test"]) == 0
assert
subprocess
.
call
([
"make"
,
"SGX_SDK="
+
SGX_SDK_DIR_SSL
,
"all"
])
==
0
...
...
secure_enclave/DKGUtils.cpp
View file @
2f06d0e1
...
...
@@ -174,7 +174,7 @@ int calc_secret_share(const char* decrypted_coeffs, char * s_share,
}
libff
::
alt_bn128_Fr
secret_share
=
PolynomialValue
(
poly
,
libff
::
alt_bn128_Fr
(
ind
),
_t
);
string
cur_share
=
ConvertToString
(
secret_share
,
16
);
//stringFromFr(secret_share);
string
cur_share
=
ConvertToString
(
secret_share
,
16
);
int
n_zeroes
=
64
-
cur_share
.
size
();
cur_share
.
insert
(
0
,
n_zeroes
,
'0'
);
...
...
secure_enclave/secure_enclave.c
View file @
2f06d0e1
...
...
@@ -645,8 +645,6 @@ void trustedGetEncryptedSecretShare(int *errStatus, char *err_string, uint8_t *e
memset
(
pub_key_x
,
0
,
BUF_LEN
);
char
pub_key_y
[
BUF_LEN
];
memset
(
pub_key_y
,
0
,
BUF_LEN
);
//char *pub_key_x = (char *)calloc(1024, 1);
// char *pub_key_y = (char *)calloc(1024, 1);
uint32_t
enc_len
;
...
...
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