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
8f4f2759
Unverified
Commit
8f4f2759
authored
Sep 02, 2019
by
a72d9e2bad9edfd58d6c0248c12c953b71d409d2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added LevelDB
parent
a3528e64
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
5 deletions
+17
-5
BLSCrypto.cpp
BLSCrypto.cpp
+13
-1
BLSCrypto.h
BLSCrypto.h
+1
-1
Makefile.am
Makefile.am
+2
-2
sgxd.c
sgxd.c
+1
-1
No files found.
BLSCrypto.cpp
View file @
8f4f2759
...
...
@@ -9,10 +9,22 @@
#include "bls.h"
extern
"C"
void
init_bls
()
{
#include "leveldb/db.h"
extern
"C"
void
init_daemon
()
{
libff
::
init_alt_bn128_params
();
// Set up database connection information and open database
leveldb
::
DB
*
db
;
leveldb
::
Options
options
;
options
.
create_if_missing
=
true
;
leveldb
::
Status
status
=
leveldb
::
DB
::
Open
(
options
,
"./keysdb"
,
&
db
);
}
class
BLSCrypto
{
...
...
BLSCrypto.h
View file @
8f4f2759
...
...
@@ -11,7 +11,7 @@
#define EXTERNC
#endif
EXTERNC
void
init_
bls
();
EXTERNC
void
init_
daemon
();
...
...
Makefile.am
View file @
8f4f2759
...
...
@@ -45,7 +45,7 @@ secure_enclave.edl: secure_enclave/secure_enclave.edl
## AM_CFLAGS =
## AM_CXXFLAGS =
AM_CPPFLAGS
+=
-DSKALE_SGX
=
1
-DBINARY_OUTPUT
=
1
-IlibBLS
/bls
-IlibBLS
/libff
-IlibBLS
-fno-builtin-memset
$(GMP_CPPFLAGS)
AM_CPPFLAGS
+=
-DSKALE_SGX
=
1
-DBINARY_OUTPUT
=
1
-Il
eveldb
/include
-Il
ibBLS
/bls
-IlibBLS
/libff
-IlibBLS
-fno-builtin-memset
$(GMP_CPPFLAGS)
## Additional targets to remove with 'make clean'. You must list
## any edger8r generated files here.
...
...
@@ -87,5 +87,5 @@ secure_enclave.signed.so: secure_enclave/secure_enclave.signed.so
## Use the variables, not the actual library names to ensure these
## targets work on simulation builds.
sgxd_LDADD
=
-l
$(SGX_URTS_LIB)
-Ll
ibBLS
/build/libff/libff
-l
:libff.a
-lgmp
-ldl
-l
:libsgx_capable.a
-l
:libsgx_tprotected_fs.a
-lpthread
sgxd_LDADD
=
-l
$(SGX_URTS_LIB)
-Ll
eveldb
/build
-LlibBLS
/build/libff/libff
-l
:libleveldb.a
-l
:libff.a
-lgmp
-ldl
-l
:libsgx_capable.a
-l
:libsgx_tprotected_fs.a
-lpthread
sgxd.c
View file @
8f4f2759
...
...
@@ -167,7 +167,7 @@ int main(int argc, char *argv[]) {
if
(
argc
!=
0
)
usage
();
init_
bls
();
init_
daemon
();
init_enclave
();
...
...
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