hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::proto::BlocksQuery Class Referencefinal

#include "proto_blocks_query.hpp"

Inheritance diagram for shared_model::proto::BlocksQuery:
Inheritance graph
Collaboration diagram for shared_model::proto::BlocksQuery:
Collaboration graph

Public Types

using TransportType = iroha::protocol::BlocksQuery
 
- Public Types inherited from shared_model::interface::ModelPrimitive< BlocksQuery >
using ModelType = BlocksQuery
 

Public Member Functions

 BlocksQuery (const TransportType &query)
 
 BlocksQuery (TransportType &&query)
 
const interface::types::AccountIdTypecreatorAccountId () const override
 
interface::types::CounterType queryCounter () const override
 
const interface::types::BlobTypeblob () const override
 
const interface::types::BlobTypepayload () const override
 
interface::types::SignatureRangeType signatures () const override
 
bool addSignature (interface::types::SignedHexStringView signed_blob, interface::types::PublicKeyHexStringView public_key) override
 
const interface::types::HashTypehash () const override
 
interface::types::TimestampType createdTime () const override
 
const TransportTypegetTransport () const
 
- Public Member Functions inherited from shared_model::interface::BlocksQuery
std::string toString () const override
 
bool operator== (const ModelType &rhs) const override
 
- Public Member Functions inherited from shared_model::interface::Signable< BlocksQuery >
virtual bool addSignature (types::SignedHexStringView signed_blob, types::PublicKeyHexStringView public_key)=0
 
bool operator== (const BlocksQuery &rhs) const override
 
bool equalsByValue (const BlocksQuery &rhs) const
 
std::string toString () const override
 
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< BlocksQuery >
virtual bool operator!= (const ModelType &rhs) const
 
virtual ~ModelPrimitive ()=default
 

Additional Inherited Members

- Protected Types inherited from shared_model::interface::Signable< BlocksQuery >
using SignatureSetType = std::unordered_set< T, SignatureSetTypeOps, SignatureSetTypeOps >
 
- Static Protected Member Functions inherited from shared_model::interface::Signable< BlocksQuery >
static auto makeHash (const types::BlobType &payload)
 

Member Typedef Documentation

◆ TransportType

using shared_model::proto::BlocksQuery::TransportType = iroha::protocol::BlocksQuery

Constructor & Destructor Documentation

◆ BlocksQuery() [1/2]

shared_model::proto::BlocksQuery::BlocksQuery ( const TransportType query)
explicit

◆ BlocksQuery() [2/2]

shared_model::proto::BlocksQuery::BlocksQuery ( TransportType &&  query)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ addSignature()

bool shared_model::proto::BlocksQuery::addSignature ( interface::types::SignedHexStringView  signed_blob,
interface::types::PublicKeyHexStringView  public_key 
)
override
Here is the call graph for this function:

◆ blob()

const interface::types::BlobType & shared_model::proto::BlocksQuery::blob ( ) const
overridevirtual
Returns
blob representation of object include signatures

Implements shared_model::interface::Signable< BlocksQuery >.

◆ createdTime()

interface::types::TimestampType shared_model::proto::BlocksQuery::createdTime ( ) const
overridevirtual
Returns
time of creation

Implements shared_model::interface::Signable< BlocksQuery >.

◆ creatorAccountId()

const interface::types::AccountIdType & shared_model::proto::BlocksQuery::creatorAccountId ( ) const
overridevirtual
Returns
id of query creator

Implements shared_model::interface::BlocksQuery.

◆ getTransport()

const BlocksQuery::TransportType & shared_model::proto::BlocksQuery::getTransport ( ) const

◆ hash()

const interface::types::HashType & shared_model::proto::BlocksQuery::hash ( ) const
overridevirtual

◆ payload()

const interface::types::BlobType & shared_model::proto::BlocksQuery::payload ( ) const
overridevirtual
Returns
object payload (everything except signatures)

Implements shared_model::interface::Signable< BlocksQuery >.

◆ queryCounter()

interface::types::CounterType shared_model::proto::BlocksQuery::queryCounter ( ) const
overridevirtual

Query counter - incremental variable reflect for number of sent to system queries plus 1. Required for preventing replay attacks.

Returns
attached query counter

Implements shared_model::interface::BlocksQuery.

◆ signatures()

interface::types::SignatureRangeType shared_model::proto::BlocksQuery::signatures ( ) const
overridevirtual
Returns
attached signatures

Implements shared_model::interface::Signable< BlocksQuery >.


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