Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@samkim-crypto
Copy link
Contributor

@samkim-crypto samkim-crypto commented Aug 22, 2025

Problem

The logic in lib.rs is becoming slightly harder to read as it is getting longer and it is organized by submodules inside files.

Summary of Changes

I created logical submodules for the addition, multiplication, and pairing operations for elliptic curves. I then moved the relevant logic in lib.rs to these relevant submodules. All the functions and constants in lib.rs were behind private submodules (consts and target_arch) and were re-exported as part of prelude. I kept this structure the same, so from the perspective of downstream projects, this should not introduce any visible changes.

@samkim-crypto samkim-crypto marked this pull request as ready for review August 25, 2025 03:23
@samkim-crypto samkim-crypto requested a review from LucasSte August 25, 2025 23:26
@LStan
Copy link
Contributor

LStan commented Aug 26, 2025

What do you think about moving LE_FLAG to lib.rs as pub(crate)? It is repeated in all files

@samkim-crypto
Copy link
Contributor Author

What do you think about moving LE_FLAG to lib.rs as pub(crate)? It is repeated in all files

Okay, this should be updated.

@LStan
Copy link
Contributor

LStan commented Aug 26, 2025

It is also in compression.rs

@samkim-crypto samkim-crypto merged commit 4271132 into anza-xyz:master Aug 26, 2025
25 checks passed
febo pushed a commit to febo/solana-sdk that referenced this pull request Sep 21, 2025
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