StakeRegistration.deserialize constructor

StakeRegistration.deserialize(
  1. CborListValue cbor
)

Deserializes a StakeRegistration object from its CBOR representation.

Implementation

factory StakeRegistration.deserialize(CborListValue cbor) {
  CertificateType.deserialize(cbor.getIndex(0),
      validate: CertificateType.stakeRegistration);
  return StakeRegistration(StakeCred.deserialize(cbor.getIndex(1)));
}