Kagome
Polkadot Runtime Engine in C++17
|
A type returned by runtime with current session index and a parent hash. More...
#include <signer.hpp>
Public Member Functions | |
SCALE_TIE (2) | |
template<typename T > | |
auto | signable (const crypto::Hasher &hasher, const T &payload) const |
Make signable message for payload. More... | |
Static Public Member Functions | |
static outcome::result< SigningContext > | make (const std::shared_ptr< runtime::ParachainHost > ¶chain_api, const primitives::BlockHash &relay_parent) |
Make signing context for given block. More... | |
Public Attributes | |
runtime::SessionIndex | session_index |
Current session index. More... | |
primitives::BlockHash | relay_parent |
Hash of the parent. More... | |
Static Private Member Functions | |
static auto & | toSignable (const crypto::Hasher &, const scale::BitVec &v) |
static auto | toSignable (const crypto::Hasher &hasher, const network::CandidateState &v) |
A type returned by runtime with current session index and a parent hash.
Definition at line 18 of file signer.hpp.
|
static |
Make signing context for given block.
Definition at line 9 of file signer.cpp.
kagome::parachain::SigningContext::SCALE_TIE | ( | 2 | ) |
|
inline |
Make signable message for payload.
Definition at line 40 of file signer.hpp.
|
inlinestaticprivate |
Definition at line 20 of file signer.hpp.
|
inlinestaticprivate |
Definition at line 23 of file signer.hpp.
primitives::BlockHash kagome::parachain::SigningContext::relay_parent |
Hash of the parent.
Definition at line 48 of file signer.hpp.
runtime::SessionIndex kagome::parachain::SigningContext::session_index |
Current session index.
Definition at line 46 of file signer.hpp.