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

#include "block.hpp"

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

Classes

struct  Impl
 

Public Types

using TransportType = iroha::protocol::Block_v1
 
- Public Types inherited from shared_model::interface::ModelPrimitive< Block >
using ModelType = Block
 
- Public Types inherited from Cloneable< ModelPrimitive< Block > >
using base_type = ModelPrimitive< Block >
 

Public Member Functions

 Block (Block &&o) noexcept
 
Blockoperator= (Block &&o) noexcept=default
 
 Block (const TransportType &ref)
 
 Block (TransportType &&ref)
 
interface::types::TransactionsCollectionType transactions () const override
 
interface::types::HeightType height () const override
 
const interface::types::HashTypeprevHash () const override
 
const interface::types::BlobTypeblob () const override
 
interface::types::SignatureRangeType signatures () const override
 
bool addSignature (const crypto::Signed &signed_blob, const crypto::PublicKey &public_key) override
 
interface::types::TimestampType createdTime () const override
 
interface::types::TransactionsNumberType txsNumber () const override
 
interface::types::HashCollectionType rejected_transactions_hashes () const override
 
const interface::types::BlobTypepayload () const override
 
interface::Block::ModelTypeclone () const override
 
const iroha::protocol::Block_v1 & getTransport () const
 
 ~Block () override
 
- Public Member Functions inherited from shared_model::interface::Block
std::string toString () const override
 
- Public Member Functions inherited from shared_model::interface::Signable< Block >
bool operator== (const Block &rhs) const override
 
bool equalsByValue (const Block &rhs) const
 
virtual const types::HashTypehash () const
 
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

- Protected Types inherited from shared_model::interface::Signable< Block >
using SignatureSetType = std::unordered_set< T, SignatureSetTypeOps, SignatureSetTypeOps >
 

Member Typedef Documentation

using shared_model::proto::Block::TransportType = iroha::protocol::Block_v1

Constructor & Destructor Documentation

shared_model::proto::Block::Block ( Block &&  o)
defaultnoexcept

Here is the caller graph for this function:

shared_model::proto::Block::Block ( const TransportType ref)
explicit
shared_model::proto::Block::Block ( TransportType &&  ref)
explicit
shared_model::proto::Block::~Block ( )
overridedefault

Here is the caller graph for this function:

Member Function Documentation

bool shared_model::proto::Block::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< Block >.

Here is the call graph for this function:

const interface::types::BlobType & shared_model::proto::Block::blob ( ) const
overridevirtual
Returns
blob representation of object include signatures

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

Block::ModelType * shared_model::proto::Block::clone ( ) const
overridevirtual

Polymorphic clone constructor. Method guarantees deep-copy.

Returns
pointer to cloned object

Implements Cloneable< ModelPrimitive< Block > >.

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

const iroha::protocol::Block_v1 & shared_model::proto::Block::getTransport ( ) const

Here is the caller graph for this function:

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

Implements shared_model::interface::Block.

Block& shared_model::proto::Block::operator= ( Block &&  o)
defaultnoexcept
const interface::types::BlobType & shared_model::proto::Block::payload ( ) const
overridevirtual
Returns
object payload (everything except signatures)

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

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

Implements shared_model::interface::Block.

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

Implements shared_model::interface::Block.

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

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

Here is the caller graph for this function:

interface::types::TransactionsCollectionType shared_model::proto::Block::transactions ( ) const
overridevirtual
Returns
collection of transactions

Implements shared_model::interface::Block.

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

Implements shared_model::interface::Block.


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