Electroneum
Classes | Typedefs | Functions
hw::trezor::protocol::tx Namespace Reference

Classes

class  TData
 
class  Signer
 

Typedefs

using TsxData = messages::electroneum::ElectroneumTransactionInitRequest_ElectroneumTransactionData
 
using ElectroneumTransactionDestinationEntry = messages::electroneum::ElectroneumTransactionDestinationEntry
 
using ElectroneumAccountPublicAddress = messages::electroneum::ElectroneumTransactionDestinationEntry_ElectroneumAccountPublicAddress
 
using ElectroneumTransactionSourceEntry = messages::electroneum::ElectroneumTransactionSourceEntry
 
using ElectroneumMultisigKLRki = messages::electroneum::ElectroneumTransactionSourceEntry_ElectroneumMultisigKLRki
 
using ElectroneumOutputEntry = messages::electroneum::ElectroneumTransactionSourceEntry_ElectroneumOutputEntry
 
using ElectroneumRctKey = messages::electroneum::ElectroneumTransactionSourceEntry_ElectroneumOutputEntry_ElectroneumRctKeyPublic
 
using ElectroneumRsigData = messages::electroneum::ElectroneumTransactionRsigData
 
using tx_construction_data = tools::wallet2::tx_construction_data
 
using unsigned_tx_set = tools::wallet2::unsigned_tx_set
 
typedef boost::variant< rct::rangeSig, rct::Bulletproofrsig_v
 

Functions

void translate_address (ElectroneumAccountPublicAddress *dst, const cryptonote::account_public_address *src)
 
void translate_dst_entry (ElectroneumTransactionDestinationEntry *dst, const cryptonote::tx_destination_entry *src)
 
void translate_src_entry (ElectroneumTransactionSourceEntry *dst, const cryptonote::tx_source_entry *src)
 
void translate_klrki (ElectroneumMultisigKLRki *dst, const rct::multisig_kLRki *src)
 
void translate_rct_key (ElectroneumRctKey *dst, const rct::ctkey *src)
 
std::string hash_addr (const ElectroneumAccountPublicAddress *addr, boost::optional< uint64_t > amount, boost::optional< bool > is_subaddr)
 
std::string hash_addr (const std::string &spend_key, const std::string &view_key, boost::optional< uint64_t > amount, boost::optional< bool > is_subaddr)
 
std::string hash_addr (const ::crypto::public_key *spend_key, const ::crypto::public_key *view_key, boost::optional< uint64_t > amount, boost::optional< bool > is_subaddr)
 
::crypto::secret_key compute_enc_key (const ::crypto::secret_key &private_view_key, const std::string &aux, const std::string &salt)
 
static unsigned get_rsig_type (const rct::RCTConfig &rct_config, size_t num_outputs)
 
static void generate_rsig_batch_sizes (std::vector< uint64_t > &batches, unsigned rsig_type, size_t num_outputs)
 
void load_tx_key_data (hw::device_cold::tx_key_data_t &res, const std::string &data)
 
std::shared_ptr< messages::Electroneum::ElectroneumGetTxKeyRequest > get_tx_key (const hw::device_cold::tx_key_data_t &tx_data)
 
void get_tx_key_ack (std::vector<::crypto::secret_key > &tx_keys, const std::string &tx_prefix_hash, const ::crypto::secret_key &view_key_priv, std::shared_ptr< const messages::Electroneum::ElectroneumGetTxKeyAck > ack)
 
void get_tx_key_ack (std::vector<::crypto::secret_key > &tx_keys, const std::string &tx_prefix_hash, const ::crypto::secret_key &view_key_priv, std::shared_ptr< const messages::electroneum::ElectroneumGetTxKeyAck > ack)
 

Typedef Documentation

◆ ElectroneumAccountPublicAddress

using hw::trezor::protocol::tx::ElectroneumAccountPublicAddress = typedef messages::electroneum::ElectroneumTransactionDestinationEntry_ElectroneumAccountPublicAddress

◆ ElectroneumMultisigKLRki

using hw::trezor::protocol::tx::ElectroneumMultisigKLRki = typedef messages::electroneum::ElectroneumTransactionSourceEntry_ElectroneumMultisigKLRki

◆ ElectroneumOutputEntry

using hw::trezor::protocol::tx::ElectroneumOutputEntry = typedef messages::electroneum::ElectroneumTransactionSourceEntry_ElectroneumOutputEntry

◆ ElectroneumRctKey

using hw::trezor::protocol::tx::ElectroneumRctKey = typedef messages::electroneum::ElectroneumTransactionSourceEntry_ElectroneumOutputEntry_ElectroneumRctKeyPublic

◆ ElectroneumRsigData

using hw::trezor::protocol::tx::ElectroneumRsigData = typedef messages::electroneum::ElectroneumTransactionRsigData

◆ ElectroneumTransactionDestinationEntry

using hw::trezor::protocol::tx::ElectroneumTransactionDestinationEntry = typedef messages::electroneum::ElectroneumTransactionDestinationEntry

◆ ElectroneumTransactionSourceEntry

using hw::trezor::protocol::tx::ElectroneumTransactionSourceEntry = typedef messages::electroneum::ElectroneumTransactionSourceEntry

◆ rsig_v

◆ TsxData

using hw::trezor::protocol::tx::TsxData = typedef messages::electroneum::ElectroneumTransactionInitRequest_ElectroneumTransactionData

◆ tx_construction_data

◆ unsigned_tx_set

Function Documentation

◆ compute_enc_key()

crypto::secret_key hw::trezor::protocol::tx::compute_enc_key ( const ::crypto::secret_key private_view_key,
const std::string &  aux,
const std::string &  salt 
)

◆ generate_rsig_batch_sizes()

static void hw::trezor::protocol::tx::generate_rsig_batch_sizes ( std::vector< uint64_t > &  batches,
unsigned  rsig_type,
size_t  num_outputs 
)
static

◆ get_rsig_type()

static unsigned hw::trezor::protocol::tx::get_rsig_type ( const rct::RCTConfig rct_config,
size_t  num_outputs 
)
static

◆ get_tx_key()

std::shared_ptr< messages::electroneum::ElectroneumGetTxKeyRequest > hw::trezor::protocol::tx::get_tx_key ( const hw::device_cold::tx_key_data_t tx_data)

◆ get_tx_key_ack() [1/2]

void hw::trezor::protocol::tx::get_tx_key_ack ( std::vector<::crypto::secret_key > &  tx_keys,
const std::string &  tx_prefix_hash,
const ::crypto::secret_key view_key_priv,
std::shared_ptr< const messages::Electroneum::ElectroneumGetTxKeyAck >  ack 
)

◆ get_tx_key_ack() [2/2]

void hw::trezor::protocol::tx::get_tx_key_ack ( std::vector<::crypto::secret_key > &  tx_keys,
const std::string &  tx_prefix_hash,
const ::crypto::secret_key view_key_priv,
std::shared_ptr< const messages::electroneum::ElectroneumGetTxKeyAck >  ack 
)

◆ hash_addr() [1/3]

std::string hw::trezor::protocol::tx::hash_addr ( const ::crypto::public_key spend_key,
const ::crypto::public_key view_key,
boost::optional< uint64_t >  amount,
boost::optional< bool is_subaddr 
)

◆ hash_addr() [2/3]

std::string hw::trezor::protocol::tx::hash_addr ( const ElectroneumAccountPublicAddress addr,
boost::optional< uint64_t >  amount,
boost::optional< bool is_subaddr 
)

◆ hash_addr() [3/3]

std::string hw::trezor::protocol::tx::hash_addr ( const std::string &  spend_key,
const std::string &  view_key,
boost::optional< uint64_t >  amount,
boost::optional< bool is_subaddr 
)

◆ load_tx_key_data()

void hw::trezor::protocol::tx::load_tx_key_data ( hw::device_cold::tx_key_data_t res,
const std::string &  data 
)

◆ translate_address()

void hw::trezor::protocol::tx::translate_address ( ElectroneumAccountPublicAddress dst,
const cryptonote::account_public_address src 
)

◆ translate_dst_entry()

void hw::trezor::protocol::tx::translate_dst_entry ( ElectroneumTransactionDestinationEntry dst,
const cryptonote::tx_destination_entry src 
)

◆ translate_klrki()

void hw::trezor::protocol::tx::translate_klrki ( ElectroneumMultisigKLRki dst,
const rct::multisig_kLRki src 
)

◆ translate_rct_key()

void hw::trezor::protocol::tx::translate_rct_key ( ElectroneumRctKey dst,
const rct::ctkey src 
)

◆ translate_src_entry()

void hw::trezor::protocol::tx::translate_src_entry ( ElectroneumTransactionSourceEntry dst,
const cryptonote::tx_source_entry src 
)