-
Notifications
You must be signed in to change notification settings - Fork 151
Conversation
core/crypto/vrf/p256/p256.go
Outdated
// G is the base point | ||
// s = H2(m, [r]G, [r]H) | ||
// s = H2(m, [r]G, [r]H, [k]H) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Order is not following either the CONIKs paper or Franklin paper (which list [k]H earlier)
Also, why not hash in G (base point) and the public key kG? As is done in both papers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the base point and the public key.
Updated the order to match the CONIKS paper.
Codecov Report
@@ Coverage Diff @@
## master #568 +/- ##
==========================================
+ Coverage 57.21% 57.24% +0.03%
==========================================
Files 35 35
Lines 2489 2491 +2
==========================================
+ Hits 1424 1426 +2
Misses 776 776
Partials 289 289
Continue to review full report at Codecov.
|
804ecec
to
e04d45f
Compare
f729569
to
f4e17a7
Compare
Fixes google#567 VRF uniqueness could be violated because the VRF output itself was not included in the the computation of `s`, the commitment to the VRF and zero knowledge proof.
228d7a0
to
2f9ae65
Compare
VRF uniqueness could be violated because the VRF output itself was not
included in the the computation of
s
, the commitment to the VRF andzero knowledge proof. Fixes #567.
Other changes also included in this PR:
References: