I am trying to use the webcrypto experimental module with the k6/experimental/grpc module. When I attempt to use async/await , which I believe are supported since v0.43.0, I receive this error:
ERRO[0001] Uncaught (in promise) NotSupportedError
The issue that you’re facing isn’t related to the async/await support. It happens because the k6/experimental/webcrypto module doesn’t support the EdDSA algorithm:
Looking into the webcrypto module’s open issues Issues · grafana/xk6-webcrypto · GitHub I can’t see that we even have a planned task to support the Edwards-curve Digital Signature Algorithm (EdDSA).
The error you’re experiencing is due to the fact that we haven’t implemented support for the ECDSA algorithm in the k6/experimental/webcrypto module just yet. It is still an experimental module, and we unfortunately haven’t gotten to it, yet.
For context:
The WebCrypto specification does include ECDSA (and ECDH). They are supported for the sign , verify , generateKey , importKey , and exportKey operations.
At the moment, we throw an UnsupportedError to indicate that support for the algorithm is not implemented yet.
The README of the project has a table indicating what is supported and what isn’t, but I think we didn’t include that in the docs, which we probably should.
Implementing support for the ECDSA algorithm hasn’t been prioritized to this day, and we don’t have an ETA for it yet. Please let us know in the GitHub issue you care about seeing this implemented by adding a to it.
Sorry for the confusion: it appears I read the name of the algorithm you asked about as ecdsa, when it was eddsa.
Thus, my comment above is invalidated by the fact that eddsa support is not included in the WebCrypto specification we have been basing our implementation. Therefore, we won’t include support for it.