-
Notifications
You must be signed in to change notification settings - Fork 56
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
Remove pub from fields, add getters #401
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #401 +/- ##
==========================================
+ Coverage 69.81% 70.65% +0.84%
==========================================
Files 30 30
Lines 2650 2614 -36
==========================================
- Hits 1850 1847 -3
+ Misses 800 767 -33
☔ View full report in Codecov by Sentry. |
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.
This needs to be synced with main to avoid duplication from other PRs. Otherwise it's all good!
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
Depends on #398
This removes
pub
from fields and adds getters instead, which combined with thenew()
methods from #398 allow recreating structs, which in turn allows using arbitrary encoding schemes.This also adds tests for them.
The sample-values-building functions introduced in those tests will be backported to the serde tests, allowing creating ciphersuite-generic tests.
Finally this switches to
BTreeMap
for signing commitments, which I had to touch anyway to introduce a getter for it and IMO makes the code a lot of simpler. (This was also done in #397 )