CommitteeHotAuth.deserialize constructor

CommitteeHotAuth.deserialize(
  1. CborListValue<CborObject> cbor
)

Implementation

factory CommitteeHotAuth.deserialize(CborListValue cbor) {
  CertificateType.deserialize(cbor.elementAt<CborIntValue>(0),
      validate: CertificateType.committeeHotAuth);
  return CommitteeHotAuth(
      committeeColdCredential:
          Credential.deserialize(cbor.elementAt<CborListValue>(1)),
      committeeHotCredential:
          Credential.deserialize(cbor.elementAt<CborListValue>(2)));
}