aboutsummaryrefslogtreecommitdiff
path: root/src/device/device.hpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-01-06 19:49:52 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-02-12 12:16:45 +0000
commit6ba3a116377ffdf03e0c3580ef5a0c7c6743f69f (patch)
tree1202fb01fad655c724be61964570e6259f30918a /src/device/device.hpp
parentringct: save 3 bytes on bulletproof size (diff)
downloadmonero-6ba3a116377ffdf03e0c3580ef5a0c7c6743f69f.tar.xz
ringct: encode 8 byte amount, saving 24 bytes per output
Found by knaccc
Diffstat (limited to 'src/device/device.hpp')
-rw-r--r--src/device/device.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/device.hpp b/src/device/device.hpp
index cb9117650..b619a952b 100644
--- a/src/device/device.hpp
+++ b/src/device/device.hpp
@@ -188,8 +188,8 @@ namespace hw {
return encrypt_payment_id(payment_id, public_key, secret_key);
}
- virtual bool ecdhEncode(rct::ecdhTuple & unmasked, const rct::key & sharedSec) = 0;
- virtual bool ecdhDecode(rct::ecdhTuple & masked, const rct::key & sharedSec) = 0;
+ virtual bool ecdhEncode(rct::ecdhTuple & unmasked, const rct::key & sharedSec, bool short_amount) = 0;
+ virtual bool ecdhDecode(rct::ecdhTuple & masked, const rct::key & sharedSec, bool short_amount) = 0;
virtual bool add_output_key_mapping(const crypto::public_key &Aout, const crypto::public_key &Bout, const bool is_subaddress, const size_t real_output_index,
const rct::key &amount_key, const crypto::public_key &out_eph_public_key) = 0;