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

[zk-token-sdk] Refactor zk-token-elgamal pod types #31814

Merged
merged 8 commits into from
May 26, 2023
Merged

[zk-token-sdk] Refactor zk-token-elgamal pod types #31814

merged 8 commits into from
May 26, 2023

Conversation

samkim-crypto
Copy link
Contributor

Problem

The zk-token-elgamal submodule contains pod types for various types in zk-token-sdk. Currently, all pod types live in the single pod.rs, which could be broken into separate submodules.

Summary of Changes

Break up the pod types into separate submodules within zk-token-elgamal.

This addresses step 1 of #31813,

Fixes #

@codecov
Copy link

codecov bot commented May 25, 2023

Codecov Report

Merging #31814 (fbf0b04) into master (0e93090) will decrease coverage by 0.1%.
The diff coverage is 12.9%.

@@            Coverage Diff            @@
##           master   #31814     +/-   ##
=========================================
- Coverage    81.9%    81.9%   -0.1%     
=========================================
  Files         738      744      +6     
  Lines      205902   205902             
=========================================
- Hits       168705   168644     -61     
- Misses      37197    37258     +61     

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.

All the module moves look good! Thanks for doing them in separate commits; made my job easy.
Can we sneak in these 2 comment abbreviation fixes?

zk-token-sdk/src/zk_token_elgamal/pod/sigma_proofs.rs Outdated Show resolved Hide resolved
zk-token-sdk/src/zk_token_elgamal/pod/sigma_proofs.rs Outdated Show resolved Hide resolved
};
pub use {
auth_encryption::AeCiphertext,
bytemuck::{Pod, Zeroable},
Copy link
Contributor

Choose a reason for hiding this comment

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

Incidentally, why do we re-export these traits?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The bytemuck version on the monorepo and spl side do not always match, so I had some issues before without re-exporting these traits. I can't seem to reproduce it or recall what the precise issue was right now though ... 😕

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants