#include <author_api.hpp>
Definition at line 24 of file author_api.hpp.
virtual kagome::api::AuthorApi::~AuthorApi |
( |
| ) |
|
|
virtualdefault |
virtual outcome::result<bool> kagome::api::AuthorApi::hasKey |
( |
const gsl::span< const uint8_t > & |
public_key, |
|
|
crypto::KeyTypeId |
key_type |
|
) |
| |
|
pure virtual |
checks if the keystore has private keys for the given public key and key type
- Parameters
-
public_key | The public key in binary |
key_type | The key type |
Implemented in kagome::api::AuthorApiImpl.
virtual outcome::result<bool> kagome::api::AuthorApi::hasSessionKeys |
( |
const gsl::span< const uint8_t > & |
keys | ) |
|
|
pure virtual |
checks if the keystore has private keys for the given session public keys
- Parameters
-
keys | SCALE encoded concatenated keys |
- Returns
- returns true if all private keys could be found, false if otherwise
Implemented in kagome::api::AuthorApiImpl.
virtual outcome::result<void> kagome::api::AuthorApi::insertKey |
( |
crypto::KeyTypeId |
key_type, |
|
|
const gsl::span< const uint8_t > & |
seed, |
|
|
const gsl::span< const uint8_t > & |
public_key |
|
) |
| |
|
pure virtual |
insert an anonimous key pair into the keystore
- Parameters
-
key_type | Key type |
seed | The seed (suri) in binary |
public_key | The public key in binary |
Implemented in kagome::api::AuthorApiImpl.
virtual outcome::result<std::vector<Extrinsic> > kagome::api::AuthorApi::pendingExtrinsics |
( |
| ) |
|
|
pure virtual |
virtual outcome::result<std::vector<Extrinsic> > kagome::api::AuthorApi::removeExtrinsic |
( |
const std::vector< ExtrinsicKey > & |
keys | ) |
|
|
pure virtual |
virtual outcome::result<common::Buffer> kagome::api::AuthorApi::rotateKeys |
( |
| ) |
|
|
pure virtual |
Generate new session keys and returns the corresponding public keys.
- Returns
- The SCALE encoded, concatenated keys
Implemented in kagome::api::AuthorApiImpl.
virtual void kagome::api::AuthorApi::setApiService |
( |
std::shared_ptr< api::ApiService > const & |
api_service | ) |
|
|
pure virtual |
validates and sends extrinsic to transaction pool
- Parameters
-
source | how extrinsic was received (for example external or submitted through offchain worker) |
extrinsic | set of bytes representing either transaction or inherent |
- Returns
- hash of successfully validated extrinsic or error if state is invalid or unknown
Implemented in kagome::api::AuthorApiImpl.
virtual outcome::result<bool> kagome::api::AuthorApi::unwatchExtrinsic |
( |
SubscriptionId |
sub_id | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: