-
I couldn't seem to find a definitive answer from documentation. I ran into this while testing code to import and use a key to sign a JWT, similar to the following:
I've since switched to a different key type but I'm curious, is this expected behavior? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This browser specific support status issue is linked from the project's readme. EdDSA is not supported in browser runtimes because they have not yet adopted https://wicg.github.io/webcrypto-secure-curves/ Edit 2023: Some browsers now have an implementation of EdDSA behind a flag. The library does have the code to make EdDSA work with WebCryptoAPI the moment these get unflagged in the browser. #263 will be updated the moment browsers support it, the projects automation will pick it up and alert me when finally supported by a stable browser release. |
Beta Was this translation helpful? Give feedback.
-
Is there a way in the library to figure out, given the underlying runtime what algorithms are supported? If not, do you know of a library that does? I would like to populate the supported signing and encryption by analysis of system capabilities rather than through manual configuration... |
Beta Was this translation helpful? Give feedback.
This browser specific support status issue is linked from the project's readme.
EdDSA is not supported in browser runtimes because they have not yet adopted https://wicg.github.io/webcrypto-secure-curves/
Edit 2023: Some browsers now have an implementation of EdDSA behind a flag. The library does have the code to make EdDSA work with WebCryptoAPI the moment these get unflagged in the browser. #263 will be updated the moment browsers support it, the projects automation will pick it up and alert me when finally supported by a stable browser release.