Skip to content

feat(crypto): Add support for Ed25519 - #330

Merged
andreiltd merged 3 commits into
bytecodealliance:mainfrom
VirtualTim:ed25519
Oct 21, 2026
Merged

andreiltd merged 3 commits into
bytecodealliance:mainfrom
VirtualTim:ed25519

Conversation

@VirtualTim

@VirtualTim VirtualTim commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Once in, I think this closes #123.
This change was strongly inspired by #277 (thanks @cupofjoakim).

Some tests are failing due to WPT tests targeting an old version of the spec.
Does not implement the optional small order check, as it's optional and OpenSSL doesn't support it either.


WPT Tests
Current state is 1103 / 1768.
8 tests fixed by #328.
10 tests fixed by #333.
240 tests fixed by #334.
Note that I split these into seperate PRs, as they're latent issues.

Some tests are failing due to lack of generateKey support.
Some tests are failing due to no small-order check.
I am not planning on adding support for either of those.

Supports [sign, verify, importKey]
Some tests are failing due to WPT tests targeting an old version of the spec.
Does not implement the optional small order check, as it's optional and OpenSSL doesn't support it either.
@VirtualTim

Copy link
Copy Markdown
Contributor Author

I found a few latent issues when investigating Ed25519 WPT tests failures.
I suggest merging this PR first, then the related PR's can be rebased and have the expected tests regenerated. That way it's clear that each fix actually fixes something.

@andreiltd
andreiltd merged commit 0539a47 into bytecodealliance:main Oct 21, 2026
7 checks passed
@VirtualTim
VirtualTim deleted the ed25519 branch October 22, 2026 00:26
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.

SubtleCrypto Algorithms

2 participants