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
0ed2e27c
Unverified
Commit
0ed2e27c
authored
May 06, 2020
by
kladko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed docs
parent
3d136790
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
DKGCrypto.h
DKGCrypto.h
+10
-8
No files found.
DKGCrypto.h
View file @
0ed2e27c
...
...
@@ -27,23 +27,25 @@
#include <string>
#include <vector>
std
::
string
gen_dkg_poly
(
int
_t
)
;
using
namespace
std
;
st
d
::
vector
<
std
::
vector
<
std
::
string
>>
get_verif_vect
(
const
char
*
encryptedPolyHex
,
int
t
,
int
n
);
st
ring
gen_dkg_poly
(
int
_t
);
std
::
vector
<
std
::
string
>
splitString
(
const
char
*
coeffs
,
const
char
symbol
);
vector
<
vector
<
string
>>
get_verif_vect
(
const
char
*
encryptedPolyHex
,
int
t
,
int
n
);
std
::
string
trustedGetSecretShares
(
const
std
::
string
&
_polyName
,
const
char
*
_encryptedPolyHex
,
const
std
::
vector
<
std
::
string
>&
_publicKeys
,
int
_t
,
int
_n
);
vector
<
string
>
splitString
(
const
char
*
coeffs
,
const
char
symbol
);
string
trustedGetSecretShares
(
const
string
&
_polyName
,
const
char
*
_encryptedPolyHex
,
const
vector
<
string
>&
_publicKeys
,
int
_t
,
int
_n
);
bool
verifyShares
(
const
char
*
publicShares
,
const
char
*
encr_sshare
,
const
char
*
encryptedKeyHex
,
int
t
,
int
n
,
int
ind
);
st
d
::
string
decryptDHKey
(
const
std
::
string
&
polyName
,
int
ind
);
st
ring
decryptDHKey
(
const
string
&
polyName
,
int
ind
);
bool
CreateBLSShare
(
const
st
d
::
st
ring
&
blsKeyName
,
const
char
*
s_shares
,
const
char
*
encryptedKeyHex
);
bool
CreateBLSShare
(
const
string
&
blsKeyName
,
const
char
*
s_shares
,
const
char
*
encryptedKeyHex
);
std
::
vector
<
std
::
string
>
GetBLSPubKey
(
const
char
*
encryptedKeyHex
);
vector
<
string
>
GetBLSPubKey
(
const
char
*
encryptedKeyHex
);
std
::
vector
<
std
::
string
>
mult_G2
(
const
std
::
string
&
x
);
vector
<
string
>
mult_G2
(
const
string
&
x
);
...
...
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