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
3cfe2129
Unverified
Commit
3cfe2129
authored
4 years ago
by
Oleh Nikolaiev
Committed by
GitHub
4 years ago
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into feature/SKALE-4128-modify-release-process
parents
f8824c98
25ea58db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
libBLS
libBLS
+1
-1
DKGUtils.cpp
secure_enclave/DKGUtils.cpp
+9
-0
No files found.
libBLS
@
75972a81
Subproject commit
82884ec89e84539f25af206a0148ca34c35e078f
Subproject commit
75972a810b8b1422004443028beedfef2288be50
This diff is collapsed.
Click to expand it.
secure_enclave/DKGUtils.cpp
View file @
3cfe2129
...
...
@@ -174,6 +174,11 @@ vector <libff::alt_bn128_Fr> SplitStringToFr(const char *coeffs, const char symb
return
result
;
}
bool
isG2
(
const
libff
::
alt_bn128_G2
&
point
)
{
return
point
.
is_well_formed
()
&&
libff
::
alt_bn128_G2
::
order
()
*
point
==
libff
::
alt_bn128_G2
::
zero
();
}
int
gen_dkg_poly
(
char
*
secret
,
unsigned
_t
)
{
int
status
=
1
;
...
...
@@ -456,6 +461,10 @@ int Verification(char *public_shares, mpz_t decr_secret_share, int _t, int ind)
pub_share
.
Y
.
c1
=
libff
::
alt_bn128_Fq
(
y_c1_str
.
c_str
());
pub_share
.
Z
=
libff
::
alt_bn128_Fq2
::
one
();
if
(
!
isG2
(
pub_share
)
)
{
ret
=
3
;
return
ret
;
}
pub_shares
.
push_back
(
pub_share
);
}
...
...
This diff is collapsed.
Click to expand it.
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