File tree Expand file tree Collapse file tree
packages/core/src/modules/sd-jwt-vc
credential-status/token-status-list Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { TokenStatusListRegistry } from './credential-status/token-status-list/TokenStatusListRegistry'
1+ import { TokenStatusListRegistry } from './credential-status'
2+ import { HttpTokenStatusListRegistry } from './credential-status/token-status-list/http/HttpTokenStatusListRegistry'
23
34/**
45 * SdJwtVcModuleConfigOptions defines the interface for the options of the SdJwtVcModuleConfig class.
@@ -30,7 +31,7 @@ export class SdJwtVcModuleConfig {
3031 // This prevents creating new instances every time this property is accessed
3132 if ( this . _registries ) return this . _registries
3233
33- this . _registries = this . options . registries ?? [ ]
34+ this . _registries = [ ... ( this . options . registries || [ ] ) , new HttpTokenStatusListRegistry ( ) ]
3435
3536 return this . _registries
3637 }
Original file line number Diff line number Diff line change 11import { StatusList , getListFromStatusListJWT } from '@sd-jwt/jwt-status-list'
2- import { isDid } from 'packages/core/src/utils'
32import { injectable } from 'tsyringe'
43import { AgentContext } from '../../../../agent'
54import { JwsService , Jwt , JwtPayload } from '../../../../crypto'
65import { CredoError } from '../../../../error'
6+ import { isDid } from '../../../../utils'
77import { DidsApi , getPublicJwkFromVerificationMethod , parseDid } from '../../../dids'
88import { SdJwtVcModuleConfig } from '../../SdJwtVcModuleConfig'
99import { SdJwtVcIssuer } from '../../SdJwtVcOptions'
@@ -204,7 +204,7 @@ export class TokenStatusListService {
204204 if ( issuer . method === 'did' ) {
205205 method = parseDid ( issuer . didUrl ) . method
206206 } else {
207- method = 'http' // TODO: implement x5c handler
207+ method = 'http'
208208 }
209209
210210 return this . sdJwtVcModuleConfig . registries . find ( ( r ) => r . supportedMethods . includes ( method ) ) ?? null
You can’t perform that action at this time.
0 commit comments