VoterConstitutionalCommitteeHotKeyHash.deserialize constructor

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

Implementation

factory VoterConstitutionalCommitteeHotKeyHash.deserialize(
    CborListValue cbor) {
  VoterType.deserialize(cbor.elementAt<CborIntValue>(0).value,
      validate: VoterType.constitutionalCommitteeHotKeyHash);
  return VoterConstitutionalCommitteeHotKeyHash(
      CredentialKey(cbor.elementAt<CborBytesValue>(1).value));
}