GenesisKeyDelegation.deserialize constructor

GenesisKeyDelegation.deserialize(
  1. CborListValue cbor
)

Constructs a GenesisKeyDelegation instance from its serialized form.

Implementation

factory GenesisKeyDelegation.deserialize(CborListValue cbor) {
  CertificateType.deserialize(cbor.getIndex(0),
      validate: CertificateType.genesisKeyDelegation);
  return GenesisKeyDelegation(
      genesisDelegateHash: GenesisDelegateHash.deserialize(cbor.getIndex(2)),
      genesisHash: GenesisHash.deserialize(cbor.getIndex(1)),
      vrfKeyHash: VRFKeyHash.deserialize(cbor.getIndex(3)));
}