-
Notifications
You must be signed in to change notification settings - Fork 10
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
Unambiguous encoding #65
Conversation
Crate direct depsDirect deps
Compared to base branchDiff
All depscargo tree
Compared to base branchDiff
|
914ed25
to
48baf78
Compare
let tag = |j| { | ||
udigest::Tag::<D>::new_structured(Tag::Indexed { | ||
party_index: j, | ||
sid, | ||
}) | ||
}; |
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.
Should also include n
to match how we hashed round2 message previously?
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.
It doesn't bring much value, but it'll make it look a bit weird that this is the only place we include n
to the tag, so I'll leave it as is
The changes seem logical and consistent to me. |
@OrestisAlpos We have tests in udigest library that test that encoding is correct. In cggmp21, we have only e2e tests that ensure that keygen/signing still works correctly |
Note: CI is currently failing because of patched deps which will be resolved when LFDT-Lockness/generic-ec#10 and LFDT-Lockness/udigest#1 are merged.