summaryrefslogtreecommitdiff
path: root/tests/unit_tests/ringct.cpp
Commit message (Collapse)AuthorAgeFilesLines
* rct amount key modified as per luigi1111's recommendationsmoneromooo-monero2016-08-281-8/+8
| | | | | | | | | This allows the key to be not the same for two outputs sent to the same address (eg, if you pay yourself, and also get change back). Also remove the key amounts lists and return parameters since we don't actually generate random ones, so we don't need to save them as we can recalculate them when needed if we have the correct keys.
* rct: rework v2 txes into prunable and non prunable datamoneromooo-monero2016-08-281-27/+28
| | | | Nothing is pruned, but this allows easier changes later.
* rct: rework the verification preparation processmoneromooo-monero2016-08-281-4/+4
| | | | | | | | | | The whole rct data apart from the MLSAGs is now included in the signed message, to avoid malleability issues. Instead of passing the data that's not serialized as extra parameters to the verification API, the transaction is modified to fill all that information. This means the transaction can not be const anymore, but it cleaner in other ways.
* rct: make the amount key derivable by a third party with the tx keymoneromooo-monero2016-08-281-14/+29
| | | | Scheme design from luigi1114.
* tests: add basic tests for simple rct apimoneromooo-monero2016-08-281-44/+378
|
* integrate simple rct apimoneromooo-monero2016-08-281-5/+59
|
* rct: add the tx prefix hash into the MLSAGmoneromooo-monero2016-08-281-5/+5
| | | | to protect the non-signatures parts of the tx from tampering.
* ringct: do not serialize what can be reconstructedmoneromooo-monero2016-08-281-2/+2
| | | | | | The mixRing (output keys and commitments) and II fields (key images) can be reconstructed from vin data. This saves some modest amount of space in the tx.
* tests: test for ringct rctSig data sizesmoneromooo-monero2016-08-281-3/+44
| | | | ie, more data or less data than expected in various fields
* ringct: allow no outputs, and add tests for this and feesmoneromooo-monero2016-08-281-31/+75
|
* ringct: txn fee stuffShen Noether2016-08-281-0/+61
|
* tests: new ringct test for checking H2 valuesShen Noether2016-08-281-0/+11
| | | | Ported from Shen's RingCT repo
* tests: zero inputs/outputs are in fact supposed to be acceptedmoneromooo-monero2016-08-281-14/+14
|
* ringct: add a test for prooveRange being non deterministicmoneromooo-monero2016-08-281-0/+9
|
* tests: more ringct range proof testsmoneromooo-monero2016-08-281-0/+245
|
* tests: add some more ringct building block testsmoneromooo-monero2016-08-281-1/+50
|
* tests: add Shen Noether's basic ringct testsmoneromooo-monero2016-08-281-0/+206