import { IsString, IsNumberString } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class DeriveAddressDto {
  @ApiProperty({ description: '用户ID', example: '12345' })
  @IsNumberString()
  userId: string;

  @ApiProperty({ description: '账户序列号 (格式: D + YYMMDD + 5位序号)', example: 'D2512110008' })
  @IsString()
  accountSequence: string;

  @ApiProperty({
    description: '压缩公钥 (33 bytes, 0x02/0x03 开头)',
    example: '0x02abc123...',
  })
  @IsString()
  publicKey: string;
}
