CCF
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
shares.h File Reference
#include "ccf/service/map.h"
#include <map>
#include <optional>
#include <vector>

Go to the source code of this file.

Classes

struct  ccf::RecoverySharesInfo
 
struct  ccf::PreviousLedgerSecretInfo
 
struct  ccf::EncryptedLedgerSecretInfo
 

Namespaces

namespace  ccf
 
namespace  ccf::Tables
 

Typedefs

using ccf::EncryptedShare = std::vector< uint8_t >
 
using ccf::EncryptedSharesMap = std::map< MemberId, EncryptedShare >
 
using ccf::RecoveryShares = ServiceValue< RecoverySharesInfo >
 
using ccf::EncryptedLedgerSecretsInfo = ServiceValue< EncryptedLedgerSecretInfo >
 

Functions

 ccf::DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (RecoverySharesInfo)
 
 ccf::DECLARE_JSON_REQUIRED_FIELDS (RecoverySharesInfo, wrapped_latest_ledger_secret, encrypted_shares)
 
 ccf::DECLARE_JSON_OPTIONAL_FIELDS (RecoverySharesInfo, previous_secret_stored_version)
 
 ccf::DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (PreviousLedgerSecretInfo)
 
 ccf::DECLARE_JSON_REQUIRED_FIELDS (PreviousLedgerSecretInfo, encrypted_data, version)
 
 ccf::DECLARE_JSON_OPTIONAL_FIELDS (PreviousLedgerSecretInfo, previous_secret_stored_version)
 
 ccf::DECLARE_JSON_TYPE_WITH_OPTIONAL_FIELDS (EncryptedLedgerSecretInfo)
 
 ccf::DECLARE_JSON_REQUIRED_FIELDS (EncryptedLedgerSecretInfo)
 
 ccf::DECLARE_JSON_OPTIONAL_FIELDS (EncryptedLedgerSecretInfo, previous_ledger_secret, next_version)