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

[zk-sdk] Hide range proof and inner product proof type fields #4338

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

samkim-crypto
Copy link

@samkim-crypto samkim-crypto commented Jan 8, 2025

Problem

Currently, the RangeProof and InnerProductProof types contains public fields that are more of an implementation detail than something that should be extracted by downstream projects.

Summary of Changes

I updated the visibility of these fields to pub(crate) as they shouldn't really be exposed outside of the crate. I verified that all current consumers of the zk-sdk do not make use of these fields.

This change in visibility will also enable exporting out the range proof type as wasm since the dalek CompressedRistretto and Scalar types are not exported out with wasm_bindgen upstream.

Fixes #

@samkim-crypto samkim-crypto marked this pull request as ready for review January 8, 2025 11:35
Copy link

@joncinque joncinque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me!

@samkim-crypto samkim-crypto merged commit 9808a90 into anza-xyz:master Jan 8, 2025
40 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.

2 participants