KeyPackage constructor
KeyPackage({})
suites defaults to what keys can open — see the field's own doc for
why that is not the same as what this build supports.
Implementation
factory KeyPackage({
required String enrollmentId,
String? apkamId,
required DateTime createdAt,
required List<PackageKey> keys,
List<String>? suites,
int v = currentVersion,
}) =>
KeyPackage._(
enrollmentId: enrollmentId,
apkamId: apkamId,
createdAt: createdAt,
keys: keys,
suites: suites ??
SecretSharingAlgos.openableSuitesForAll(keys.map((k) => k.alg)),
v: v,
);