Kagome
Polkadot Runtime Engine in C++17
address_publisher.cpp File Reference
#include "authority_discovery/publisher/address_publisher.hpp"
#include "authority_discovery/protobuf/authority_discovery.v2.pb.h"
#include "crypto/sha/sha256.hpp"
Include dependency graph for address_publisher.cpp:

Go to the source code of this file.

Namespaces

 kagome::authority_discovery
 

Macros

#define _PB_SPAN(f)   [&](gsl::span<const uint8_t> a) { (f)(a.data(), a.size()); }
 
#define PB_SPAN_SET(a, b, c)   _PB_SPAN((a).set_##b)(c)
 
#define PB_SPAN_ADD(a, b, c)   _PB_SPAN((a).add_##b)(c)
 

Functions

template<typename T >
std::vector< uint8_t > pbEncodeVec (const T &v)
 

Macro Definition Documentation

#define _PB_SPAN (   f)    [&](gsl::span<const uint8_t> a) { (f)(a.data(), a.size()); }

Copyright Soramitsu Co., Ltd. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Definition at line 12 of file address_publisher.cpp.

#define PB_SPAN_ADD (   a,
  b,
 
)    _PB_SPAN((a).add_##b)(c)

Definition at line 14 of file address_publisher.cpp.

#define PB_SPAN_SET (   a,
  b,
 
)    _PB_SPAN((a).set_##b)(c)

Definition at line 13 of file address_publisher.cpp.

Function Documentation

template<typename T >
std::vector<uint8_t> pbEncodeVec ( const T &  v)

Definition at line 17 of file address_publisher.cpp.