hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::interface::TransactionBatchImpl Class Reference

#include "transaction_batch_impl.hpp"

Inheritance diagram for shared_model::interface::TransactionBatchImpl:
Inheritance graph
Collaboration diagram for shared_model::interface::TransactionBatchImpl:
Collaboration graph

Public Member Functions

 TransactionBatchImpl (types::SharedTxsCollectionType transactions)
 
 TransactionBatchImpl (TransactionBatchImpl &&)=default
 
TransactionBatchImploperator= (TransactionBatchImpl &&)=default
 
const types::SharedTxsCollectionTypetransactions () const override
 
const types::HashTypereducedHash () const override
 
bool hasAllSignatures () const override
 
bool operator== (const TransactionBatch &rhs) const override
 
std::string toString () const override
 Pretty print the batch contents. More...
 
bool addSignature (size_t number_of_tx, types::SignedHexStringView signed_blob, types::PublicKeyHexStringView public_key) override
 
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< TransactionBatch >
virtual bool operator!= (const ModelType &rhs) const
 
virtual ~ModelPrimitive ()=default
 

Additional Inherited Members

- Public Types inherited from shared_model::interface::ModelPrimitive< TransactionBatch >
using ModelType = TransactionBatch
 

Constructor & Destructor Documentation

◆ TransactionBatchImpl() [1/2]

shared_model::interface::TransactionBatchImpl::TransactionBatchImpl ( types::SharedTxsCollectionType  transactions)
explicit
Here is the call graph for this function:

◆ TransactionBatchImpl() [2/2]

shared_model::interface::TransactionBatchImpl::TransactionBatchImpl ( TransactionBatchImpl &&  )
default

Member Function Documentation

◆ addSignature()

bool shared_model::interface::TransactionBatchImpl::addSignature ( size_t  number_of_tx,
types::SignedHexStringView  signed_blob,
types::PublicKeyHexStringView  public_key 
)
overridevirtual

Add signature to concrete transaction in the batch

Parameters
number_of_tx- number of transaction for inserting signature
signed_blob- signed blob of transaction
public_key- public key of inserter
Returns
true if signature has been inserted

Implements shared_model::interface::TransactionBatch.

◆ hasAllSignatures()

bool shared_model::interface::TransactionBatchImpl::hasAllSignatures ( ) const
overridevirtual

Checks if every transaction has quorum signatures

Returns
true if every transaction has quorum signatures, false otherwise

Implements shared_model::interface::TransactionBatch.

Here is the caller graph for this function:

◆ operator=()

TransactionBatchImpl& shared_model::interface::TransactionBatchImpl::operator= ( TransactionBatchImpl &&  )
default

◆ operator==()

bool shared_model::interface::TransactionBatchImpl::operator== ( const TransactionBatch rhs) const
overridevirtual

Implements shared_model::interface::ModelPrimitive< TransactionBatch >.

Here is the call graph for this function:

◆ reducedHash()

const types::HashType & shared_model::interface::TransactionBatchImpl::reducedHash ( ) const
overridevirtual

Get the concatenation of reduced hashes as a single hash

Parameters
reduced_hashescollection of reduced hashes
Returns
concatenated reduced hashes

Implements shared_model::interface::TransactionBatch.

Here is the caller graph for this function:

◆ toString()

std::string shared_model::interface::TransactionBatchImpl::toString ( ) const
overridevirtual

Pretty print the batch contents.

Reimplemented from shared_model::interface::TransactionBatch.

Here is the call graph for this function:

◆ transactions()

const types::SharedTxsCollectionType & shared_model::interface::TransactionBatchImpl::transactions ( ) const
overridevirtual

Get transactions list

Returns
list of transactions from the batch

Implements shared_model::interface::TransactionBatch.

Here is the caller graph for this function:

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