/**
 * Keygen Result Response DTO
 */

import { ApiProperty } from '@nestjs/swagger';

export class KeygenResultDto {
  @ApiProperty({
    description: 'Generated share ID',
    example: 'share_1699887766123_abc123xyz',
  })
  shareId: string;

  @ApiProperty({
    description: 'Group public key (hex)',
    example: '03abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab',
  })
  publicKey: string;

  @ApiProperty({
    description: 'Threshold configuration',
    example: '2-of-3',
  })
  threshold: string;

  @ApiProperty({
    description: 'Session ID',
    example: '550e8400-e29b-41d4-a716-446655440000',
  })
  sessionId: string;

  @ApiProperty({
    description: 'Party ID',
    example: 'user123-server',
  })
  partyId: string;
}

export class KeygenAcceptedDto {
  @ApiProperty({
    description: 'Status message',
    example: 'Keygen participation started',
  })
  message: string;

  @ApiProperty({
    description: 'Session ID',
    example: '550e8400-e29b-41d4-a716-446655440000',
  })
  sessionId: string;

  @ApiProperty({
    description: 'Party ID',
    example: 'user123-server',
  })
  partyId: string;
}
