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