dev::bytes encodeDAGBlocksBundleRlp(const std::vector< std::shared_ptr< DagBlock > > &blocks)
Encodes pbft blocks into optimized blocks bundle rlp.
Definition dag_block_bundle_rlp.cpp:10
std::vector< std::shared_ptr< DagBlock > > decodeDAGBlocksBundleRlp(const dev::RLP &blocks_bundle_rlp)
Decodes pbft blocks from optimized blocks bundle rlp.
Definition dag_block_bundle_rlp.cpp:51
std::shared_ptr< DagBlock > decodeDAGBlockBundleRlp(uint64_t index, const dev::RLP &blocks_bundle_rlp)
Decodes single dag block from optimized blocks bundle rlp.
Definition dag_block_bundle_rlp.cpp:84
static constexpr size_t kDAGBlocksBundleRlpSize
Definition dag_block_bundle_rlp.hpp:16
std::vector<::byte > bytes
Definition Common.h:46