MidlePayQml 0.0.4
MiddlePay QML module
Classes | Typedefs | Functions
qiota::qblocks Namespace Reference

Classes

class  c_array
 Byte Array that takes care of storing the objects in serialized form. More...
 
class  fl_array
 Byte Array with fixed length. More...
 
class  Address
 
class  NFT_Address
 
class  Alias_Address
 
class  Ed25519_Address
 
class  Block
 
class  Essence
 
class  Transaction_Essence
 
class  Feature
 
class  Sender_Feature
 
class  Issuer_Feature
 
class  Metadata_Feature
 
class  Tag_Feature
 
class  Input
 
class  UTXO_Input
 
class  Native_Token
 
class  Output_Metadata_Response
 
class  Output
 
class  Basic_Output
 
class  NFT_Output
 
class  Foundry_Output
 
class  Alias_Output
 
class  Payload
 
class  Tagged_Data_Payload
 
class  Transaction_Payload
 
class  Signature
 
class  Ed25519_Signature
 
class  Token_Scheme
 
class  Simple_Token_Scheme
 
class  Unlock_Condition
 
class  Address_Unlock_Condition
 
class  Storage_Deposit_Return_Unlock_Condition
 
class  Timelock_Unlock_Condition
 
class  Expiration_Unlock_Condition
 
class  State_Controller_Address_Unlock_Condition
 
class  Governor_Address_Unlock_Condition
 
class  Immutable_Alias_Address_Unlock_Condition
 
class  Unlock
 
class  Signature_Unlock
 
class  Reference_Unlock
 
class  Alias_Unlock
 
class  NFT_Unlock
 

Typedefs

using Block_ID = c_array
 Is the BLAKE2b-256 hash of the entire serialized block. More...
 
using Transaction_ID = c_array
 Is the BLAKE2b-256 hash of the transaction payload. More...
 
using public_key = c_array
 
using signature = c_array
 
using NFT_ID = c_array
 BLAKE2b-256 hash of the Output ID that created the NFT chain of outputs. More...
 
using Alias_ID = c_array
 BLAKE2b-256 hash of the Output ID that created the Alias chain of outputs. More...
 
using Output_ID = c_array
 Concatenation of Transaction_ID || outputIndex. More...
 
using Token_ID = c_array
 The concatenation of Address || Serial Number || Token Scheme Type = Foundry ID. More...
 
using dataf = fl_array< quint16 >
 Binary data. A leading uint16 denotes its length. Used in https://github.com/iotaledger/tips/blob/main/tips/TIP-0018/tip-0018.md#metadata-feature. More...
 
using dataF = fl_array< quint32 >
 Binary data. A leading uint32 denotes its length. Used in https://github.com/iotaledger/tips/blob/main/tips/TIP-0023/tip-0023.md#serialized-layout. More...
 
using tagF = fl_array< quint8 >
 The tag of the data. A leading uint8 denotes its length. Used in https://github.com/iotaledger/tips/blob/main/tips/TIP-0018/tip-0018.md#tag-feature. More...
 
template<class T >
using pvector = std::vector< std::shared_ptr< T > >
 Container of shared pointers. More...
 

Functions

template<class T >
pvector< const T > get_T (const QJsonArray &val)
 
template<class type_type >
type_type get_type (const QJsonValue &val)
 
template<class type_type >
type_type get_type (QDataStream &val)
 
template<class size_type , class obj_type >
void serialize_list (QDataStream &out, const pvector< const obj_type > &ptr_vector)
 append to the datastream the serialized form of objects in a container More...
 
template<class size_type , class obj_type >
pvector< const obj_type > deserialize_list (QDataStream &in)
 
template<class obj_type >
void order_list (pvector< obj_type > &ptr_vector)
 Order a Container of shared pointer to objects Normally ordered by type. More...
 

Typedef Documentation

◆ Alias_ID

BLAKE2b-256 hash of the Output ID that created the Alias chain of outputs.

◆ Block_ID

Is the BLAKE2b-256 hash of the entire serialized block.

◆ dataf

using qiota::qblocks::dataf = typedef fl_array <quint16>

Binary data. A leading uint16 denotes its length. Used in https://github.com/iotaledger/tips/blob/main/tips/TIP-0018/tip-0018.md#metadata-feature.

◆ dataF

using qiota::qblocks::dataF = typedef fl_array<quint32>

Binary data. A leading uint32 denotes its length. Used in https://github.com/iotaledger/tips/blob/main/tips/TIP-0023/tip-0023.md#serialized-layout.

◆ NFT_ID

BLAKE2b-256 hash of the Output ID that created the NFT chain of outputs.

◆ Output_ID

Concatenation of Transaction_ID || outputIndex.

◆ public_key

◆ pvector

template<class T >
using qiota::qblocks::pvector = typedef std::vector<std::shared_ptr<T> >

Container of shared pointers.

◆ signature

◆ tagF

using qiota::qblocks::tagF = typedef fl_array<quint8>

The tag of the data. A leading uint8 denotes its length. Used in https://github.com/iotaledger/tips/blob/main/tips/TIP-0018/tip-0018.md#tag-feature.

◆ Token_ID

The concatenation of Address || Serial Number || Token Scheme Type = Foundry ID.

◆ Transaction_ID

Is the BLAKE2b-256 hash of the transaction payload.

Function Documentation

◆ deserialize_list()

template<class size_type , class obj_type >
pvector<const obj_type> qiota::qblocks::deserialize_list ( QDataStream in)
Returns
A container of objects from datastream. The lenght of the container is read from the datastream.

◆ get_T()

template<class T >
pvector<const T> qiota::qblocks::get_T ( const QJsonArray val)
Returns
Container of shared pointers from JSON-objects in an Array. The object has the from_(const QJsonValue& val) function.

◆ get_type() [1/2]

template<class type_type >
type_type qiota::qblocks::get_type ( const QJsonValue val)
Returns
The type of the object from its JSON form

◆ get_type() [2/2]

template<class type_type >
type_type qiota::qblocks::get_type ( QDataStream val)
Returns
The type of the object from its serialized form

◆ order_list()

template<class obj_type >
void qiota::qblocks::order_list ( pvector< obj_type > &  ptr_vector)

Order a Container of shared pointer to objects Normally ordered by type.

◆ serialize_list()

template<class size_type , class obj_type >
void qiota::qblocks::serialize_list ( QDataStream out,
const pvector< const obj_type > &  ptr_vector 
)

append to the datastream the serialized form of objects in a container