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
bf17b94d
Unverified
Commit
bf17b94d
authored
Sep 08, 2019
by
kladkogex
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added crypto init
parent
93849aec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
15 deletions
+17
-15
BLSCrypto.cpp
BLSCrypto.cpp
+0
-13
SGXWalletServer.cpp
SGXWalletServer.cpp
+2
-1
ServerInit.cpp
ServerInit.cpp
+15
-1
No files found.
BLSCrypto.cpp
View file @
bf17b94d
...
...
@@ -123,19 +123,6 @@ bool hex2carray(const char * _hex, uint64_t *_bin_len,
}
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
);
}
bool
sign
(
const
char
*
_encryptedKeyHex
,
const
char
*
_hashHex
,
size_t
_t
,
size_t
_n
,
size_t
_signerIndex
,
...
...
SGXWalletServer.cpp
View file @
bf17b94d
...
...
@@ -73,4 +73,5 @@ int init_server() {
JSONRPC_SERVER_V1V2
);
// hybrid server (json-rpc 1.0 & 2.0)
s
.
StartListening
();
return
0
;
}
\ No newline at end of file
}
ServerInit.cpp
View file @
bf17b94d
...
...
@@ -33,4 +33,18 @@ void init_all() {
init_server
();
init_enclave
();
init_daemon
();
}
\ No newline at end of file
}
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
);
}
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