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

#include "transaction.hpp"

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

Public Types

using TransportType = iroha::protocol::Transaction
 
- Public Types inherited from shared_model::interface::Transaction
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

 Transaction (const TransportType &transaction)
 
 Transaction (TransportType &&transaction)
 
 Transaction (TransportType &transaction)
 
 Transaction (const Transaction &transaction)
 
 Transaction (Transaction &&o) noexcept
 
 ~Transaction () override
 
const interface::types::AccountIdTypecreatorAccountId () const override
 
Transaction::CommandsType commands () const override
 
const interface::types::BlobTypeblob () const override
 
const interface::types::BlobTypepayload () const override
 
const interface::types::BlobTypereducedPayload () const override
 
interface::types::SignatureRangeType signatures () const override
 
const interface::types::HashTypereducedHash () const override
 
bool addSignature (const crypto::Signed &signed_blob, const crypto::PublicKey &public_key) override
 
const interface::types::HashTypehash () const override
 
const TransportTypegetTransport () const
 
interface::types::TimestampType createdTime () const override
 
interface::types::QuorumType quorum () const override
 
boost::optional< std::shared_ptr< interface::BatchMeta > > batchMeta () const override
 
- Public Member Functions inherited from shared_model::interface::Transaction
std::string toString () const override
 
- Public Member Functions inherited from shared_model::interface::Signable< Transaction >
bool operator== (const Transaction &rhs) const override
 
bool equalsByValue (const Transaction &rhs) const
 
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
 

Protected Member Functions

Transaction::ModelTypeclone () const override
 

Additional Inherited Members

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

Member Typedef Documentation

using shared_model::proto::Transaction::TransportType = iroha::protocol::Transaction

Constructor & Destructor Documentation

shared_model::proto::Transaction::Transaction ( const TransportType transaction)
explicit

Here is the caller graph for this function:

shared_model::proto::Transaction::Transaction ( TransportType &&  transaction)
explicit
shared_model::proto::Transaction::Transaction ( TransportType transaction)
explicit
shared_model::proto::Transaction::Transaction ( const Transaction transaction)

Here is the call graph for this function:

shared_model::proto::Transaction::Transaction ( Transaction &&  o)
defaultnoexcept
shared_model::proto::Transaction::~Transaction ( )
overridedefault

Here is the caller graph for this function:

Member Function Documentation

bool shared_model::proto::Transaction::addSignature ( const crypto::Signed signed_blob,
const crypto::PublicKey public_key 
)
overridevirtual

Attach signature to object

Parameters
signature- signature object for insertion
Returns
true, if signature was added

Implements shared_model::interface::Signable< Transaction >.

Here is the call graph for this function:

boost::optional< std::shared_ptr< interface::BatchMeta > > shared_model::proto::Transaction::batchMeta ( ) const
overridevirtual
const interface::types::BlobType & shared_model::proto::Transaction::blob ( ) const
overridevirtual
Returns
blob representation of object include signatures

Implements shared_model::interface::Signable< Transaction >.

Transaction::ModelType * shared_model::proto::Transaction::clone ( ) const
overrideprotectedvirtual

Polymorphic clone constructor. Method guarantees deep-copy.

Returns
pointer to cloned object

Implements Cloneable< ModelPrimitive< Transaction > >.

Here is the call graph for this function:

Transaction::CommandsType shared_model::proto::Transaction::commands ( ) const
overridevirtual
Returns
attached commands

Implements shared_model::interface::Transaction.

interface::types::TimestampType shared_model::proto::Transaction::createdTime ( ) const
overridevirtual
Returns
time of creation

Implements shared_model::interface::Signable< Transaction >.

const interface::types::AccountIdType & shared_model::proto::Transaction::creatorAccountId ( ) const
overridevirtual
Returns
creator of transaction

Implements shared_model::interface::Transaction.

const Transaction::TransportType & shared_model::proto::Transaction::getTransport ( ) const
const interface::types::HashType & shared_model::proto::Transaction::hash ( ) const
overridevirtual
const interface::types::BlobType & shared_model::proto::Transaction::payload ( ) const
overridevirtual
Returns
object payload (everything except signatures)

Implements shared_model::interface::Signable< Transaction >.

interface::types::QuorumType shared_model::proto::Transaction::quorum ( ) const
overridevirtual
Returns
quorum of transaction

Implements shared_model::interface::Transaction.

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

Implements shared_model::interface::Transaction.

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

Implements shared_model::interface::Transaction.

interface::types::SignatureRangeType shared_model::proto::Transaction::signatures ( ) const
overridevirtual
Returns
attached signatures

Implements shared_model::interface::Signable< Transaction >.

Here is the caller graph for this function:


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