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

#include "transaction.hpp"

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

Public Types

using CommandsType = boost::any_range< Command, boost::random_access_traversal_tag, const Command & >
 Type of ordered collection of commands. More...
 
- Public Types inherited from shared_model::interface::ModelPrimitive< Transaction >
using ModelType = Transaction
 
- Public Types inherited from Cloneable< ModelPrimitive< Transaction > >
using base_type = ModelPrimitive< Transaction >
 

Public Member Functions

virtual const types::AccountIdTypecreatorAccountId () const =0
 
virtual types::QuorumType quorum () const =0
 
virtual CommandsType commands () const =0
 
virtual const types::BlobTypereducedPayload () const =0
 
virtual const types::HashTypereducedHash () const =0
 
virtual boost::optional< std::shared_ptr< BatchMeta > > batchMeta () const =0
 
std::string toString () const override
 
- Public Member Functions inherited from shared_model::interface::Signable< Transaction >
virtual types::SignatureRangeType signatures () const =0
 
virtual bool addSignature (const crypto::Signed &signed_blob, const crypto::PublicKey &public_key)=0
 
virtual types::TimestampType createdTime () const =0
 
virtual const types::BlobTypepayload () const =0
 
virtual const types::BlobTypeblob () const =0
 
bool operator== (const Transaction &rhs) const override
 
bool equalsByValue (const Transaction &rhs) const
 
virtual const types::HashTypehash () const =0
 
std::string toString () const override
 
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< Transaction >
virtual bool operator!= (const ModelType &rhs) const
 
virtual ~ModelPrimitive ()=default
 
- Public Member Functions inherited from Cloneable< ModelPrimitive< Transaction > >
virtual ~Cloneable ()=default
 

Additional Inherited Members

- Protected Types inherited from shared_model::interface::Signable< Transaction >
using SignatureSetType = std::unordered_set< T, SignatureSetTypeOps, SignatureSetTypeOps >
 
- Protected Member Functions inherited from Cloneable< ModelPrimitive< Transaction > >
virtual ModelPrimitive< Transaction > * clone () const =0
 
- Static Protected Member Functions inherited from shared_model::interface::Signable< Transaction >
static auto makeHash (const types::BlobType &payload)
 

Detailed Description

Transaction class represent well-formed intent from client to change state of ledger.

Member Typedef Documentation

using shared_model::interface::Transaction::CommandsType = boost::any_range<Command, boost::random_access_traversal_tag, const Command &>

Type of ordered collection of commands.

Member Function Documentation

virtual boost::optional<std::shared_ptr<BatchMeta> > shared_model::interface::Transaction::batchMeta ( ) const
pure virtual

Implemented in shared_model::proto::Transaction.

Here is the caller graph for this function:

virtual CommandsType shared_model::interface::Transaction::commands ( ) const
pure virtual
Returns
attached commands

Implemented in shared_model::proto::Transaction.

Here is the caller graph for this function:

virtual const types::AccountIdType& shared_model::interface::Transaction::creatorAccountId ( ) const
pure virtual
Returns
creator of transaction

Implemented in shared_model::proto::Transaction.

Here is the caller graph for this function:

virtual types::QuorumType shared_model::interface::Transaction::quorum ( ) const
pure virtual
Returns
quorum of transaction

Implemented in shared_model::proto::Transaction.

Here is the caller graph for this function:

virtual const types::HashType& shared_model::interface::Transaction::reducedHash ( ) const
pure virtual
Returns
hash of reduced payload

Implemented in shared_model::proto::Transaction.

Here is the caller graph for this function:

virtual const types::BlobType& shared_model::interface::Transaction::reducedPayload ( ) const
pure virtual
Returns
object payload (everything except signatures)

Implemented in shared_model::proto::Transaction.

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

Make string developer representation of object

Returns
string with internal state of object

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

Here is the call graph for this function:

Here is the caller graph for this function:


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