aboutsummaryrefslogtreecommitdiff
path: root/src/testing/test_exchange_api_conflicts.c
AgeCommit message (Collapse)Author
2023-12-23activated tests for conflict wrt denom and age commitmentÖzgür Kesim
In src/testing/test_exchange_api_conflicts.c we test the conflicts when two or more coins with the same private key have either different denominations or different age restrictions. Note that the test for different denominations does not fully work for CS: Even with the same master secret, the private keys also differ due to the random choice of the nonce. Fixes #7276
2023-12-23[wip, #7267] added test to detect age commitment conflict on depositÖzgür Kesim
A new testcase is added to detect same coin_pub with different age commitments during deposit.
2023-12-22[wip, #7267] added first test to detect denom-conflict on depositÖzgür Kesim
The tests have been extended to include conflict tests, see test_exchange_api_conflicts.c The first implemented test withdraws three coins with different denominations, but using the same private key. It deposits the first coin successfully, but on deposit of the second coin it receives 409 and the correct response details. However, the test only seems to work for RSA, not CS! I've disabled test_exchange_conflicts_cs in the Makefile for now so that the builder passes. TBC...