From 98fdcb2aa5a1c64bad4080ad00e4bd7eb647dc74 Mon Sep 17 00:00:00 2001 From: cslashm Date: Tue, 11 Dec 2018 10:20:21 +0100 Subject: Add support for V11 protocol with BulletProofV2 and short amount. New scheme key destination contrfol Fix dummy decryption in debug mode --- src/device/device_default.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/device/device_default.cpp') diff --git a/src/device/device_default.cpp b/src/device/device_default.cpp index 999fbc22f..db0827c22 100644 --- a/src/device/device_default.cpp +++ b/src/device/device_default.cpp @@ -349,6 +349,10 @@ namespace hw { return true; } + rct::key device_default::genCommitmentMask(const rct::key &amount_key) { + return rct::genCommitmentMask(amount_key); + } + bool device_default::ecdhEncode(rct::ecdhTuple & unmasked, const rct::key & sharedSec, bool short_amount) { rct::ecdhEncode(unmasked, sharedSec, short_amount); return true; -- cgit v1.2.3 From 7c44091541ece919de11754a62c3070f7c2ad948 Mon Sep 17 00:00:00 2001 From: cslashm Date: Thu, 21 Mar 2019 17:22:43 +0100 Subject: Add get_tx_proof support, needed for new sanity check Enhance debug info --- src/device/device_default.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/device/device_default.cpp') diff --git a/src/device/device_default.cpp b/src/device/device_default.cpp index db0827c22..dc06ce237 100644 --- a/src/device/device_default.cpp +++ b/src/device/device_default.cpp @@ -37,7 +37,6 @@ #include "cryptonote_core/cryptonote_tx_utils.h" #include "ringct/rctOps.h" -#include "log.hpp" #define ENCRYPTED_PAYMENT_ID_TAIL 0x8d #define CHACHA8_KEY_TAIL 0x8c @@ -273,6 +272,11 @@ namespace hw { /* ======================================================================= */ /* TRANSACTION */ /* ======================================================================= */ + void device_default::generate_tx_proof(const crypto::hash &prefix_hash, + const crypto::public_key &R, const crypto::public_key &A, const boost::optional &B, const crypto::public_key &D, const crypto::secret_key &r, + crypto::signature &sig) { + crypto::generate_tx_proof(prefix_hash, R, A, B, D, r, sig); + } bool device_default::open_tx(crypto::secret_key &tx_key) { cryptonote::keypair txkey = cryptonote::keypair::generate(*this); -- cgit v1.2.3