-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add conversion Praos to PraosBatchCompat #344
Conversation
6d63bea
to
7355eeb
Compare
cb0dff2
to
146ecd0
Compare
9d93fd6
to
1479014
Compare
146ecd0
to
b41a5fa
Compare
e62d4c1
to
73a9eb4
Compare
4c5bfde
to
30f69ed
Compare
876563e
to
696b301
Compare
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.
Looks good. A couple of minor suggestions
f2166d8
to
9ad1983
Compare
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.
Looks fine by me, none of the remarks are blockers.
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.
Looks good to me, except for those parentheses.
dbd0e36
to
d264b45
Compare
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.
LGTM
We also disambiguate between VerKey and SignKey conversion errors. Co-authored-by: Alexey Kuleshevich <alexey.kuleshevich@iohk.io>
d264b45
to
c4b1790
Compare
Some of the new
BatchCompat
VRF types are compatible with the existingPraos
types. In this PR we create conversion functions, to allow for a smooth transition between the compatible types.In particular, we create the following conversion functions:
skToBatchCompat :: SignKeyVRF PraosVRF -> SignKeyVRF BC.PraosBatchCompatVRF
vkToBatchCompat :: VerKeyVRF PraosVRF -> VerKeyVRF BC.PraosBatchCompatVRF
outputToBatchCompat :: OutputVRF PraosVRF -> OutputVRF BC.PraosBatchCompatVRF
We include tests to guarantee the compatibility of these converted types.
This closes #345