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

#include <share_manager.h>

Public Member Functions

 LedgerSecretWrappingKey (size_t num_shares_, size_t recovery_threshold_)
 
 LedgerSecretWrappingKey (std::vector< ccf::crypto::sharing::Share > &&shares_, size_t recovery_threshold_)
 
 LedgerSecretWrappingKey (std::vector< SecretSharing::Share > &&shares_, size_t recovery_threshold_)
 
 ~LedgerSecretWrappingKey ()
 
size_t get_num_shares () const
 
size_t get_recovery_threshold () const
 
std::vector< std::vector< uint8_t > > get_shares () const
 
template<typename T >
get_raw_data () const
 
std::vector< uint8_t > wrap (const LedgerSecretPtr &ledger_secret)
 
LedgerSecretPtr unwrap (const std::vector< uint8_t > &wrapped_latest_ledger_secret)
 

Constructor & Destructor Documentation

◆ LedgerSecretWrappingKey() [1/3]

ccf::LedgerSecretWrappingKey::LedgerSecretWrappingKey ( size_t  num_shares_,
size_t  recovery_threshold_ 
)
inline

◆ LedgerSecretWrappingKey() [2/3]

ccf::LedgerSecretWrappingKey::LedgerSecretWrappingKey ( std::vector< ccf::crypto::sharing::Share > &&  shares_,
size_t  recovery_threshold_ 
)
inline

◆ LedgerSecretWrappingKey() [3/3]

ccf::LedgerSecretWrappingKey::LedgerSecretWrappingKey ( std::vector< SecretSharing::Share > &&  shares_,
size_t  recovery_threshold_ 
)
inline

◆ ~LedgerSecretWrappingKey()

ccf::LedgerSecretWrappingKey::~LedgerSecretWrappingKey ( )
inline

Member Function Documentation

◆ get_num_shares()

size_t ccf::LedgerSecretWrappingKey::get_num_shares ( ) const
inline

◆ get_raw_data()

template<typename T >
T ccf::LedgerSecretWrappingKey::get_raw_data ( ) const
inline

◆ get_recovery_threshold()

size_t ccf::LedgerSecretWrappingKey::get_recovery_threshold ( ) const
inline

◆ get_shares()

std::vector< std::vector< uint8_t > > ccf::LedgerSecretWrappingKey::get_shares ( ) const
inline

◆ unwrap()

LedgerSecretPtr ccf::LedgerSecretWrappingKey::unwrap ( const std::vector< uint8_t > &  wrapped_latest_ledger_secret)
inline

◆ wrap()

std::vector< uint8_t > ccf::LedgerSecretWrappingKey::wrap ( const LedgerSecretPtr ledger_secret)
inline

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