BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
Public Member Functions | Public Attributes | Protected Attributes | List of all members
graphene::protocol::signed_block_header Class Reference

#include <block.hpp>

Inheritance diagram for graphene::protocol::signed_block_header:
graphene::protocol::block_header graphene::protocol::signed_block

Public Member Functions

const block_id_typeid () const
 
const fc::ecc::public_keysignee () const
 
void sign (const fc::ecc::private_key &signer)
 
bool validate_signee (const fc::ecc::public_key &expected_signee) const
 
 signed_block_header ()=default
 
 signed_block_header (const block_header &header)
 
- Public Member Functions inherited from graphene::protocol::block_header
digest_type digest () const
 
uint32_t block_num () const
 
virtual ~block_header ()=default
 

Public Attributes

signature_type witness_signature
 
- Public Attributes inherited from graphene::protocol::block_header
block_id_type previous
 
fc::time_point_sec timestamp
 
witness_id_type witness
 
checksum_type transaction_merkle_root
 
extensions_type extensions
 

Protected Attributes

fc::ecc::public_key _signee
 
block_id_type _block_id
 

Additional Inherited Members

- Static Public Member Functions inherited from graphene::protocol::block_header
static uint32_t num_from_id (const block_id_type &id)
 

Detailed Description

Definition at line 47 of file block.hpp.

Constructor & Destructor Documentation

◆ signed_block_header() [1/2]

graphene::protocol::signed_block_header::signed_block_header ( )
default

◆ signed_block_header() [2/2]

graphene::protocol::signed_block_header::signed_block_header ( const block_header header)
inlineexplicit

Definition at line 58 of file block.hpp.

Member Function Documentation

◆ id()

const block_id_type & graphene::protocol::signed_block_header::id ( ) const

Definition at line 41 of file block.cpp.

◆ sign()

void graphene::protocol::signed_block_header::sign ( const fc::ecc::private_key signer)

Definition at line 60 of file block.cpp.

◆ signee()

const fc::ecc::public_key & graphene::protocol::signed_block_header::signee ( ) const

Definition at line 53 of file block.cpp.

◆ validate_signee()

bool graphene::protocol::signed_block_header::validate_signee ( const fc::ecc::public_key expected_signee) const

Definition at line 65 of file block.cpp.

Member Data Documentation

◆ _block_id

block_id_type graphene::protocol::signed_block_header::_block_id
mutableprotected

Definition at line 61 of file block.hpp.

◆ _signee

fc::ecc::public_key graphene::protocol::signed_block_header::_signee
mutableprotected

Definition at line 60 of file block.hpp.

◆ witness_signature

signature_type graphene::protocol::signed_block_header::witness_signature

Definition at line 55 of file block.hpp.


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