alan-turing-institute / trustchain

Trustworthy decentralised PKI
https://alan-turing-institute.github.io/trustchain/
Apache License 2.0
11 stars 5 forks source link

Handle different key types in SignEncrypt/DecryptVerify trait #159

Open pwochner opened 12 months ago

pwochner commented 12 months ago

The traits SignEncrypt and DecryptVerify make assumptions about algorithms used and hence don't support, for example, RSS keys at the moment. A better way of doing it would be to get key type of provided key and choose the algorithm accordingly. We have to find out first what options josekit (which we use for encryption) supports.