Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Memri
Identity recovery
Commits
a9c608cd
Commit
a9c608cd
authored
3 years ago
by
Bijun Li
Browse files
Options
Download
Email Patches
Plain Diff
Update vss README
parent
1d291b4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/vss/README.md
+5
-1
packages/vss/README.md
with
5 additions
and
1 deletion
+5
-1
packages/vss/README.md
+
5
-
1
View file @
a9c608cd
...
...
@@ -42,9 +42,13 @@ const curveTest = (curveType, name) => {
// send each share in `setup.shares` to a recipient
// when a recipient recieves a share it can verify whether it was created corectly with the verificationVector
// calculate a hash againt each share to confirm verification
setup
.
shares
.
forEach
(
share
=>
{
const
verified
=
vss
.
verifyShare
(
bls
,
share
,
result
.
verificationVector
)
console
.
log
(
verified
)
console
.
log
(
'
share is verified:
'
,
verified
)
const
shareHash
=
vss
.
hashShare
(
bls
,
share
)
console
.
log
(
'
shareHash:
'
,
shareHash
)
})
// when combine a `threshold` number of shares, the secret key can be recovered
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets