diff --git a/backend/services/mpc-service/src/api/controllers/mpc.controller.ts b/backend/services/mpc-service/src/api/controllers/mpc.controller.ts index 3afb2edc..8cda0488 100644 --- a/backend/services/mpc-service/src/api/controllers/mpc.controller.ts +++ b/backend/services/mpc-service/src/api/controllers/mpc.controller.ts @@ -28,6 +28,7 @@ import { ApiResponse, ApiParam, } from '@nestjs/swagger'; +import { IsString, IsNumber, IsBoolean, IsOptional } from 'class-validator'; import { Public } from '../../shared/decorators/public.decorator'; import { MPCCoordinatorService } from '../../application/services/mpc-coordinator.service'; @@ -36,15 +37,28 @@ import { MPCCoordinatorService } from '../../application/services/mpc-coordinato // ============================================ export class CreateKeygenDto { + @IsString() username: string; + + @IsNumber() thresholdN: number; + + @IsNumber() thresholdT: number; + + @IsBoolean() requireDelegate: boolean; } export class CreateSigningDto { + @IsString() username: string; + + @IsString() messageHash: string; + + @IsString() + @IsOptional() userShare?: string; }