Kagome
Polkadot Runtime Engine in C++17
|
Signs payload with signing context and validator keypair. More...
#include <signer.hpp>
Public Types | |
using | ValidatorIndex = network::ValidatorIndex |
Public Member Functions | |
ValidatorSigner (ValidatorIndex validator_index, SigningContext context, std::shared_ptr< crypto::Sr25519Keypair > keypair, std::shared_ptr< crypto::Hasher > hasher, std::shared_ptr< crypto::Sr25519Provider > sr25519_provider) | |
template<typename T > | |
outcome::result< network::Signed< T > > | sign (T payload) const |
Sign payload. More... | |
ValidatorIndex | validatorIndex () const |
Get validator index. More... | |
const primitives::BlockHash & | relayParent () const |
Get relay parent hash. More... | |
Private Attributes | |
ValidatorIndex | validator_index_ |
SigningContext | context_ |
std::shared_ptr< crypto::Sr25519Keypair > | keypair_ |
std::shared_ptr< crypto::Hasher > | hasher_ |
std::shared_ptr< crypto::Sr25519Provider > | sr25519_provider_ |
Signs payload with signing context and validator keypair.
Definition at line 52 of file signer.hpp.
Definition at line 54 of file signer.hpp.
kagome::parachain::ValidatorSigner::ValidatorSigner | ( | ValidatorIndex | validator_index, |
SigningContext | context, | ||
std::shared_ptr< crypto::Sr25519Keypair > | keypair, | ||
std::shared_ptr< crypto::Hasher > | hasher, | ||
std::shared_ptr< crypto::Sr25519Provider > | sr25519_provider | ||
) |
Definition at line 17 of file signer.cpp.
const primitives::BlockHash & kagome::parachain::ValidatorSigner::relayParent | ( | ) | const |
Get relay parent hash.
Definition at line 33 of file signer.cpp.
|
inline |
Sign payload.
Definition at line 64 of file signer.hpp.
ValidatorSigner::ValidatorIndex kagome::parachain::ValidatorSigner::validatorIndex | ( | ) | const |
Get validator index.
Definition at line 29 of file signer.cpp.
|
private |
Definition at line 82 of file signer.hpp.
|
private |
Definition at line 84 of file signer.hpp.
|
private |
Definition at line 83 of file signer.hpp.
|
private |
Definition at line 85 of file signer.hpp.
|
private |
Definition at line 81 of file signer.hpp.