import type { MessageHandler, MessageHandlerInboundMessage } from '../../../../../agent/MessageHandler' import type { RevocationNotificationService } from '../services' import { V2RevocationNotificationMessage } from '../messages/V2RevocationNotificationMessage' export class V2RevocationNotificationHandler implements MessageHandler { private revocationService: RevocationNotificationService public supportedMessages = [V2RevocationNotificationMessage] public constructor(revocationService: RevocationNotificationService) { this.revocationService = revocationService } public async handle(messageContext: MessageHandlerInboundMessage) { await this.revocationService.v2ProcessRevocationNotification(messageContext) } }