#include <share_manager.h>
◆ ShareManager()
ccf::ShareManager::ShareManager |
( |
const std::shared_ptr< LedgerSecrets > & |
ledger_secrets_ | ) |
|
|
inline |
◆ clear_submitted_recovery_shares()
static void ccf::ShareManager::clear_submitted_recovery_shares |
( |
ccf::kv::Tx & |
tx | ) |
|
|
inlinestatic |
◆ get_encrypted_share()
◆ is_full_key()
static bool ccf::ShareManager::is_full_key |
( |
const std::vector< uint8_t > & |
submitted_recovery_share | ) |
|
|
inlinestatic |
◆ issue_recovery_shares() [1/2]
void ccf::ShareManager::issue_recovery_shares |
( |
ccf::kv::Tx & |
tx | ) |
|
|
inline |
Issue new recovery shares for the current ledger secret, recording the wrapped new ledger secret and encrypted previous ledger secret in the store.
- Parameters
-
tx | Store transaction object |
◆ issue_recovery_shares() [2/2]
Issue new recovery shares of the new ledger secret, recording the wrapped new ledger secret and encrypted current (now previous) ledger secret in the store.
- Parameters
-
tx | Store transaction object |
new_ledger_secret | Pointer to new ledger secret |
Note: The version at which the new ledger secret is applicable from is derived from the hook at which the ledger secret is applied to the store.
◆ restore_recovery_shares_info()
◆ shuffle_recovery_shares()
void ccf::ShareManager::shuffle_recovery_shares |
( |
ccf::kv::Tx & |
tx | ) |
|
|
inline |
Issue new recovery shares of the same current ledger secret to all active recovery members. The encrypted ledger secrets recorded in the store are not updated.
- Parameters
-
tx | Store transaction object |
◆ submit_recovery_share()
size_t ccf::ShareManager::submit_recovery_share |
( |
ccf::kv::Tx & |
tx, |
|
|
MemberId |
member_id, |
|
|
const std::vector< uint8_t > & |
submitted_recovery_share |
|
) |
| |
|
inline |
The documentation for this class was generated from the following file: