hyperledger/iroha
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
 
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< TransactionBatch >
virtual std::string toString () const
 
virtual bool operator== (const ModelType &rhs) const =0
 
virtual bool operator!= (const ModelType &rhs) const
 
virtual ~ModelPrimitive ()=default
 
- Public Member Functions inherited from Cloneable< ModelPrimitive< TransactionBatch > >
virtual ~Cloneable ()=default
 

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 >
 
- Protected Member Functions inherited from Cloneable< ModelPrimitive< TransactionBatch > >
virtual ModelPrimitive< TransactionBatch > * clone () const =0
 

Detailed Description

Represents collection of transactions, which are to be processed together

Member Function Documentation

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

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

Implemented in shared_model::interface::TransactionBatchImpl.

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

Checks if every transaction has quorum signatures

Returns
true if every transaction has quorum signatures, false otherwise

Implemented in shared_model::interface::TransactionBatchImpl.

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

Get the concatenation of reduced hashes as a single hash

Parameters
reduced_hashescollection of reduced hashes
Returns
concatenated reduced hashes

Implemented in shared_model::interface::TransactionBatchImpl.

Here is the caller graph for this function:

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

Get transactions list

Returns
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 file: