alan-turing-institute / trustchain

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

Handle different key types in SignEncrypt/DecryptVerify trait #159

Open pwochner opened 7 months ago

pwochner commented 7 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.