hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::bindings Namespace Reference

Classes

class  ModelBlocksQueryBuilder
 
class  ModelCrypto
 
class  ModelProto
 
class  ModelQueryBuilder
 
class  ModelTransactionBuilder
 

Typedefs

using Blob = std::vector< uint8_t >
 

Functions

std::string convert (const Blob &blob)
 
template<typename Proto >
boost::optional< Proto > get (const std::string &blob)
 
void validateTransaction (const Blob &b)
 
void validateQuery (const Blob &b)
 
Blob signTransaction (const Blob &b, const crypto::Keypair &key)
 
Blob signQuery (const Blob &b, const crypto::Keypair &key)
 
Blob hashTransaction (const Blob &b)
 
Blob hashQuery (const Blob &b)
 
interface::types::HashType utxReducedHash (const shared_model::proto::UnsignedWrapper< shared_model::proto::Transaction > &utx)
 

Typedef Documentation

using shared_model::bindings::Blob = typedef std::vector<uint8_t>

Function Documentation

std::string shared_model::bindings::convert ( const Blob blob)

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename Proto >
boost::optional<Proto> shared_model::bindings::get ( const std::string blob)

Here is the caller graph for this function:

Blob shared_model::bindings::hashQuery ( const Blob )

Get the hash of given protobuf query

Parameters
blobto calculate hash from
Returns
hash of the blob

Here is the call graph for this function:

Blob shared_model::bindings::hashTransaction ( const Blob )

Get the hash of given protobuf transaction

Parameters
blobto calculate hash from
Returns
hash of the blob

Here is the call graph for this function:

Blob shared_model::bindings::signQuery ( const Blob ,
const crypto::Keypair  
)

Signs protobuf query

Parameters
blobto sign
keyis keypair for signing
Returns
signed blob

Here is the call graph for this function:

Blob shared_model::bindings::signTransaction ( const Blob ,
const crypto::Keypair  
)

Signs protobuf transaction

Parameters
blobto sign
keyis keypair for signing
Returns
signed blob

Here is the call graph for this function:

interface::types::HashType shared_model::bindings::utxReducedHash ( const shared_model::proto::UnsignedWrapper< shared_model::proto::Transaction > &  )

Get reduced hash of unsigned transaction

Parameters
utxto get hash from
Returns
reduced hash
void shared_model::bindings::validateQuery ( const Blob )

Validate protobuf query

Parameters
blobto validate
Returns
string with errors, empty if none

Here is the call graph for this function:

void shared_model::bindings::validateTransaction ( const Blob )

Validate protobuf transaction

Parameters
blobto validate
Returns
string with errors, empty if none

Here is the call graph for this function: