Skip to content

feat(Ed25519): add toX25519 key conversion utilities#204

Merged
jxom merged 1 commit intomainfrom
jxom/ed25519-to-x25519
Mar 25, 2026
Merged

feat(Ed25519): add toX25519 key conversion utilities#204
jxom merged 1 commit intomainfrom
jxom/ed25519-to-x25519

Conversation

@jxom
Copy link
Member

@jxom jxom commented Mar 25, 2026

Summary

Added Ed25519 → X25519 key conversion utilities.

Details

  • Added Ed25519.toX25519PublicKey — converts an Ed25519 public key to an X25519 public key
  • Added Ed25519.toX25519PrivateKey — converts an Ed25519 private key to an X25519 private key
  • Both support Hex and Bytes input/output formats
  • Uses @noble/curves edwardsToMontgomeryPub and edwardsToMontgomeryPriv under the hood
  • Integration test verifies converted keys produce valid X25519 shared secrets

Areas Touched

  • Ed25519 module (src/core/Ed25519.ts)

@vercel
Copy link

vercel bot commented Mar 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ox Ready Ready Preview, Comment Mar 25, 2026 6:54am

Request Review

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 25, 2026

Open in StackBlitz

npm i https://pkg.pr.new/ox@204

commit: 4367999

@jxom jxom force-pushed the jxom/ed25519-to-x25519 branch from af032a7 to 4367999 Compare March 25, 2026 06:47
@jxom jxom merged commit 9aec6a9 into main Mar 25, 2026
11 of 12 checks passed
@jxom jxom deleted the jxom/ed25519-to-x25519 branch March 25, 2026 06:54
@github-actions github-actions bot mentioned this pull request Mar 25, 2026
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.

1 participant