decentralized-identity / did-jwt

Create and verify DID verifiable JWT's in Javascript
Apache License 2.0
334 stars 71 forks source link

how to support sm2 algorithm #218

Closed mtiger2k closed 2 years ago

mtiger2k commented 2 years ago

SM2 is needed in China project. It seems did-jwt doesn't support it.

JS version is here: https://github.com/JuneAndGreen/sm-crypto.

thanks.

mirceanis commented 2 years ago

does sm2 have a spec?

mtiger2k commented 2 years ago

You can refer to this article, https://ieeexplore.ieee.org/document/6201878

mtiger2k commented 2 years ago

probably it's ECDSA

mirceanis commented 2 years ago

The spec you mention seems to be guarded by institutional login credentials, which I don't have.

It's very unlikely that we can add that support to this library as-is, since that is not a dependency we are prepared to carry around. After #170 is resolved you should be able to create that support yourself and install sm2 only on your deployments. I can't provide a timeline for that, though.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.