CCF
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
ccf::InternalTablesAccess Class Reference

#include <internal_tables_access.h>

Public Member Functions

 InternalTablesAccess ()=delete
 

Static Public Member Functions

static void retire_active_nodes (ccf::kv::Tx &tx)
 
static bool is_recovery_participant_or_owner (ccf::kv::ReadOnlyTx &tx, const MemberId &member_id)
 
static bool is_recovery_participant (ccf::kv::ReadOnlyTx &tx, const MemberId &member_id)
 
static bool is_recovery_owner (ccf::kv::ReadOnlyTx &tx, const MemberId &member_id)
 
static bool is_active_member (ccf::kv::ReadOnlyTx &tx, const MemberId &member_id)
 
static std::map< MemberId, ccf::crypto::Pemget_active_recovery_participants (ccf::kv::ReadOnlyTx &tx)
 
static std::map< MemberId, ccf::crypto::Pemget_active_recovery_owners (ccf::kv::ReadOnlyTx &tx)
 
static MemberId add_member (ccf::kv::Tx &tx, const NewMember &member_pub_info)
 
static bool activate_member (ccf::kv::Tx &tx, const MemberId &member_id)
 
static bool remove_member (ccf::kv::Tx &tx, const MemberId &member_id)
 
static UserId add_user (ccf::kv::Tx &tx, const NewUser &new_user)
 
static void remove_user (ccf::kv::Tx &tx, const UserId &user_id)
 
static void add_node (ccf::kv::Tx &tx, const NodeId &id, const NodeInfo &node_info)
 
static std::map< NodeId, NodeInfoget_trusted_nodes (ccf::kv::ReadOnlyTx &tx)
 
static void create_service (ccf::kv::Tx &tx, const ccf::crypto::Pem &service_cert, ccf::TxID create_txid, nlohmann::json service_data=nullptr, bool recovering=false)
 
static bool is_service_created (ccf::kv::ReadOnlyTx &tx, const ccf::crypto::Pem &expected_service_cert)
 
static bool endorse_previous_identity (ccf::kv::Tx &tx, const ccf::crypto::KeyPair_OpenSSL &service_key)
 
static bool open_service (ccf::kv::Tx &tx)
 
static std::optional< ServiceStatusget_service_status (ccf::kv::ReadOnlyTx &tx)
 
static void trust_node (ccf::kv::Tx &tx, const NodeId &node_id, ccf::kv::Version latest_ledger_secret_seqno)
 
static void set_constitution (ccf::kv::Tx &tx, const std::string &constitution)
 
static void trust_node_measurement (ccf::kv::Tx &tx, const pal::PlatformAttestationMeasurement &node_measurement, const QuoteFormat &platform)
 
static void trust_node_virtual_host_data (ccf::kv::Tx &tx, const HostData &host_data)
 
static void trust_node_snp_host_data (ccf::kv::Tx &tx, const HostData &host_data, const std::optional< HostDataMetadata > &security_policy=std::nullopt)
 
static void trust_node_uvm_endorsements (ccf::kv::Tx &tx, const std::optional< pal::UVMEndorsements > &uvm_endorsements)
 
static void trust_static_snp_tcb_version (ccf::kv::Tx &tx)
 
static void trust_node_snp_tcb_version (ccf::kv::Tx &tx, pal::snp::Attestation &attestation)
 
static void init_configuration (ccf::kv::Tx &tx, const ServiceConfiguration &configuration)
 
static bool set_recovery_threshold (ccf::kv::Tx &tx, size_t threshold)
 
static size_t get_recovery_threshold (ccf::kv::ReadOnlyTx &tx)
 

Constructor & Destructor Documentation

◆ InternalTablesAccess()

ccf::InternalTablesAccess::InternalTablesAccess ( )
delete

Member Function Documentation

◆ activate_member()

static bool ccf::InternalTablesAccess::activate_member ( ccf::kv::Tx tx,
const MemberId member_id 
)
inlinestatic

◆ add_member()

static MemberId ccf::InternalTablesAccess::add_member ( ccf::kv::Tx tx,
const NewMember member_pub_info 
)
inlinestatic

◆ add_node()

static void ccf::InternalTablesAccess::add_node ( ccf::kv::Tx tx,
const NodeId id,
const NodeInfo node_info 
)
inlinestatic

◆ add_user()

static UserId ccf::InternalTablesAccess::add_user ( ccf::kv::Tx tx,
const NewUser new_user 
)
inlinestatic

◆ create_service()

static void ccf::InternalTablesAccess::create_service ( ccf::kv::Tx tx,
const ccf::crypto::Pem service_cert,
ccf::TxID  create_txid,
nlohmann::json  service_data = nullptr,
bool  recovering = false 
)
inlinestatic

◆ endorse_previous_identity()

static bool ccf::InternalTablesAccess::endorse_previous_identity ( ccf::kv::Tx tx,
const ccf::crypto::KeyPair_OpenSSL service_key 
)
inlinestatic

◆ get_active_recovery_owners()

static std::map< MemberId, ccf::crypto::Pem > ccf::InternalTablesAccess::get_active_recovery_owners ( ccf::kv::ReadOnlyTx tx)
inlinestatic

◆ get_active_recovery_participants()

static std::map< MemberId, ccf::crypto::Pem > ccf::InternalTablesAccess::get_active_recovery_participants ( ccf::kv::ReadOnlyTx tx)
inlinestatic

◆ get_recovery_threshold()

static size_t ccf::InternalTablesAccess::get_recovery_threshold ( ccf::kv::ReadOnlyTx tx)
inlinestatic

◆ get_service_status()

static std::optional< ServiceStatus > ccf::InternalTablesAccess::get_service_status ( ccf::kv::ReadOnlyTx tx)
inlinestatic

◆ get_trusted_nodes()

static std::map< NodeId, NodeInfo > ccf::InternalTablesAccess::get_trusted_nodes ( ccf::kv::ReadOnlyTx tx)
inlinestatic

◆ init_configuration()

static void ccf::InternalTablesAccess::init_configuration ( ccf::kv::Tx tx,
const ServiceConfiguration configuration 
)
inlinestatic

◆ is_active_member()

static bool ccf::InternalTablesAccess::is_active_member ( ccf::kv::ReadOnlyTx tx,
const MemberId member_id 
)
inlinestatic

◆ is_recovery_owner()

static bool ccf::InternalTablesAccess::is_recovery_owner ( ccf::kv::ReadOnlyTx tx,
const MemberId member_id 
)
inlinestatic

◆ is_recovery_participant()

static bool ccf::InternalTablesAccess::is_recovery_participant ( ccf::kv::ReadOnlyTx tx,
const MemberId member_id 
)
inlinestatic

◆ is_recovery_participant_or_owner()

static bool ccf::InternalTablesAccess::is_recovery_participant_or_owner ( ccf::kv::ReadOnlyTx tx,
const MemberId member_id 
)
inlinestatic

◆ is_service_created()

static bool ccf::InternalTablesAccess::is_service_created ( ccf::kv::ReadOnlyTx tx,
const ccf::crypto::Pem expected_service_cert 
)
inlinestatic

◆ open_service()

static bool ccf::InternalTablesAccess::open_service ( ccf::kv::Tx tx)
inlinestatic

◆ remove_member()

static bool ccf::InternalTablesAccess::remove_member ( ccf::kv::Tx tx,
const MemberId member_id 
)
inlinestatic

◆ remove_user()

static void ccf::InternalTablesAccess::remove_user ( ccf::kv::Tx tx,
const UserId user_id 
)
inlinestatic

◆ retire_active_nodes()

static void ccf::InternalTablesAccess::retire_active_nodes ( ccf::kv::Tx tx)
inlinestatic

◆ set_constitution()

static void ccf::InternalTablesAccess::set_constitution ( ccf::kv::Tx tx,
const std::string &  constitution 
)
inlinestatic

◆ set_recovery_threshold()

static bool ccf::InternalTablesAccess::set_recovery_threshold ( ccf::kv::Tx tx,
size_t  threshold 
)
inlinestatic

◆ trust_node()

static void ccf::InternalTablesAccess::trust_node ( ccf::kv::Tx tx,
const NodeId node_id,
ccf::kv::Version  latest_ledger_secret_seqno 
)
inlinestatic

◆ trust_node_measurement()

static void ccf::InternalTablesAccess::trust_node_measurement ( ccf::kv::Tx tx,
const pal::PlatformAttestationMeasurement node_measurement,
const QuoteFormat platform 
)
inlinestatic

◆ trust_node_snp_host_data()

static void ccf::InternalTablesAccess::trust_node_snp_host_data ( ccf::kv::Tx tx,
const HostData host_data,
const std::optional< HostDataMetadata > &  security_policy = std::nullopt 
)
inlinestatic

◆ trust_node_snp_tcb_version()

static void ccf::InternalTablesAccess::trust_node_snp_tcb_version ( ccf::kv::Tx tx,
pal::snp::Attestation attestation 
)
inlinestatic

◆ trust_node_uvm_endorsements()

static void ccf::InternalTablesAccess::trust_node_uvm_endorsements ( ccf::kv::Tx tx,
const std::optional< pal::UVMEndorsements > &  uvm_endorsements 
)
inlinestatic

◆ trust_node_virtual_host_data()

static void ccf::InternalTablesAccess::trust_node_virtual_host_data ( ccf::kv::Tx tx,
const HostData host_data 
)
inlinestatic

◆ trust_static_snp_tcb_version()

static void ccf::InternalTablesAccess::trust_static_snp_tcb_version ( ccf::kv::Tx tx)
inlinestatic

The documentation for this class was generated from the following file: