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
c3984af2
Unverified
Commit
c3984af2
authored
Sep 10, 2019
by
kladkogex
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added walletdb name
parent
193dcbf4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
ServerInit.cpp
ServerInit.cpp
+1
-1
sgxwallet_common.h
sgxwallet_common.h
+2
-0
testw.cpp
testw.cpp
+16
-0
No files found.
ServerInit.cpp
View file @
c3984af2
...
...
@@ -40,7 +40,7 @@ void init_daemon() {
libff
::
init_alt_bn128_params
();
static
std
::
string
dbName
(
"./
sgxwalletdb"
);
static
std
::
string
dbName
(
"./
"
WALLETDB_NAME
);
levelDb
=
new
LevelDB
(
dbName
);
...
...
sgxwallet_common.h
View file @
c3984af2
...
...
@@ -37,6 +37,8 @@
#define KEY_SHARE_DOES_NOT_EXIST -7
#define KEY_SHARE_ALREADY_EXISTS -8
#define WALLETDB_NAME "sgxwallet.db"
...
...
testw.cpp
View file @
c3984af2
...
...
@@ -120,6 +120,10 @@ char *decryptKeyFromHex(int *errStatus, char *errMsg, const char *_encryptedKey)
#define TEST_KEY "4160780231445160889237664391382223604184857153814275770598791864649971919844"
void
reset_db
()
{
REQUIRE
(
system
(
"rm -rf "
WALLETDB_NAME
)
==
0
);
}
char
*
encryptTestKey
()
{
const
char
*
key
=
TEST_KEY
;
...
...
@@ -214,6 +218,18 @@ TEST_CASE("BLS sign test", "[bls-sign]") {
}
TEST_CASE
(
"KeysDB test"
,
"[dkg-gen]"
)
{
reset_db
();
init_all
();
// put your test here
}
TEST_CASE
(
"DKG gen test"
,
"[dkg-gen]"
)
{
init_all
();
...
...
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