Skip to content

Commit

Permalink
fix: Extend Alg enum to allow for more algorithms. refs #88
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Feb 16, 2024
1 parent bd90638 commit 6e76f57
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/common/lib/types/CredentialIssuance.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,22 @@ export interface ProofOfPossessionCallbacks<DIDDoc> {
verifyCallback?: JWTVerifyCallback<DIDDoc>;
}

/**
* Signature algorithms.
*
* TODO: Move towards string literal unions and string type, given we do not provide signature/key implementations in this library to begin with
* @See: https://github.com/Sphereon-Opensource/OID4VCI/issues/88
*/
export enum Alg {
EdDSA = 'EdDSA',
ES256 = 'ES256',
ES256K = 'ES256K',
PS256 = 'PS256',
PS384 = 'PS384',
PS512 = 'PS512',
RS256 = 'RS256',
RS384 = 'RS384',
RS512 = 'RS512',
}

export type Typ =
Expand Down

0 comments on commit 6e76f57

Please sign in to comment.