-
Notifications
You must be signed in to change notification settings - Fork 265
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
Fix #47 #160
Fix #47 #160
Conversation
Upstream tests pass for |
I'm generally confused as to why For this new class of curves, presumably the serialization with flags is still constant sized, its just one byte longer than the serialization without flags? |
It was removed because the size depends dynamically on the flag used (and we can't do generics in constants yet). For example, if I'm serializing with |
I'm a bit confused about the structure of this. Currently it sounds like the field has a method
I'm not seeing why we would want to specialize the appending of flags to fields. Is there an efficiency gain in the current form? |
Not all objects care about |
Co-authored-by: Dev Ojha <[email protected]>
The only method that would be added to The concept of flags is essentially taking two serializable objects, and concatenating their serializations at the bit-level instead of the byte level. I don't currently understand why we'd prefer the flag trait versus making a serialization method / deserialization method that concatenates object serializations at the bit-boundary, instead of the byte boundary. Maybe we should put this into an issue, and revisit later? A more general method would also enable saving space in serializing many 257 bit field elements |
Hmm that is interesting, but out of scope for this PR =P I've filed an issue about it, so that we can revisit it in the future (it might be that the space saving would be blown out by the implementation complexity) |
@ValarDragon is there anything else you'd like to see changed here? |
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! Thanks for adding more documentation around all of these changes as well
Description
closes: #47
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
Pending
section inCHANGELOG.md
Files changed
in the Github PR explorer