48 previous_service_identity_version,
51 current_service_create_txid);
58 static constexpr auto SERVICE =
"public:ccf.gov.service.info";
#define DECLARE_JSON_REQUIRED_FIELDS(TYPE,...)
Definition json.h:712
#define DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS(TYPE)
Definition json.h:688
#define DECLARE_JSON_OPTIONAL_FIELDS(TYPE,...)
Definition json.h:784
#define DECLARE_JSON_ENUM(TYPE,...)
Definition json.h:835
Definition app_interface.h:15
ccf::kv::ValueSerialisedWith< V, ccf::kv::serialisers::JsonSerialiser, ccf::kv::serialisers::ZeroBlitUnitCreator > ServiceValue
Definition map.h:28
ServiceStatus
Definition service.h:13
@ WAITING_FOR_RECOVERY_SHARES
ServiceValue< ServiceInfo > Service
Definition service.h:55
ServiceStatus status
Status of the service.
Definition service.h:32
std::optional< ccf::TxID > current_service_create_txid
TxID at which current service was created.
Definition service.h:42
std::optional< size_t > recovery_count
Number of disaster recoveries performed on this service.
Definition service.h:37
std::optional< ccf::kv::Version > previous_service_identity_version
Version (seqno) of previous service identity (before the last recovery)
Definition service.h:34
ccf::crypto::Pem cert
x.509 Service Certificate, as a PEM string
Definition service.h:30
nlohmann::json service_data
Definition service.h:40