CCF
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ccf::crypto::sharing::Share Struct Reference

#include <sharing.h>

Public Member Functions

 Share ()=default
 
bool operator== (const Share &other) const =default
 
 ~Share ()
 
HashBytes key (size_t key_size) const
 
void serialise (std::vector< uint8_t > &serialised) const
 
 Share (const std::span< uint8_t const > &serialised)
 
std::string to_str () const
 

Public Attributes

uint32_t x = 0
 
uint32_t y [LIMBS]
 

Static Public Attributes

static constexpr size_t serialised_size
 

Constructor & Destructor Documentation

◆ Share() [1/2]

ccf::crypto::sharing::Share::Share ( )
default

◆ ~Share()

ccf::crypto::sharing::Share::~Share ( )
inline

◆ Share() [2/2]

ccf::crypto::sharing::Share::Share ( const std::span< uint8_t const > &  serialised)
inline

Member Function Documentation

◆ key()

HashBytes ccf::crypto::sharing::Share::key ( size_t  key_size) const
inline

◆ operator==()

bool ccf::crypto::sharing::Share::operator== ( const Share other) const
default

◆ serialise()

void ccf::crypto::sharing::Share::serialise ( std::vector< uint8_t > &  serialised) const
inline

◆ to_str()

std::string ccf::crypto::sharing::Share::to_str ( ) const
inline

Member Data Documentation

◆ serialised_size

constexpr size_t ccf::crypto::sharing::Share::serialised_size
staticconstexpr
Initial value:
=
sizeof(uint32_t) + sizeof(uint32_t) * LIMBS

◆ x

uint32_t ccf::crypto::sharing::Share::x = 0

◆ y

uint32_t ccf::crypto::sharing::Share::y[LIMBS]

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