PoolRetirement.deserialize constructor
PoolRetirement.deserialize(
- CborListValue<
CborObject> cbor
Deserializes a PoolRetirement object from its CBOR representation.
Implementation
factory PoolRetirement.deserialize(CborListValue cbor) {
CertificateType.deserialize(cbor.elementAt<CborIntValue>(0),
validate: CertificateType.poolRetirement);
return PoolRetirement(
epoch: cbor.elementAt<CborNumeric>(2).toInt(),
poolKeyHash:
Ed25519KeyHash.deserialize(cbor.elementAt<CborBytesValue>(1)));
}