mirror of
https://github.com/monero-project/monero.git
synced 2025-05-12 01:05:03 -04:00
ringct: use dummy bulletproofs when in fake mode, for speed
This commit is contained in:
parent
1e74586ee9
commit
d6937e373b
4 changed files with 49 additions and 12 deletions
|
@ -85,7 +85,7 @@ namespace hw {
|
|||
|
||||
public:
|
||||
|
||||
device() {}
|
||||
device(): mode(NONE) {}
|
||||
device(const device &hwdev) {}
|
||||
virtual ~device() {}
|
||||
|
||||
|
@ -115,7 +115,8 @@ namespace hw {
|
|||
virtual bool connect(void) = 0;
|
||||
virtual bool disconnect(void) = 0;
|
||||
|
||||
virtual bool set_mode(device_mode mode) = 0;
|
||||
virtual bool set_mode(device_mode mode) { this->mode = mode; return true; }
|
||||
virtual device_mode get_mode() const { return mode; }
|
||||
|
||||
virtual device_type get_type() const = 0;
|
||||
|
||||
|
@ -202,6 +203,9 @@ namespace hw {
|
|||
virtual 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) = 0;
|
||||
|
||||
virtual bool close_tx(void) = 0;
|
||||
|
||||
protected:
|
||||
device_mode mode;
|
||||
} ;
|
||||
|
||||
struct reset_mode {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue