Certificate constructor
Certificate({
- required BinaryBlob cert,
- required Principal canisterId,
- BinaryBlob? rootKey,
- int? maxAgeInMinutes = 5,
Implementation
Certificate({
required BinaryBlob cert,
required this.canisterId,
this.rootKey,
this.maxAgeInMinutes = 5,
}) : assert(maxAgeInMinutes == null || maxAgeInMinutes <= 5),
cert = Cert.fromJson(cborDecode(cert));