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

#include "block.hpp"

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

Public Member Functions

virtual types::HeightType height () const =0
 
virtual const types::HashTypeprevHash () const =0
 
virtual types::TransactionsNumberType txsNumber () const =0
 
virtual types::TransactionsCollectionType transactions () const =0
 
virtual interface::types::HashCollectionType rejected_transactions_hashes () const =0
 
std::string toString () const override
 
- Public Member Functions inherited from shared_model::interface::Signable< Block >
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 Block &rhs) const override
 
bool equalsByValue (const Block &rhs) const
 
virtual const types::HashTypehash () const =0
 
std::string toString () const override
 
- Public Member Functions inherited from shared_model::interface::ModelPrimitive< Block >
virtual bool operator!= (const ModelType &rhs) const
 
virtual ~ModelPrimitive ()=default
 
- Public Member Functions inherited from Cloneable< ModelPrimitive< Block > >
virtual ~Cloneable ()=default
 

Additional Inherited Members

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

Member Function Documentation

virtual types::HeightType shared_model::interface::Block::height ( ) const
pure virtual
Returns
block number in the ledger

Implemented in shared_model::proto::Block.

Here is the caller graph for this function:

virtual const types::HashType& shared_model::interface::Block::prevHash ( ) const
pure virtual
Returns
hash of a previous block

Implemented in shared_model::proto::Block.

Here is the caller graph for this function:

virtual interface::types::HashCollectionType shared_model::interface::Block::rejected_transactions_hashes ( ) const
pure virtual
Returns
collection of rejected transactions' hashes

Implemented in shared_model::proto::Block.

Here is the caller graph for this function:

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

Make string developer representation of object

Returns
string with internal state of object

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

Here is the call graph for this function:

virtual types::TransactionsCollectionType shared_model::interface::Block::transactions ( ) const
pure virtual
Returns
collection of transactions

Implemented in shared_model::proto::Block.

Here is the caller graph for this function:

virtual types::TransactionsNumberType shared_model::interface::Block::txsNumber ( ) const
pure virtual
Returns
amount of transactions in block

Implemented in shared_model::proto::Block.

Here is the caller graph for this function:


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