requireProductionCeremony static method

void requireProductionCeremony(
  1. SchemeId scheme,
  2. ThresholdCeremonyKind ceremony
)

Throws SchemeNotImplemented if scheme is not production-ready for ceremonies.

Implementation

static void requireProductionCeremony(
  SchemeId scheme,
  ThresholdCeremonyKind ceremony,
) {
  if (!supports(scheme, ceremony)) {
    throw SchemeNotImplemented(
      'Ceremony $ceremony is not implemented for $scheme '
      '(milestone: ${milestone(scheme).name})',
    );
  }
}