Skip to content

[DO NOT MERGE] crypto: ed25519 -> Wei conversion#10345

Open
j-berman wants to merge 6 commits intomonero-project:masterfrom
j-berman:ed-to-wei
Open

[DO NOT MERGE] crypto: ed25519 -> Wei conversion#10345
j-berman wants to merge 6 commits intomonero-project:masterfrom
j-berman:ed-to-wei

Conversation

@j-berman
Copy link
Collaborator

@j-berman j-berman commented Mar 2, 2026

Builds on top of:

When 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_derivatives
  • ed_derivatives_to_wei_x_y
  • fe_ed_derivatives_to_wei_x_y

It uses the equation from E.2 in https://www.ietf.org/archive/id/draft-ietf-lwig-curve-representations-02.pdf.

@j-berman j-berman changed the title crypto: ed25519 -> Wei conversion [DO NOT MERGE] crypto: ed25519 -> Wei conversion Mar 2, 2026
@selsta selsta added this to the fcmp++ hf milestone Mar 3, 2026
@selsta selsta added the fcmp++ label Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants