6 #ifndef KAGOME_COLLATOR_DECLARE_HPP 7 #define KAGOME_COLLATOR_DECLARE_HPP 9 #include <boost/variant.hpp> 10 #include <scale/bitvec.hpp> 12 #include <type_traits> 36 template <
typename Payload>
40 static_assert(std::is_same_v<std::decay_t<Payload>, Payload>);
175 std::vector<OutboundHorizontal>
177 std::optional<ParachainRuntime>
252 return hasher.
blake2b_256(scale::encode(receipt).value());
256 const CommittedCandidateReceipt &receipt) {
267 if (
auto receipt = boost::get<CommittedCandidateReceipt>(&statement)) {
270 return boost::get<CandidateHash>(statement);
274 #endif // KAGOME_COLLATOR_DECLARE_HPP
Class represents arbitrary (including empty) byte buffer.
uint32_t downward_msgs_count
parachain head data
primitives::BlockHash relay_parent
primitives::BlockHash relay_parent
boost::variant< CollatorDeclaration, CollatorAdvertisement, Dummy, Dummy, Seconded > CollationMessage
Statement statement
relay parent hash
Dummy ViewUpdate
ViewUpdate message. Maybe will be implemented later.
ValidatorIndex validator_ix
common::Buffer chunk
The erasure-encoded chunk of data belonging to the candidate block.
primitives::BlockHash relay_parent
storage::trie::RootHash erasure_encoding_root
Hash of the PoV block.
std::optional< ParachainRuntime > opt_para_runtime
outbound horizontal messages
ReqCollationResponseData response_data
CandidateState candidate_state
primitives::BlockHash persisted_data_hash
Collators public key.
primitives::BlockHash para_runtime_hash
Hash of the parachain head data of this candidate.
CandidateDescriptor descriptor
crypto::Sr25519PublicKey CollatorPublicKey
CandidateDescriptor descriptor
boost::variant< CollationMessage > ProtocolMessage
Payload signed by validator.
ValidatorIndex validator_index
Index of validator in validator list.
primitives::BlockHash para_head_hash
Collator signature of the concatenated components.
boost::variant< Dummy, CommittedCandidateReceipt, primitives::BlockHash > CandidateState
Signature signature
Parachain Id.
CollatorPublicKey collator_id
virtual Hash256 blake2b_256(gsl::span< const uint8_t > buffer) const =0
blake2b_256 function calculates 32-byte blake2b hash
std::vector< OutboundHorizontal > outbound_hor_msgs
upward messages
SLBuffer< std::numeric_limits< size_t >::max()> Buffer
primitives::BlockHash commitments_hash
Candidate descriptor.
UpwardMessage upward_msg
Parachain Id is recepient id.
HeadData para_head
new parachain runtime if present
std::tuple<> Dummy
NU element.
CandidateCommitments commitments
Candidate descriptor.
ChunkProof proof
Proof for this chunk's branch in the Merkle tree.
common::Hash256 BlockHash
std::vector< common::Buffer > ChunkProof
primitives::BlockHash relay_parent
Parachain Id.
ParachainId para_id
Hash of the relay chain block.
CandidateHash candidateHash(const crypto::Hasher &hasher, const CandidateReceipt &receipt)
boost::variant< Dummy, ProtocolMessage, ViewUpdate > WireMessage
boost::variant< CollationResponse > ReqCollationResponseData
Signature signature
Signature of SigningContext::signable(payload).
std::vector< UpwardMessage > upward_msgs
ValidatorIndex index
The index of this erasure-encoded chunk of data.
crypto::Sr25519Signature Signature
A chunk of erasure-encoded block data.
ParachainBlock pov
Candidate receipt.
primitives::BlockHash pov_hash
Hash of the persisted validation data.
ParachainId para_id
Public key of the collator.