Skip to content

Commit 6e76f57

Browse files
committed
fix: Extend Alg enum to allow for more algorithms. refs #88
1 parent bd90638 commit 6e76f57

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

packages/common/lib/types/CredentialIssuance.types.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,22 @@ export interface ProofOfPossessionCallbacks<DIDDoc> {
124124
verifyCallback?: JWTVerifyCallback<DIDDoc>;
125125
}
126126

127+
/**
128+
* Signature algorithms.
129+
*
130+
* TODO: Move towards string literal unions and string type, given we do not provide signature/key implementations in this library to begin with
131+
* @See: https://github.com/Sphereon-Opensource/OID4VCI/issues/88
132+
*/
127133
export enum Alg {
128134
EdDSA = 'EdDSA',
129135
ES256 = 'ES256',
130136
ES256K = 'ES256K',
137+
PS256 = 'PS256',
138+
PS384 = 'PS384',
139+
PS512 = 'PS512',
140+
RS256 = 'RS256',
141+
RS384 = 'RS384',
142+
RS512 = 'RS512',
131143
}
132144

133145
export type Typ =

0 commit comments

Comments
 (0)