[DO NOT MERGE] crypto: ed25519 -> Wei conversion#10345
Open
j-berman wants to merge 6 commits intomonero-project:masterfrom
Open
[DO NOT MERGE] crypto: ed25519 -> Wei conversion#10345j-berman wants to merge 6 commits intomonero-project:masterfrom
j-berman wants to merge 6 commits intomonero-project:masterfrom
Conversation
https://iacr.org/archive/pkc2004/29470042/29470042.pdf 2.2 Co-authored-by: Jeffro <jeffro256@tutanota.com>
This was referenced Mar 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds on top of:
fe_batch_invertusing Montgomery's trick #10111When inserting outputs into the FCMP++ tree, we convert each output pubkey, key image generator, and commitment (ed25519 points) into Wei x and y coordinates (as part of the tower cycle critical for the curve tree -- Wei coordinates are "Selene" scalars).
This PR introduces the crypto functions necessary to perform the conversion:
point_to_ed_derivativesed_derivatives_to_wei_x_yfe_ed_derivatives_to_wei_x_yIt uses the equation from E.2 in https://www.ietf.org/archive/id/draft-ietf-lwig-curve-representations-02.pdf.