hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::model::Transaction Struct Reference

#include "transaction.hpp"

Collaboration diagram for iroha::model::Transaction:
Collaboration graph

Public Types

using SignaturesType = decltype(signatures)
 
using TimeType = ts64_t
 
using CommandsType = decltype(commands)
 

Public Member Functions

bool operator== (const Transaction &rhs) const
 
bool operator!= (const Transaction &rhs) const
 

Public Attributes

std::vector< Signaturesignatures {}
 
TimeType created_ts {}
 
std::string creator_account_id {}
 
uint8_t quorum = 1
 
std::vector< std::shared_ptr< Command > > commands {}
 

Detailed Description

Transaction is a Model-structure that provides abstraction to bunch of commands with signatures and meta-data. Transaction can be divided to {Header, Meta, Body}.

Member Typedef Documentation

Member Function Documentation

bool iroha::model::Transaction::operator!= ( const Transaction rhs) const

Here is the call graph for this function:

bool iroha::model::Transaction::operator== ( const Transaction rhs) const

Member Data Documentation

std::vector<std::shared_ptr<Command> > iroha::model::Transaction::commands {}

Bunch of commands attached to transaction shared_ptr is used since Proposal has to be copied BODY field

TimeType iroha::model::Transaction::created_ts {}

Creation timestamp HEADER field

std::string iroha::model::Transaction::creator_account_id {}

Account id of transaction creator. META field

uint8_t iroha::model::Transaction::quorum = 1

Quorum means number of signatures required for processing transaction in system. This field should be > 0.

std::vector<Signature> iroha::model::Transaction::signatures {}

List of signatories that sign transaction HEADER field


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