Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::interface::TransactionBatch Class Referenceabstract

#include "transaction_batch.hpp"

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

Public Member Functions

virtual const types::SharedTxsCollectionTypetransactions () const =0
virtual const types::HashTypereducedHash () const =0
virtual bool hasAllSignatures () const =0
virtual bool addSignature (size_t number_of_tx, const shared_model::crypto::Signed &signed_blob, const shared_model::crypto::PublicKey &public_key)=0
std::string toString () const
 Pretty print the batch contents. More...
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< TransactionBatch >
virtual bool operator== (const ModelType &rhs) const=0
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

Detailed Description

Represents collection of transactions, which are to be processed together

Member Function Documentation

◆ addSignature()

virtual bool shared_model::interface::TransactionBatch::addSignature ( size_t  number_of_tx,
const shared_model::crypto::Signed signed_blob,
const shared_model::crypto::PublicKey public_key 
pure virtual

Add signature to concrete transaction in the batch

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

Implemented in shared_model::interface::TransactionBatchImpl.

◆ hasAllSignatures()

virtual bool shared_model::interface::TransactionBatch::hasAllSignatures ( ) const
pure virtual

Checks if every transaction has quorum signatures

true if every transaction has quorum signatures, false otherwise

Implemented in shared_model::interface::TransactionBatchImpl.

◆ reducedHash()

virtual const types::HashType& shared_model::interface::TransactionBatch::reducedHash ( ) const
pure virtual

Get the concatenation of reduced hashes as a single hash

reduced_hashescollection of reduced hashes
concatenated reduced hashes

Implemented in shared_model::interface::TransactionBatchImpl.

Here is the caller graph for this function:

◆ toString()

std::string shared_model::interface::TransactionBatch::toString ( ) const

Pretty print the batch contents.

Reimplemented from shared_model::interface::ModelPrimitive< TransactionBatch >.

Reimplemented in shared_model::interface::TransactionBatchImpl.

Here is the call graph for this function:

◆ transactions()

virtual const types::SharedTxsCollectionType& shared_model::interface::TransactionBatch::transactions ( ) const
pure virtual

Get transactions list

list of transactions from the batch

Implemented in shared_model::interface::TransactionBatchImpl.

Here is the caller graph for this function:

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