aboutsummaryrefslogtreecommitdiff
path: root/src/device_trezor/trezor
diff options
context:
space:
mode:
authorDusan Klinec <dusan.klinec@gmail.com>2018-12-18 22:17:16 +0100
committerDusan Klinec <dusan.klinec@gmail.com>2018-12-18 22:20:18 +0100
commitc5e0539cb53e26c70427c456c8e121cc7bc89989 (patch)
tree7b0965b7010a844898c1b7b4e5b6c2032561149e /src/device_trezor/trezor
parentMerge pull request #4927 (diff)
downloadmonero-c5e0539cb53e26c70427c456c8e121cc7bc89989.tar.xz
device/trezor: store tx_prefix_hash in tx key aux
- tx_prefix_hash is required in the key derivation for decryption of the tx keys
Diffstat (limited to 'src/device_trezor/trezor')
-rw-r--r--src/device_trezor/trezor/protocol.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/device_trezor/trezor/protocol.cpp b/src/device_trezor/trezor/protocol.cpp
index c4a92426c..13506a67f 100644
--- a/src/device_trezor/trezor/protocol.cpp
+++ b/src/device_trezor/trezor/protocol.cpp
@@ -877,6 +877,9 @@ namespace tx {
valueS.SetString(m_ct.enc_salt2.c_str(), m_ct.enc_salt2.size());
json.AddMember("salt2", valueS, json.GetAllocator());
+ valueS.SetString(m_ct.tx_prefix_hash.c_str(), m_ct.tx_prefix_hash.size());
+ json.AddMember("tx_prefix_hash", valueS, json.GetAllocator());
+
valueS.SetString(m_ct.enc_keys.c_str(), m_ct.enc_keys.size());
json.AddMember("enc_keys", valueS, json.GetAllocator());