Skip to content
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

Merged
merged 22 commits into from
Sep 5, 2024

Conversation

tanishqjasoria
Copy link
Contributor

@tanishqjasoria tanishqjasoria commented Aug 13, 2024

  • add c bindings package
  • add functions to generate and verify proof from uncompressed banderwagon values

@kevaundray
Copy link
Contributor

Would be good, if you could add a dummy C sharp project, so that we can merge and keep pushing releases to it!

@tanishqjasoria tanishqjasoria marked this pull request as ready for review August 26, 2024 08:08
Cargo.toml Show resolved Hide resolved
Copy link
Contributor

@kevaundray kevaundray left a 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!

Comment on lines +214 to +220
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)
}
Copy link
Contributor

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 :(

@kevaundray kevaundray merged commit ec29458 into crate-crypto:master Sep 5, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants