-
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 bindings to generate proof from uncompressed banderwagon values #96
Conversation
tanishqjasoria
commented
Aug 13, 2024
•
edited
Loading
edited
- add c bindings package
- add functions to generate and verify proof from uncompressed banderwagon values
Added verify_proof function to be called from C# bandersnatch repository
…d 64 bytes commitment into 32 bytes - Called in new function deserialize_proof_query_uncompressed
…ment in prover queries bytes
Bindings Update with latest rust changes
16a4815
to
ee3121b
Compare
Would be good, if you could add a dummy C sharp project, so that we can merge and keep pushing releases to it! |
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 looks good to me, I think we can clean things up in separate PRs and more importantly its non-breaking!
pub fn to_bytes_uncompressed(&self) -> crate::IOResult<Vec<u8>> { | ||
let mut bytes = Vec::with_capacity(self.open_proof.uncompressed_size() + 64); | ||
bytes.extend(self.g_x_comm.to_bytes_uncompressed()); | ||
|
||
bytes.extend(self.open_proof.to_bytes_uncompressed()?); | ||
Ok(bytes) | ||
} |
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.
I'll clean up serialization in another PR, its becoming a bit unwieldly because its not opaque :(