39 std::vector<uint8_t> encrypted_data = {};
46 std::optional<ccf::kv::Version> previous_secret_stored_version =
52 std::vector<uint8_t>&& encrypted_data_,
54 std::optional<ccf::kv::Version> stored_version_) :
55 encrypted_data(
std::move(encrypted_data_)),
57 previous_secret_stored_version(stored_version_)
69 return !(*
this == other);
83 std::optional<PreviousLedgerSecretInfo> previous_ledger_secret =
94 std::optional<ccf::kv::Version> next_version = std::nullopt;
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:714
#define DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS(TYPE)
Definition json.h:690
#define DECLARE_JSON_OPTIONAL_FIELDS(TYPE,...)
Definition json.h:786
uint64_t Version
Definition version.h:8
Definition app_interface.h:14
std::map< MemberId, EncryptedShare > EncryptedSharesMap
Definition shares.h:14
std::vector< uint8_t > EncryptedShare
Definition shares.h:13
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