Kagome
Polkadot Runtime Engine in C++17
block_header.hpp File Reference
#include <type_traits>
#include <vector>
#include <scale/scale.hpp>
#include "common/blob.hpp"
#include "crypto/hasher.hpp"
#include "primitives/common.hpp"
#include "primitives/compact_integer.hpp"
#include "primitives/digest.hpp"
#include "storage/trie/types.hpp"
Include dependency graph for block_header.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kagome::primitives::BlockHeader
 
struct  kagome::primitives::GenesisBlockHeader
 

Namespaces

 kagome::primitives
 

Functions

template<class Stream , typename = std::enable_if_t<Stream::is_encoder_stream>>
Stream & kagome::primitives::operator<< (Stream &s, const BlockHeader &bh)
 outputs object of type BlockHeader to stream More...
 
template<class Stream , typename = std::enable_if_t<Stream::is_decoder_stream>>
Stream & kagome::primitives::operator>> (Stream &s, BlockHeader &bh)
 decodes object of type BlockHeader from stream More...
 
outcome::result< BlockHash > kagome::primitives::calculateBlockHash (BlockHeader const &header, crypto::Hasher const &hasher)
 

Class Documentation

struct kagome::primitives::GenesisBlockHeader

Definition at line 46 of file block_header.hpp.

Collaboration diagram for kagome::primitives::GenesisBlockHeader:
Class Members
const BlockHash hash
const BlockHeader header