Open
Description
Description
Add support for JWK
& JWS
representations as well as secp256r1
& secp256k1
encryption and verification.
Motivation
We parse DID Documents and VCs byte-wise in hardware. In order for our hardware to be compatible with identity.rs, we need to be able to represent keys as JWK
/JWS
instead of JCS
, and to encrypt/verify using secp256r1
& secp256k1
.
Note that all of this is of course supported by the W3C DID/VC Standards.
Requirements
Encoding types
-
JWK
(JSON Web Key) for keys. In e.g. DID Documents, this representation would look like this instead of e.g. this. -
JWS
(JSON Web Signature) for signatures (within e.g.proof
fields), e.g. this
Encryption types
-
secp256r1
akaP-256
-
secp256k1
Are you planning to do it yourself in a pull request?
No, as of now.