-
Notifications
You must be signed in to change notification settings - Fork 22
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
Added serialization support for compatibility with latest plonky2 head #3
base: main
Are you sure you want to change the base?
Conversation
This is great and much appreciated ! It would be great to have this one get in ! @dlubarov, @npwardberkeley |
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 for the most part!
@@ -27,6 +29,15 @@ impl BigUintTarget { | |||
pub fn get_limb(&self, i: usize) -> U32Target { | |||
self.limbs[i] | |||
} | |||
pub fn write_to_serializer(&self, dst: &mut Vec<u8>) -> IoResult<()> { |
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.
nit: spacing between functions
plonky2 = { version = "0.1.2", default-features = false } | ||
plonky2_u32 = { version = "0.1.0", default-features = false } | ||
plonky2 = { git = "https://github.com/mir-protocol/plonky2", rev = "3de92d9ed1721cec133e4e1e1b3ec7facb756ccf", default-features = false } | ||
plonky2_u32 = { git = "https://github.com/cf/plonky2-u32", rev = "5b3cb748be32844ae449c62eae6f08278e4b4911", default-features = false } |
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.
For all of these (especially your forked repo here), is there a reason for using these specific commits?
Added serialization support for generators which implement SimpleGenerator (required to use this package with the latest plonky2:HEAD):