VoterConstitutionalCommitteeHotKeyHash.deserialize constructor
VoterConstitutionalCommitteeHotKeyHash.deserialize(
- 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));
}