CCF
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ccf::LedgerSecret Struct Reference

#include <ledger_secret.h>

Public Member Functions

const ccf::crypto::HashBytesget_commit_secret ()
 
bool operator== (const LedgerSecret &other) const
 
 LedgerSecret ()=default
 
 ~LedgerSecret ()
 
 LedgerSecret (const LedgerSecret &other)
 
 LedgerSecret (std::vector< uint8_t > &&raw_key_, std::optional< ccf::kv::Version > previous_secret_stored_version_=std::nullopt)
 

Public Attributes

std::vector< uint8_t > raw_key
 
std::shared_ptr< ccf::crypto::KeyAesGcmkey
 
std::optional< ccf::kv::Versionprevious_secret_stored_version
 
std::optional< ccf::crypto::HashBytescommit_secret = std::nullopt
 

Constructor & Destructor Documentation

◆ LedgerSecret() [1/3]

ccf::LedgerSecret::LedgerSecret ( )
default

◆ ~LedgerSecret()

ccf::LedgerSecret::~LedgerSecret ( )
inline

◆ LedgerSecret() [2/3]

ccf::LedgerSecret::LedgerSecret ( const LedgerSecret other)
inline

◆ LedgerSecret() [3/3]

ccf::LedgerSecret::LedgerSecret ( std::vector< uint8_t > &&  raw_key_,
std::optional< ccf::kv::Version previous_secret_stored_version_ = std::nullopt 
)
inline

Member Function Documentation

◆ get_commit_secret()

const ccf::crypto::HashBytes & ccf::LedgerSecret::get_commit_secret ( )
inline

◆ operator==()

bool ccf::LedgerSecret::operator== ( const LedgerSecret other) const
inline

Member Data Documentation

◆ commit_secret

std::optional<ccf::crypto::HashBytes> ccf::LedgerSecret::commit_secret = std::nullopt

◆ key

std::shared_ptr<ccf::crypto::KeyAesGcm> ccf::LedgerSecret::key

◆ previous_secret_stored_version

std::optional<ccf::kv::Version> ccf::LedgerSecret::previous_secret_stored_version
Initial value:
=
std::nullopt

◆ raw_key

std::vector<uint8_t> ccf::LedgerSecret::raw_key

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