52 std::vector<uint8_t>&& encrypted_data_,
54 std::optional<ccf::kv::Version> stored_version_) :
69 return !(*
this == other);
122 static constexpr auto SHARES =
"public:ccf.internal.recovery_shares";
123 static constexpr auto ENCRYPTED_PAST_LEDGER_SECRET =
124 "public:ccf.internal.historical_encrypted_ledger_secret";
#define DECLARE_JSON_REQUIRED_FIELDS(TYPE,...)
Definition json.h:736
#define DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS(TYPE)
Definition json.h:712
#define DECLARE_JSON_OPTIONAL_FIELDS(TYPE,...)
Definition json.h:811
uint64_t Version
Definition version.h:10
Definition app_interface.h:13
std::map< MemberId, EncryptedShare > EncryptedSharesMap
Definition shares.h:14
std::vector< uint8_t > EncryptedShare
Definition shares.h:13
std::optional< ccf::kv::Version > next_version
Definition shares.h:94
std::optional< PreviousLedgerSecretInfo > previous_ledger_secret
Definition shares.h:83
PreviousLedgerSecretInfo()=default
PreviousLedgerSecretInfo(std::vector< uint8_t > &&encrypted_data_, ccf::kv::Version version_, std::optional< ccf::kv::Version > stored_version_)
Definition shares.h:51
ccf::kv::Version version
Definition shares.h:42
std::optional< ccf::kv::Version > previous_secret_stored_version
Definition shares.h:46
bool operator==(const PreviousLedgerSecretInfo &other) const
Definition shares.h:60
std::vector< uint8_t > encrypted_data
Definition shares.h:39
bool operator!=(const PreviousLedgerSecretInfo &other) const
Definition shares.h:67
EncryptedSharesMap encrypted_shares
Definition shares.h:23
std::optional< ccf::kv::Version > previous_secret_stored_version
Definition shares.h:26
std::vector< uint8_t > wrapped_latest_ledger_secret
Definition shares.h:19