aboutsummaryrefslogtreecommitdiff
path: root/tests/core_tests/rct.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-06-28 16:03:28 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-08-28 21:28:58 +0100
commit6d0e47148bc400ca6668860e162fe2f4ad8a3dac (patch)
treeb9d5d32dc975b8811cf992c2f86a75d00bb5c815 /tests/core_tests/rct.h
parentringct: fix size unit mismatch calling keccak (diff)
downloadmonero-6d0e47148bc400ca6668860e162fe2f4ad8a3dac.tar.xz
rct: add the tx prefix hash into the MLSAG
to protect the non-signatures parts of the tx from tampering.
Diffstat (limited to 'tests/core_tests/rct.h')
-rw-r--r--tests/core_tests/rct.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/core_tests/rct.h b/tests/core_tests/rct.h
index 1b79cbd8f..a93996566 100644
--- a/tests/core_tests/rct.h
+++ b/tests/core_tests/rct.h
@@ -249,3 +249,16 @@ struct gen_rct_tx_rct_add_vout : public gen_rct_tx_validation_base
};
template<> struct get_test_options<gen_rct_tx_rct_add_vout>: public get_test_options<gen_rct_tx_validation_base> {};
+// extra
+struct gen_rct_tx_pre_rct_altered_extra : public gen_rct_tx_validation_base
+{
+ bool generate(std::vector<test_event_entry>& events) const;
+};
+template<> struct get_test_options<gen_rct_tx_pre_rct_altered_extra>: public get_test_options<gen_rct_tx_validation_base> {};
+
+struct gen_rct_tx_rct_altered_extra : public gen_rct_tx_validation_base
+{
+ bool generate(std::vector<test_event_entry>& events) const;
+};
+template<> struct get_test_options<gen_rct_tx_rct_altered_extra>: public get_test_options<gen_rct_tx_validation_base> {};
+