New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WASM support for ruma-signatures #22
Comments
If ed25519-dalek can fully replace ring for our uses, I think I'd be in favor of switching and AFAIK it's also written by trustworthy people. I don't really know what our current uses of ring even are though and I don't have much time to understand this crate in more detail. We really need an owner for this crate who is not me... |
Looks like it could fully replace ring, would need some adjustments in the tests. ed25519-dalek seems to be geared for this specific use case, which is nice I think, but ring might be the better candidate if one day different algorithms might be needed. I'll look into putting it behind a feature. |
While we could support both behind feature flags, I'm not sure what that achieves. Are you interested in maintaining ruma-signatures? If not, maybe the best path forward for now is to have your own fork using |
changed the title on this to be specific to the crate now that it's been moved to the monorepo. |
ed25519-dalek 1.0 is out, I'd welcome a PR switching from ring to ed25519-dalek. |
|
ruma-signatures has two spots which uses
ruma/crates/ruma-signatures/src/keys.rs Line 62 in d71fa97
These would also need replacement candidates. |
Suggestions from @poljar are;
|
The ed25519-dalek crate uses rand's traits in its interface so we should use that for keypair generation (probably fine to use |
I opened this issue because it doesn't seem |
Going deeper down the rabbit hole, I discovered that the |
@stoically now that #589 has merged into |
Closing under the assumption that this now works, if it doesn't please open an issue with details on how it fails. |
Currently
ring
s Ed25519 doesn't work for the WebAssembly target (briansmith/ring#918), hence ruma-signature doesn't work on WASM either.The text was updated successfully, but these errors were encountered: