rwadurian/backend/services/mpc-service/src/application/commands/participate-keygen/participate-keygen.command.ts

37 lines
753 B
TypeScript

/**
* Participate In Keygen Command
*
* Command to participate in an MPC key generation session.
*/
import { PartyShareType } from '../../../domain/enums';
export class ParticipateInKeygenCommand {
constructor(
/**
* The MPC session ID to join
*/
public readonly sessionId: string,
/**
* This party's identifier
*/
public readonly partyId: string,
/**
* Token to authenticate with the session coordinator
*/
public readonly joinToken: string,
/**
* Type of share being generated (wallet, admin, recovery)
*/
public readonly shareType: PartyShareType,
/**
* Optional: Associated user ID (for wallet shares)
*/
public readonly userId?: string,
) {}
}