Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

[zk-token-sdk] Make inner scalar and ristretto point of PedersenOpening and PedersenCommitment private #32187

Merged
merged 2 commits into from
Jun 20, 2023
Merged

[zk-token-sdk] Make inner scalar and ristretto point of PedersenOpening and PedersenCommitment private #32187

merged 2 commits into from
Jun 20, 2023

Conversation

samkim-crypto
Copy link
Contributor

@samkim-crypto samkim-crypto commented Jun 19, 2023

Problem

Currently, the Scalar and RistrettoPoint components of the PedersenOpening and PedersenCommitment types have visibility pub(crate) while each of these types have getters to access the inner types.

Summary of Changes

  • Make the inenr Scalar and RistrettoPoint components in these structs be fully private
  • For places that accesses these inner components directly, update them so that they use the specific getter function

Fixes #

@samkim-crypto samkim-crypto added the work in progress This isn't quite right yet label Jun 19, 2023
@codecov
Copy link

codecov bot commented Jun 19, 2023

Codecov Report

Merging #32187 (29ffed4) into master (ce929be) will decrease coverage by 0.1%.
The diff coverage is 78.5%.

@@            Coverage Diff            @@
##           master   #32187     +/-   ##
=========================================
- Coverage    81.9%    81.9%   -0.1%     
=========================================
  Files         768      768             
  Lines      209037   209045      +8     
=========================================
+ Hits       171332   171333      +1     
- Misses      37705    37712      +7     

@samkim-crypto samkim-crypto added v1.16 PRs that should be backported to v1.16 and removed work in progress This isn't quite right yet labels Jun 19, 2023
Copy link
Contributor

@CriesofCarrots CriesofCarrots left a comment

Choose a reason for hiding this comment

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

🎉

@samkim-crypto samkim-crypto merged commit 1616123 into solana-labs:master Jun 20, 2023
mergify bot pushed a commit that referenced this pull request Jun 20, 2023
…ing` and `PedersenCommitment` private (#32187)

* make `PedersenOpening` inner scalar private

* make `PedersenCommitment` inner point private

(cherry picked from commit 1616123)
samkim-crypto added a commit that referenced this pull request Jun 21, 2023
…senOpening` and `PedersenCommitment` private (backport of #32187) (#32212)

[zk-token-sdk] Make inner scalar and ristretto point of `PedersenOpening` and `PedersenCommitment` private (#32187)

* make `PedersenOpening` inner scalar private

* make `PedersenCommitment` inner point private

(cherry picked from commit 1616123)

Co-authored-by: samkim-crypto <skim13@cs.stanford.edu>
wen-coding pushed a commit to wen-coding/solana that referenced this pull request Aug 15, 2023
…ing` and `PedersenCommitment` private (solana-labs#32187)

* make `PedersenOpening` inner scalar private

* make `PedersenCommitment` inner point private
wen-coding pushed a commit to wen-coding/solana that referenced this pull request Aug 15, 2023
…ing` and `PedersenCommitment` private (solana-labs#32187)

* make `PedersenOpening` inner scalar private

* make `PedersenCommitment` inner point private
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
v1.16 PRs that should be backported to v1.16
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants