hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::proto::Block::Impl Struct Reference
Collaboration diagram for shared_model::proto::Block::Impl:
Collaboration graph

Public Member Functions

 Impl (TransportType &&ref)
 
 Impl (const TransportType &ref)
 
 Impl (Impl &&o) noexcept=delete
 
Imploperator= (Impl &&o) noexcept=delete
 

Public Attributes

TransportType proto_
 
iroha::protocol::Block_v1::Payload & payload_ {*proto_.mutable_payload()}
 
std::vector< proto::Transactiontransactions_
 
interface::types::BlobType blob_ {[this] { return makeBlob(proto_); }()}
 
interface::types::HashType prev_hash_
 
SignatureSetType< proto::Signaturesignatures_
 
std::vector< interface::types::HashTyperejected_transactions_hashes_
 
interface::types::BlobType payload_blob_
 
interface::types::HashType hash_ = makeHash(payload_blob_)
 

Constructor & Destructor Documentation

◆ Impl() [1/3]

shared_model::proto::Block::Impl::Impl ( TransportType &&  ref)
inlineexplicit
Here is the caller graph for this function:

◆ Impl() [2/3]

shared_model::proto::Block::Impl::Impl ( const TransportType ref)
inlineexplicit
Here is the call graph for this function:

◆ Impl() [3/3]

shared_model::proto::Block::Impl::Impl ( Impl &&  o)
deletenoexcept

Member Function Documentation

◆ operator=()

Impl& shared_model::proto::Block::Impl::operator= ( Impl &&  o)
deletenoexcept
Here is the caller graph for this function:

Member Data Documentation

◆ blob_

interface::types::BlobType shared_model::proto::Block::Impl::blob_ {[this] { return makeBlob(proto_); }()}

◆ hash_

interface::types::HashType shared_model::proto::Block::Impl::hash_ = makeHash(payload_blob_)

◆ payload_

iroha::protocol::Block_v1::Payload& shared_model::proto::Block::Impl::payload_ {*proto_.mutable_payload()}

◆ payload_blob_

interface::types::BlobType shared_model::proto::Block::Impl::payload_blob_
Initial value:
{
[this] { return makeBlob(payload_); }()}

◆ prev_hash_

interface::types::HashType shared_model::proto::Block::Impl::prev_hash_
Initial value:
{[this] {
crypto::Hash::fromHexString(proto_.payload().prev_block_hash()));
}()}

◆ proto_

TransportType shared_model::proto::Block::Impl::proto_

◆ rejected_transactions_hashes_

std::vector<interface::types::HashType> shared_model::proto::Block::Impl::rejected_transactions_hashes_
Initial value:
{
[this] {
std::vector<interface::types::HashType> hashes;
for (const auto &hash :
*payload_.mutable_rejected_transactions_hashes()) {
hashes.emplace_back(
}
return hashes;
}()}

◆ signatures_

SignatureSetType<proto::Signature> shared_model::proto::Block::Impl::signatures_
Initial value:
{[this] {
auto signatures = *proto_.mutable_signatures()
| boost::adaptors::transformed(
[](auto &x) { return proto::Signature(x); });
return SignatureSetType<proto::Signature>(signatures.begin(),
signatures.end());
}()}

◆ transactions_

std::vector<proto::Transaction> shared_model::proto::Block::Impl::transactions_
Initial value:
{[this] {
return std::vector<proto::Transaction>(
payload_.mutable_transactions()->begin(),
payload_.mutable_transactions()->end());
}()}

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