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< Block >
using base_type = 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 (interface::types::SignedHexStringView signed_blob, interface::types::PublicKeyHexStringView public_key) override
 
const interface::types::HashTypehash () const 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 >
virtual bool addSignature (types::SignedHexStringView signed_blob, types::PublicKeyHexStringView public_key)=0
 
bool operator== (const Block &rhs) const override
 
bool equalsByValue (const Block &rhs) 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< Block >
virtual ~Cloneable ()=default
 

Additional Inherited Members

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

Member Typedef Documentation

◆ TransportType

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

Constructor & Destructor Documentation

◆ Block() [1/3]

shared_model::proto::Block::Block ( Block &&  o)
defaultnoexcept
Here is the caller graph for this function:

◆ Block() [2/3]

shared_model::proto::Block::Block ( const TransportType ref)
explicit

◆ Block() [3/3]

shared_model::proto::Block::Block ( TransportType &&  ref)
explicit

◆ ~Block()

shared_model::proto::Block::~Block ( )
overridedefault
Here is the caller graph for this function:

Member Function Documentation

◆ addSignature()

bool shared_model::proto::Block::addSignature ( interface::types::SignedHexStringView  signed_blob,
interface::types::PublicKeyHexStringView  public_key 
)
override
Here is the call graph for this function:

◆ blob()

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

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

◆ clone()

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

Polymorphic clone constructor. Method guarantees deep-copy.

Returns
pointer to cloned object

Implements Cloneable< Block >.

Here is the call graph for this function:

◆ createdTime()

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

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

◆ getTransport()

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

◆ hash()

const interface::types::HashType & shared_model::proto::Block::hash ( ) const
overridevirtual

◆ height()

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

Implements shared_model::interface::Block.

◆ operator=()

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

◆ payload()

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

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

◆ prevHash()

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

Implements shared_model::interface::Block.

◆ rejected_transactions_hashes()

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

Implements shared_model::interface::Block.

◆ signatures()

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:

◆ transactions()

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

Implements shared_model::interface::Block.

◆ txsNumber()

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: