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
5d159a10
Unverified
Commit
5d159a10
authored
Jun 04, 2020
by
Oleh Nikolaiev
Committed by
GitHub
Jun 04, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #99 from skalenetwork/bug/SKALE-2686-server-stuck-with-n-flag
Bug/skale 2686 server stuck with n flag
parents
853981a6
523ed1b6
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
14 deletions
+8
-14
ECDSACrypto.cpp
ECDSACrypto.cpp
+0
-3
SEKManager.cpp
SEKManager.cpp
+0
-1
SGXWalletServer.cpp
SGXWalletServer.cpp
+3
-0
docker-compose.yml
run_sgx/docker-compose.yml
+1
-0
docker-compose.yml
run_sgx_sim/docker-compose.yml
+1
-0
build_deps.py
scripts/build_deps.py
+0
-2
calculate_version.sh
scripts/calculate_version.sh
+2
-7
sgxwallet.c
sgxwallet.c
+1
-1
No files found.
ECDSACrypto.cpp
View file @
5d159a10
...
@@ -144,7 +144,6 @@ string getECDSAPubKey(const char *_encryptedKeyHex) {
...
@@ -144,7 +144,6 @@ string getECDSAPubKey(const char *_encryptedKeyHex) {
bool
verifyECDSASig
(
string
&
pubKeyStr
,
const
char
*
hashHex
,
const
char
*
signatureR
,
bool
verifyECDSASig
(
string
&
pubKeyStr
,
const
char
*
hashHex
,
const
char
*
signatureR
,
const
char
*
signatureS
)
{
const
char
*
signatureS
)
{
bool
result
=
false
;
bool
result
=
false
;
signature
sig
=
signature_init
();
signature
sig
=
signature_init
();
...
@@ -158,8 +157,6 @@ bool verifyECDSASig(string& pubKeyStr, const char *hashHex, const char *signatur
...
@@ -158,8 +157,6 @@ bool verifyECDSASig(string& pubKeyStr, const char *hashHex, const char *signatur
mpz_t
msgMpz
;
mpz_t
msgMpz
;
mpz_init
(
msgMpz
);
mpz_init
(
msgMpz
);
if
(
mpz_set_str
(
msgMpz
,
hashHex
,
16
)
==
-
1
)
{
if
(
mpz_set_str
(
msgMpz
,
hashHex
,
16
)
==
-
1
)
{
spdlog
::
error
(
"invalid message hash {}"
,
hashHex
);
spdlog
::
error
(
"invalid message hash {}"
,
hashHex
);
goto
clean
;
goto
clean
;
...
...
SEKManager.cpp
View file @
5d159a10
...
@@ -123,7 +123,6 @@ bool check_SEK(std::string SEK){
...
@@ -123,7 +123,6 @@ bool check_SEK(std::string SEK){
}
}
void
gen_SEK
(){
void
gen_SEK
(){
vector
<
char
>
errMsg
(
1024
,
0
);
vector
<
char
>
errMsg
(
1024
,
0
);
int
err_status
=
0
;
int
err_status
=
0
;
vector
<
uint8_t
>
encr_SEK
(
1024
,
0
);
vector
<
uint8_t
>
encr_SEK
(
1024
,
0
);
...
...
SGXWalletServer.cpp
View file @
5d159a10
...
@@ -53,8 +53,11 @@ void setFullOptions(int _printDebugInfo,
...
@@ -53,8 +53,11 @@ void setFullOptions(int _printDebugInfo,
spdlog
::
set_level
(
spdlog
::
level
::
info
);
spdlog
::
set_level
(
spdlog
::
level
::
info
);
}
}
useHTTPS
=
_useHTTPS
;
useHTTPS
=
_useHTTPS
;
spdlog
::
info
(
"useHTTPS set to "
+
std
::
to_string
(
_useHTTPS
));
autoconfirm
=
_autoconfirm
;
autoconfirm
=
_autoconfirm
;
spdlog
::
info
(
"autoconfirm set to "
+
std
::
to_string
(
autoconfirm
));
encryptKeys
=
_encryptKeys
;
encryptKeys
=
_encryptKeys
;
spdlog
::
info
(
"encryptKeys set to "
+
std
::
to_string
(
encryptKeys
));
}
}
...
...
run_sgx/docker-compose.yml
View file @
5d159a10
...
@@ -6,6 +6,7 @@ services:
...
@@ -6,6 +6,7 @@ services:
-
"
1026:1026"
-
"
1026:1026"
-
"
1027:1027"
-
"
1027:1027"
-
"
1028:1028"
-
"
1028:1028"
-
"
1029:1029"
devices
:
devices
:
-
"
/dev/isgx"
-
"
/dev/isgx"
-
"
/dev/mei0"
-
"
/dev/mei0"
...
...
run_sgx_sim/docker-compose.yml
View file @
5d159a10
...
@@ -6,6 +6,7 @@ services:
...
@@ -6,6 +6,7 @@ services:
-
"
1026:1026"
-
"
1026:1026"
-
"
1027:1027"
-
"
1027:1027"
-
"
1028:1028"
-
"
1028:1028"
-
"
1029:1029"
volumes
:
volumes
:
-
./sgx_data:/usr/src/sdk/sgx_data
-
./sgx_data:/usr/src/sdk/sgx_data
-
/dev/urandom:/dev/random
-
/dev/urandom:/dev/random
...
...
scripts/build_deps.py
View file @
5d159a10
...
@@ -46,8 +46,6 @@ BLS_DIR = topDir + "/libBLS"
...
@@ -46,8 +46,6 @@ BLS_DIR = topDir + "/libBLS"
BLS_BUILD_DIR
=
BLS_DIR
+
"/build"
BLS_BUILD_DIR
=
BLS_DIR
+
"/build"
JSON_LIBS_DIR
=
topDir
+
"/jsonrpc"
JSON_LIBS_DIR
=
topDir
+
"/jsonrpc"
#subprocess.call(["git", "submodule", "update", "--init"])
print
(
"Cleaning"
)
print
(
"Cleaning"
)
subprocess
.
call
([
"rm"
,
"-f"
,
"install-sh"
])
subprocess
.
call
([
"rm"
,
"-f"
,
"install-sh"
])
...
...
scripts/calculate_version.sh
View file @
5d159a10
...
@@ -34,14 +34,9 @@ fi
...
@@ -34,14 +34,9 @@ fi
for
((
VERSION_NUMBER
=
0
;
;
VERSION_NUMBER++
))
for
((
VERSION_NUMBER
=
0
;
;
VERSION_NUMBER++
))
do
do
if
[
"
$VERSION
"
=
"1.49"
]
&&
[
"
$VERSION_NUMBER
"
-lt
4
]
then
VERSION_NUMBER
=
4
fi
RESULT_VERSION
=
"
$VERSION
-
$LABEL
.
$VERSION_NUMBER
"
RESULT_VERSION
=
"
$VERSION
-
$LABEL
.
$VERSION_NUMBER
"
if
!
[
$(
git tag
-l
?
$RESULT_VERSION
)
]
if
!
[[
$(
git tag
-l
|
grep
$RESULT_VERSION
)
]]
;
then
then
echo
"
$RESULT_VERSION
"
|
tr
/ -
echo
"
$RESULT_VERSION
"
break
break
fi
fi
done
done
sgxwallet.c
View file @
5d159a10
...
@@ -132,7 +132,7 @@ int main(int argc, char *argv[]) {
...
@@ -132,7 +132,7 @@ int main(int argc, char *argv[]) {
setFullOptions
(
printDebugInfoOption
,
printTraceInfoOption
,
useHTTPSOption
,
autoconfirmOption
,
encryptKeysOption
);
setFullOptions
(
printDebugInfoOption
,
printTraceInfoOption
,
useHTTPSOption
,
autoconfirmOption
,
encryptKeysOption
);
uint32_t
enclaveLogLevel
=
L_INFO
;
uint32_t
enclaveLogLevel
=
L_INFO
;
if
(
printTraceInfoOption
)
{
if
(
printTraceInfoOption
)
{
enclaveLogLevel
=
L_TRACE
;
enclaveLogLevel
=
L_TRACE
;
...
...
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