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

#include <signatures.h>

Inherits ccf::NodeSignature.

Public Member Functions

 PrimarySignature ()
 
 PrimarySignature (const ccf::NodeId &node_, ccf::SeqNo seqno_)
 
 PrimarySignature (const ccf::crypto::Sha256Hash &root_)
 
 PrimarySignature (const ccf::NodeId &node_, ccf::SeqNo seqno_, ccf::View view_, const ccf::crypto::Sha256Hash root_, Nonce hashed_nonce_, const std::vector< uint8_t > &sig_, const ccf::crypto::Pem &cert_)
 
- Public Member Functions inherited from ccf::NodeSignature
 NodeSignature (const NodeSignature &ns)=default
 
 NodeSignature (const std::vector< uint8_t > &sig_, const NodeId &node_, Nonce hashed_nonce_)
 
 NodeSignature (const NodeId &node_, Nonce hashed_nonce_)
 
 NodeSignature (const NodeId &node_)
 
 NodeSignature ()=default
 
NodeSignatureoperator= (const NodeSignature &ns)=default
 
bool operator== (const NodeSignature &o) const
 
size_t get_serialized_size () const
 
void serialize (uint8_t *&data, size_t &size) const
 

Public Attributes

ccf::SeqNo seqno = 0
 Sequence number of the signature transaction.
 
ccf::View view = 0
 View of the signature transaction.
 
ccf::SeqNo commit_seqno = 0
 
ccf::View commit_view = 0
 
ccf::crypto::Sha256Hash root
 Root of the Merkle Tree as of seqno - 1.
 
ccf::crypto::Pem cert
 Service-endorsed certificate of the node which produced the signature.
 
- Public Attributes inherited from ccf::NodeSignature
std::vector< uint8_t > sig
 Signature.
 
NodeId node
 Node ID.
 
Nonce hashed_nonce
 Hashed nonce created by the node, only used for BFT.
 

Additional Inherited Members

- Static Public Member Functions inherited from ccf::NodeSignature
static NodeSignature deserialize (const uint8_t *&data, size_t &size)
 

Constructor & Destructor Documentation

◆ PrimarySignature() [1/4]

ccf::PrimarySignature::PrimarySignature ( )
inline

◆ PrimarySignature() [2/4]

ccf::PrimarySignature::PrimarySignature ( const ccf::NodeId node_,
ccf::SeqNo  seqno_ 
)
inline

◆ PrimarySignature() [3/4]

ccf::PrimarySignature::PrimarySignature ( const ccf::crypto::Sha256Hash root_)
inline

◆ PrimarySignature() [4/4]

ccf::PrimarySignature::PrimarySignature ( const ccf::NodeId node_,
ccf::SeqNo  seqno_,
ccf::View  view_,
const ccf::crypto::Sha256Hash  root_,
Nonce  hashed_nonce_,
const std::vector< uint8_t > &  sig_,
const ccf::crypto::Pem cert_ 
)
inline

Member Data Documentation

◆ cert

ccf::crypto::Pem ccf::PrimarySignature::cert

Service-endorsed certificate of the node which produced the signature.

◆ commit_seqno

ccf::SeqNo ccf::PrimarySignature::commit_seqno = 0

◆ commit_view

ccf::View ccf::PrimarySignature::commit_view = 0

◆ root

ccf::crypto::Sha256Hash ccf::PrimarySignature::root

Root of the Merkle Tree as of seqno - 1.

◆ seqno

ccf::SeqNo ccf::PrimarySignature::seqno = 0

Sequence number of the signature transaction.

◆ view

ccf::View ccf::PrimarySignature::view = 0

View of the signature transaction.


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