Kagome
Polkadot Runtime Engine in C++17
kagome::parachain::SigningContext Class Reference

A type returned by runtime with current session index and a parent hash. More...

#include <signer.hpp>

Collaboration diagram for kagome::parachain::SigningContext:

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< SigningContextmake (const std::shared_ptr< runtime::ParachainHost > &parachain_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)
 

Detailed Description

A type returned by runtime with current session index and a parent hash.

Definition at line 18 of file signer.hpp.

Member Function Documentation

outcome::result< SigningContext > kagome::parachain::SigningContext::make ( const std::shared_ptr< runtime::ParachainHost > &  parachain_api,
const primitives::BlockHash relay_parent 
)
static

Make signing context for given block.

Definition at line 9 of file signer.cpp.

kagome::parachain::SigningContext::SCALE_TIE ( )
template<typename T >
auto kagome::parachain::SigningContext::signable ( const crypto::Hasher hasher,
const T &  payload 
) const
inline

Make signable message for payload.

Definition at line 40 of file signer.hpp.

static auto& kagome::parachain::SigningContext::toSignable ( const crypto::Hasher ,
const scale::BitVec &  v 
)
inlinestaticprivate

Definition at line 20 of file signer.hpp.

static auto kagome::parachain::SigningContext::toSignable ( const crypto::Hasher hasher,
const network::CandidateState v 
)
inlinestaticprivate

Definition at line 23 of file signer.hpp.

Member Data Documentation

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.


The documentation for this class was generated from the following files: