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
80088540
Unverified
Commit
80088540
authored
Jul 02, 2020
by
Oleh Nikolaiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SKALE-2844 add docs
parent
d0b3e953
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
SEKManager.cpp
SEKManager.cpp
+2
-1
backup-procedure.md
docs/backup-procedure.md
+4
-0
DKGUtils.cpp
secure_enclave/DKGUtils.cpp
+1
-2
No files found.
SEKManager.cpp
View file @
80088540
...
...
@@ -135,7 +135,8 @@ void gen_SEK(){
sek_file
.
clear
();
cout
<<
"ATTENTION! YOUR BACKUP KEY WILL BE WROTE INTO backup_key.txt.
\n
"
<<
"PLEASE COPY IT TO THE SAFE PLACE AND THEN DELETE THE FILE MANUALLY"
<<
endl
;
"PLEASE COPY IT TO THE SAFE PLACE AND THEN DELETE THE FILE MANUALLY RUNNING FOLLOWING COMMAND:
\n
"
<<
"`sudo apt-get install secure-delete && srm -vz backup_key.txt`"
<<
endl
;
sek_file
<<
SEK
;
if
(
!
autoconfirm
)
{
...
...
docs/backup-procedure.md
View file @
80088540
...
...
@@ -4,6 +4,10 @@
When SGXWallet is initialized, the server will print the backup key.
**This key must be securely recorded and stored.**
The key will be stored in file "backup_key.txt". Remove it once you store it in a safe place with following command:
```
bash
sudo
apt-get
install
secure-delete
&&
srm
-vz
backup_key.txt
```
Master-Slave replication is recommended to support the SGXWallet backup strategy. Below are general instructions for a basic backup and recovery process.
...
...
secure_enclave/DKGUtils.cpp
View file @
80088540
...
...
@@ -57,8 +57,7 @@ string stringFromFr(libff::alt_bn128_Fr& _el) {
return
string
(
tmp
);
}
template
<
class
T
>
string
ConvertToString
(
T
field_elem
,
int
base
=
10
)
{
template
<
class
T
>
string
ConvertToString
(
T
field_elem
,
int
base
=
10
)
{
mpz_t
t
;
mpz_init
(
t
);
...
...
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