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
2d4db506
Unverified
Commit
2d4db506
authored
Apr 27, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-2502
parent
0c447453
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
start.sh
docker/start.sh
+3
-4
No files found.
docker/start.sh
View file @
2d4db506
...
@@ -4,9 +4,8 @@ set -x
...
@@ -4,9 +4,8 @@ set -x
source
/opt/intel/sgxsdk/environment
source
/opt/intel/sgxsdk/environment
if
[
-f
"/dev/random"
]
if
[
[
!
-f
"/dev/random"
]
]
then
then
else
echo
"SGX wallet error. No /dev/random."
;
echo
"SGX wallet error. No /dev/random."
;
echo
"If you are running raw docker without docker compose please make sure"
;
echo
"If you are running raw docker without docker compose please make sure"
;
echo
"the command line includes -v /dev/urandom:/dev/random"
;
echo
"the command line includes -v /dev/urandom:/dev/random"
;
...
@@ -21,7 +20,7 @@ ls /root/.rnd;
...
@@ -21,7 +20,7 @@ ls /root/.rnd;
cd
/usr/src/sdk
;
cd
/usr/src/sdk
;
if
[
-f
"/var/hwmode"
]
if
[
[
-f
"/var/hwmode"
]
]
then
then
echo
"Running in SGX hardware mode"
echo
"Running in SGX hardware mode"
export
LD_LIBRARY_PATH
=
${
LD_LIBRARY_PATH
}
:/opt/intel/sgxpsw/aesm/
export
LD_LIBRARY_PATH
=
${
LD_LIBRARY_PATH
}
:/opt/intel/sgxpsw/aesm/
...
@@ -34,7 +33,7 @@ echo "Running in SGX simulation mode"
...
@@ -34,7 +33,7 @@ echo "Running in SGX simulation mode"
fi
fi
if
[
"
$1
"
=
-t
]
;
then
if
[
[
"
$1
"
==
"-t"
]
]
;
then
echo
"Test run requested"
echo
"Test run requested"
#./testw [bls-key-encrypt]
#./testw [bls-key-encrypt]
./testw
[
bls-key-encrypt-decrypt]
./testw
[
bls-key-encrypt-decrypt]
...
...
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