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

Go to the source code of this file.

Classes

struct  kagome::network::Signed< Payload >
 Payload signed by validator. More...
 
struct  kagome::network::CollatorAdvertisement
 
struct  kagome::network::CollatorDeclaration
 
struct  kagome::network::ErasureChunk
 A chunk of erasure-encoded block data. More...
 
struct  kagome::network::ParachainBlock
 
struct  kagome::network::CandidateDescriptor
 
struct  kagome::network::CandidateReceipt
 
struct  kagome::network::CollationResponse
 
struct  kagome::network::CollationFetchingRequest
 
struct  kagome::network::CollationFetchingResponse
 
struct  kagome::network::OutboundHorizontal
 
struct  kagome::network::CandidateCommitments
 
struct  kagome::network::CommittedCandidateReceipt
 
struct  kagome::network::Statement
 
struct  kagome::network::Seconded
 

Namespaces

 kagome::network
 

Typedefs

using kagome::network::Signature = crypto::Sr25519Signature
 
using kagome::network::ParachainId = uint32_t
 
using kagome::network::CollatorPublicKey = crypto::Sr25519PublicKey
 
using kagome::network::ValidatorIndex = uint32_t
 
using kagome::network::UpwardMessage = common::Buffer
 
using kagome::network::ParachainRuntime = common::Buffer
 
using kagome::network::HeadData = common::Buffer
 
using kagome::network::CandidateHash = primitives::BlockHash
 
using kagome::network::ChunkProof = std::vector< common::Buffer >
 
using kagome::network::Dummy = std::tuple<>
 NU element. More...
 
using kagome::network::ViewUpdate = Dummy
 ViewUpdate message. Maybe will be implemented later. More...
 
using kagome::network::ReqCollationResponseData = boost::variant< CollationResponse >
 
using kagome::network::CandidateState = boost::variant< Dummy, CommittedCandidateReceipt, primitives::BlockHash >
 
using kagome::network::SignedBitfield = Signed< scale::BitVec >
 Signed availability bitfield. More...
 
using kagome::network::CollationMessage = boost::variant< CollatorDeclaration, CollatorAdvertisement, Dummy, Dummy, Seconded >
 
using kagome::network::ProtocolMessage = boost::variant< CollationMessage >
 
using kagome::network::WireMessage = boost::variant< Dummy, ProtocolMessage, ViewUpdate >
 

Functions

CandidateHash kagome::network::candidateHash (const crypto::Hasher &hasher, const CandidateReceipt &receipt)
 
CandidateHash kagome::network::candidateHash (const crypto::Hasher &hasher, const CommittedCandidateReceipt &receipt)
 
CandidateHash kagome::network::candidateHash (const crypto::Hasher &hasher, const CandidateState &statement)