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