diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-12-01 15:38:42 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-12-01 15:40:59 +0000 |
commit | 02b8051339547a5ad33e173727ae6ea87fc70781 (patch) | |
tree | afe63df8636ad9a29cda3dafec867b788ac96079 /tests/unit_tests/bulletproofs.cpp | |
parent | Merge pull request #6174 (diff) | |
download | monero-02b8051339547a5ad33e173727ae6ea87fc70781.tar.xz |
unit_tests: remove invalid bulletproofs unit test
It was intended to check a case which is actually valid (0 gamma),
but was actually duplicating the bad amount test.
Reported by WhatDo_ on IRC.
Diffstat (limited to '')
-rw-r--r-- | tests/unit_tests/bulletproofs.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tests/unit_tests/bulletproofs.cpp b/tests/unit_tests/bulletproofs.cpp index 760769551..a73b80848 100644 --- a/tests/unit_tests/bulletproofs.cpp +++ b/tests/unit_tests/bulletproofs.cpp @@ -179,15 +179,6 @@ TEST(bulletproofs, invalid_31) ASSERT_FALSE(rct::bulletproof_VERIFY(proof)); } -TEST(bulletproofs, invalid_gamma_0) -{ - rct::key invalid_amount = rct::zero(); - invalid_amount[8] = 1; - rct::key gamma = rct::zero(); - rct::Bulletproof proof = bulletproof_PROVE(invalid_amount, gamma); - ASSERT_FALSE(rct::bulletproof_VERIFY(proof)); -} - static const char * const torsion_elements[] = { "c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa", |