decentralized-identity / did-jwt-vc

Create and verify W3C Verifiable Credentials and Presentations in JWT format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add `alg` entry to `Issuer` type to support multiple signature schemes

mirceanis opened this issue · comments

ES256K-R is hardcoded as the only supported algorithm which limits the use to only secp256k1 keys with custom verification.

The Issuer type should define the appropriate algorithm for the credential they need to issue.

Steps to resolve

  1. add alg field to Issuer type (

    export interface Issuer {
    )

  2. This issuer algorithm should then be passed to createJWT instead of the hardcoded JWT_ALG

    alg: JWT_ALG

    and
    alg: JWT_ALG

  3. Add tests for ES256K and Ed25519