Certificate constructor

Certificate({
  1. required BinaryBlob cert,
  2. required Principal canisterId,
  3. BinaryBlob? rootKey,
  4. 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));