OperationalCert.deserialize constructor

OperationalCert.deserialize(
  1. CborListValue cbor
)

Implementation

factory OperationalCert.deserialize(CborListValue cbor) {
  return OperationalCert(
      hotVkey: KESVKey.deserialize(cbor.getIndex(0)),
      sequenceNumber: cbor.getIndex<CborIntValue>(1).value,
      kesPeriod: cbor.getIndex<CborIntValue>(2).value,
      sigma: Ed25519Signature.deserialize(cbor.getIndex(3)));
}