38 void register_all(std::map<std::string, std::unique_ptr<device>> ®istry);
48 explicit operator bool()
const override {
return false; };
54 const std::string
get_name()
const override;
56 bool init(
void)
override;
69 void lock(
void)
override;
70 void unlock(
void)
override;
121 const bool &need_additional_txkeys,
const std::vector<crypto::secret_key> &additional_tx_keys,
122 std::vector<crypto::public_key> &additional_tx_public_keys,
123 std::vector<rct::key> &amount_keys,
bool mlsag_prehash(const std::string &blob, size_t inputs_size, size_t outputs_size, const rct::keyV &hashes, const rct::ctkeyV &outPk, rct::key &prehash) override
Definition: device_default.cpp:377
static const key H
Definition: rctTypes.h:451
bool encrypt_payment_id(crypto::hash8 &payment_id, const crypto::public_key &public_key, const crypto::secret_key &secret_key) override
Definition: device_default.cpp:334
bool mlsag_hash(const rct::keyV &long_message, rct::key &c) override
Definition: device_default.cpp:383
cryptonote::account_public_address get_subaddress(const cryptonote::account_keys &keys, const cryptonote::subaddress_index &index) override
Definition: device_default.cpp:183
bool generate_key_image(const crypto::public_key &pub, const crypto::secret_key &sec, crypto::key_image &image) override
Definition: device_default.cpp:264
bool derive_subaddress_public_key(const crypto::public_key &pub, const crypto::key_derivation &derivation, const std::size_t output_index, crypto::public_key &derived_pub) override
Definition: device_default.cpp:125
bool sc_secret_add(crypto::secret_key &r, const crypto::secret_key &a, const crypto::secret_key &b) override
Definition: device_default.cpp:233
POD_CLASS key_derivation
Definition: crypto.h:85
bool scalarmultBase(rct::key &aG, const rct::key &a) override
Definition: device_default.cpp:228
bool derive_public_key(const crypto::key_derivation &derivation, const std::size_t output_index, const crypto::public_key &pub, crypto::public_key &derived_pub) override
Definition: device_default.cpp:256
bool ecdhEncode(rct::ecdhTuple &unmasked, const rct::key &sharedSec, bool short_amount) override
Definition: device_default.cpp:356
bool mlsag_sign(const rct::key &c, const rct::keyV &xx, const rct::keyV &alpha, const size_t rows, const size_t dsRows, rct::keyV &ss) override
Definition: device_default.cpp:388
device_mode
Definition: device.hpp:94
epee::mlocked< tools::scrubbed< ec_scalar > > secret_key
Definition: crypto.h:69
bool close_tx(void) override
Definition: device_default.cpp:399
void unlock(void) override
Definition: device_default.cpp:99
bool derivation_to_scalar(const crypto::key_derivation &derivation, const size_t output_index, crypto::ec_scalar &res) override
Definition: device_default.cpp:246
Definition: rctTypes.h:125
crypto::secret_key generate_keys(crypto::public_key &pub, crypto::secret_key &sec, const crypto::secret_key &recovery_key=crypto::secret_key(), bool recover=false) override
Definition: device_default.cpp:238
bool scalarmultKey(rct::key &aP, const rct::key &P, const rct::key &a) override
Definition: device_default.cpp:223
const std::string get_name() const override
Definition: device_default.cpp:69
bool connect(void) override
Definition: device_default.cpp:80
bool open_tx(crypto::secret_key &tx_key) override
Definition: device_default.cpp:277
std::vector< key > keyV
Definition: rctTypes.h:88
bool conceal_derivation(crypto::key_derivation &derivation, const crypto::public_key &tx_pub_key, const std::vector< crypto::public_key > &additional_tx_pub_keys, const crypto::key_derivation &main_derivation, const std::vector< crypto::key_derivation > &additional_derivations) override
Definition: device_default.cpp:269
bool release() override
Definition: device_default.cpp:76
bool ecdhDecode(rct::ecdhTuple &masked, const rct::key &sharedSec, bool short_amount) override
Definition: device_default.cpp:361
void register_all(std::map< std::string, std::unique_ptr< device >> ®istry)
Definition: device_default.cpp:406
std::string name
Definition: device.hpp:85
bool init(void) override
Definition: device_default.cpp:73
device_type
Definition: device.hpp:100
POD_CLASS ec_scalar
Definition: crypto.h:61
std::vector< ctkey > ctkeyV
Definition: rctTypes.h:100
void lock(void) override
Definition: device_default.cpp:95
Definition: rctTypes.h:78
int b
Definition: base.py:1
Definition: subaddress_index.h:38
bool try_lock(void) override
Definition: device_default.cpp:97
Definition: device.cpp:38
Definition: device.hpp:83
bool verify_keys(const crypto::secret_key &secret_key, const crypto::public_key &public_key) override
Definition: device_default.cpp:217
POD_CLASS public_key
Definition: crypto.h:63
bool disconnect() override
Definition: device_default.cpp:83
bool mlsag_prepare(const rct::key &H, const rct::key &xx, rct::key &a, rct::key &aG, rct::key &aHP, rct::key &rvII) override
Definition: device_default.cpp:366
bool secret_key_to_public_key(const crypto::secret_key &sec, crypto::public_key &pub) override
Definition: device_default.cpp:260
Definition: cryptonote_basic.h:400
POD_CLASS hash8
Definition: hash.h:52
bool derive_secret_key(const crypto::key_derivation &derivation, const std::size_t output_index, const crypto::secret_key &sec, crypto::secret_key &derived_sec) override
Definition: device_default.cpp:251
POD_CLASS key_image
Definition: crypto.h:89
device_default & operator=(const device_default &device)=delete
device_type get_type() const override
Definition: device_default.hpp:64
crypto::secret_key get_subaddress_secret_key(const crypto::secret_key &sec, const cryptonote::subaddress_index &index) override
Definition: device_default.cpp:199
string a
Definition: MakeCryptoOps.py:15
int bool
Definition: stdbool.h:35
bool get_secret_keys(crypto::secret_key &viewkey, crypto::secret_key &spendkey) override
Definition: device_default.cpp:118
Definition: device_default.hpp:40
Definition: cryptonote_tx_utils.h:74
rct::key genCommitmentMask(const rct::key &amount_key) override
Definition: device_default.cpp:352
crypto::public_key get_subaddress_spend_public_key(const cryptonote::account_keys &keys, const cryptonote::subaddress_index &index) override
Definition: device_default.cpp:129
~device_default()
Definition: device_default.cpp:50
bool generate_output_ephemeral_keys(const size_t tx_version, const cryptonote::account_keys &sender_account_keys, const crypto::public_key &txkey_pub, const crypto::secret_key &tx_key, const cryptonote::tx_destination_entry &dst_entr, const boost::optional< cryptonote::account_public_address > &change_addr, const size_t output_index, const bool &need_additional_txkeys, const std::vector< crypto::secret_key > &additional_tx_keys, std::vector< crypto::public_key > &additional_tx_public_keys, std::vector< rct::key > &amount_keys, crypto::public_key &out_eph_public_key) override
Definition: device_default.cpp:283
bool set_name(const std::string &name) override
Definition: device_default.cpp:65
std::vector< crypto::public_key > get_subaddress_spend_public_keys(const cryptonote::account_keys &keys, uint32_t account, uint32_t begin, uint32_t end) override
Definition: device_default.cpp:145
bool generate_key_derivation(const crypto::public_key &pub, const crypto::secret_key &sec, crypto::key_derivation &derivation) override
Definition: device_default.cpp:242
bool generate_chacha_key(const cryptonote::account_keys &keys, crypto::chacha_key &key, uint64_t kdf_rounds) override
Definition: device_default.cpp:105
bool get_public_address(cryptonote::account_public_address &pubkey) override
Definition: device_default.cpp:115
bool set_mode(device_mode mode) override
Definition: device_default.cpp:87
int rows
Definition: crypto.h:73
device_default()
Definition: device_default.cpp:48