Commit a9c608cd authored by Bijun Li's avatar Bijun Li
Browse files

Update vss README

parent 1d291b4a
Showing with 5 additions and 1 deletion
+5 -1
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment