hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
transaction_batch_impl.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_TRANSACTION_BATCH_IMPL_HPP
7 #define IROHA_TRANSACTION_BATCH_IMPL_HPP
8 
10 
11 namespace shared_model {
12  namespace interface {
13 
15  public:
16  explicit TransactionBatchImpl(
18 
21 
22  const types::SharedTxsCollectionType &transactions() const override;
23 
24  const types::HashType &reducedHash() const override;
25 
26  bool hasAllSignatures() const override;
27 
28  bool operator==(const TransactionBatch &rhs) const override;
29 
30  std::string toString() const override;
31 
32  bool addSignature(
33  size_t number_of_tx,
34  const shared_model::crypto::Signed &signed_blob,
35  const shared_model::crypto::PublicKey &public_key) override;
36 
37  protected:
38  TransactionBatch *clone() const override;
39 
40  private:
41  types::SharedTxsCollectionType transactions_;
42 
43  mutable boost::optional<types::HashType> reduced_hash_;
44  };
45 
46  } // namespace interface
47 } // namespace shared_model
48 
49 #endif // IROHA_TRANSACTION_BATCH_IMPL_HPP
Definition: hash.hpp:18
bool addSignature(size_t number_of_tx, const shared_model::crypto::Signed &signed_blob, const shared_model::crypto::PublicKey &public_key) override
Definition: transaction_batch_impl.cpp:56
TransactionBatch * clone() const override
Definition: transaction_batch_impl.cpp:79
bool operator==(const TransactionBatch &rhs) const override
Definition: transaction_batch_impl.cpp:68
Definition: transaction_batch_impl.hpp:14
const types::SharedTxsCollectionType & transactions() const override
Definition: transaction_batch_impl.cpp:24
string(REPLACE".""/"CMAKE_SWIG_OUTDIR ${SWIG_JAVA_PKG}) else() set(CMAKE_SWIG_FLAGS"") endif() myswig_add_library(irohajava LANGUAGE java SOURCES bindings.i) unset(CMAKE_SWIG_FLAGS) swig_link_libraries(irohajava $
Definition: CMakeLists.txt:54
TransactionBatchImpl(types::SharedTxsCollectionType transactions)
Definition: transaction_batch_impl.cpp:20
std::string toString() const override
Definition: transaction_batch_impl.cpp:46
Definition: signed.hpp:17
Definition: transaction_batch.hpp:22
const types::HashType & reducedHash() const override
Definition: transaction_batch_impl.cpp:29
bool hasAllSignatures() const override
Definition: transaction_batch_impl.cpp:39
TransactionBatchImpl & operator=(TransactionBatchImpl &&)=default
Definition: public_key.hpp:16
Definition: command_executor.hpp:12
std::vector< std::shared_ptr< Transaction >> SharedTxsCollectionType
Definition: transaction_sequence_common.hpp:27