import type { MessageHandler, MessageHandlerInboundMessage } from '../../../../../agent/MessageHandler' import type { V1DiscoverFeaturesService } from '../V1DiscoverFeaturesService' import { V1DiscloseMessage } from '../messages' export class V1DiscloseMessageHandler implements MessageHandler { public supportedMessages = [V1DiscloseMessage] private discoverFeaturesService: V1DiscoverFeaturesService public constructor(discoverFeaturesService: V1DiscoverFeaturesService) { this.discoverFeaturesService = discoverFeaturesService } public async handle(inboundMessage: MessageHandlerInboundMessage) { await this.discoverFeaturesService.processDisclosure(inboundMessage) } }