diff options
author | luigi1111 <luigi1111w@gmail.com> | 2022-04-19 22:14:03 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2022-04-19 22:14:03 -0500 |
commit | 96758a7d05bb1747951ffac87a307d592f882655 (patch) | |
tree | 20900ece7aacd538bb3bacba72e7592e03bd915f /tests/crypto/main.cpp | |
parent | Merge pull request #8211 (diff) | |
parent | Add view tags to outputs to reduce wallet scanning time (diff) | |
download | monero-96758a7d05bb1747951ffac87a307d592f882655.tar.xz |
Merge pull request #8061
ea87b30 Add view tags to outputs to reduce wallet scanning time (j-berman)
Diffstat (limited to '')
-rw-r--r-- | tests/crypto/main.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/crypto/main.cpp b/tests/crypto/main.cpp index 59a2a7d77..045ffc08d 100644 --- a/tests/crypto/main.cpp +++ b/tests/crypto/main.cpp @@ -260,7 +260,6 @@ int main(int argc, char *argv[]) { goto error; } } else if (cmd == "check_ge_p3_identity") { - cerr << "Testing: " << cmd << endl; public_key point; bool expected_bad, expected_good, result_badfunc, result_goodfunc; get(input, point, expected_bad, expected_good); @@ -269,6 +268,15 @@ int main(int argc, char *argv[]) { if (expected_bad != result_badfunc || expected_good != result_goodfunc) { goto error; } + } else if (cmd == "derive_view_tag") { + key_derivation derivation; + size_t output_index; + view_tag expected, actual; + get(input, derivation, output_index, expected); + derive_view_tag(derivation, output_index, actual); + if (expected != actual) { + goto error; + } } else { throw ios_base::failure("Unknown function: " + cmd); } |