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, const shared_model::crypto::Signed &signed_blob, const shared_model::crypto::PublicKey &public_key) override
 
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< TransactionBatch >
virtual bool operator!= (const ModelType &rhs) const
 
virtual ~ModelPrimitive ()=default
 
- Public Member Functions inherited from Cloneable< ModelPrimitive< TransactionBatch > >
virtual ~Cloneable ()=default
 

Protected Member Functions

TransactionBatchclone () const override
 

Additional Inherited Members

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

Constructor & Destructor Documentation

shared_model::interface::TransactionBatchImpl::TransactionBatchImpl ( types::SharedTxsCollectionType  transactions)
explicit

Here is the call graph for this function:

Here is the caller graph for this function:

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

Member Function Documentation

bool shared_model::interface::TransactionBatchImpl::addSignature ( size_t  number_of_tx,
const shared_model::crypto::Signed signed_blob,
const shared_model::crypto::PublicKey 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.

TransactionBatch * shared_model::interface::TransactionBatchImpl::clone ( ) const
overrideprotectedvirtual

Polymorphic clone constructor. Method guarantees deep-copy.

Returns
pointer to cloned object

Implements Cloneable< ModelPrimitive< TransactionBatch > >.

Here is the call graph for this function:

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:

TransactionBatchImpl& shared_model::interface::TransactionBatchImpl::operator= ( TransactionBatchImpl &&  )
default
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:

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:

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:

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: