summaryrefslogtreecommitdiff
path: root/src/ringct
Commit message (Collapse)AuthorAgeFilesLines
* Fixed issues found by static analysisSChernykh2021-03-181-1/+1
| | | | | | - rolling_median: tried to free uninitialized pointer in a constructor - net_node.inl: erase-remove idiom was used incorrectly. remove_if doesn't actually remove elements, see http://cpp.sh/6fcjv - bulletproofs.cc: call to sizeof() instead of vector.size(), luckily it only impacts performance and not code logic there
* fix a couple bugs found by OSS-fuzzmoneromooo-monero2020-09-241-0/+6
| | | | | - index out of bounds when importing outputs - accessing invalid CLSAG data
* Merge pull request #6757luigi11112020-09-031-6/+9
|\ | | | | | | 6a37da8 threadpool: guard against exceptions in jobs, and armour plating (moneromooo-monero)
| * threadpool: guard against exceptions in jobs, and armour platingmoneromooo-monero2020-09-011-6/+9
| | | | | | | | | | Those would, if uncaught, exit run and leave the waiter to wait indefinitely for the number of active jobs to reach 0
* | ringct: fix CLSAG serialization after boost/epee changesmoneromooo-monero2020-08-282-1/+2
| | | | | | | | also fix a an assert message refering t MLSAG
* | CLSAG device supportSarang Noether2020-08-272-21/+16
| |
* | CLSAG optimizationsSarang Noether2020-08-272-132/+139
| |
* | Integrate CLSAGs into moneromoneromooo-monero2020-08-274-60/+265
| | | | | | | | They are allowed from v12, and MLSAGs are rejected from v13.
* | CLSAG signaturesSarang Noether2020-08-275-0/+277
| |
* | replace most boost serialization with existing monero serializationmoneromooo-monero2020-08-171-1/+28
|/ | | | | | | | | | | | | | | | | | | | | | This reduces the attack surface for data that can come from malicious sources (exported output and key images, multisig transactions...) since the monero serialization is already exposed to the outside, and the boost lib we were using had a few known crashers. For interoperability, a new load-deprecated-formats wallet setting is added (off by default). This allows loading boost format data if there is no alternative. It will likely go at some point, along with the ability to load those. Notably, the peer lists file still uses the boost serialization code, as the data it stores is define in epee, while the new serialization code is in monero, and migrating it was fairly hairy. Since this file is local and not obtained from anyone else, the marginal risk is minimal, but it could be migrated later if needed. Some tests and tools also do, this will stay as is for now.
* Update copyright year to 2020SomaticFanatic2020-05-065-5/+5
| | | | Update copyright year to 2020
* Merge pull request #6441luigi11112020-05-052-1/+7
|\ | | | | | | 613071f use memwipe on secret k/alpha values (moneromooo-monero)
| * use memwipe on secret k/alpha valuesmoneromooo-monero2020-04-152-1/+7
| | | | | | | | Reported by UkoeHB_ and sarang
* | Bulletproofs: verification speedupSarang Noether2020-04-143-8/+25
|/
* Merge pull request #6339luigi11112020-04-041-1/+1
|\ | | | | | | c61abf8 remove empty statements (shopglobal)
| * remove empty statementsInterchained2020-02-171-1/+1
| | | | | | | | Cleaning up a little around the code base.
* | Hash domain separationSarang Noether2020-04-011-2/+2
|/
* Merge pull request #6049luigi11112019-12-121-34/+27
|\ | | | | | | | | 45fd72b Updated paper references (SarangNoether) 277003f Minor prover simplification (SarangNoether)
| * Updated paper referencesSarang Noether2019-10-281-24/+22
| |
| * Minor prover simplificationSarang Noether2019-10-281-10/+5
| |
* | make d2h et al. constant-timeJethro Grassie2019-11-191-30/+8
|/
* cryptonote: add function to get weight from a pruned txmoneromooo-monero2019-10-111-0/+1
| | | | | The weight of the prunable data is deterministic from the unpruned data, so it can be determined from a pruned tx
* Merge pull request #5707luigi11112019-08-284-76/+53
|\ | | | | | | 3a0451a MLSAG speedup and additional checks (SarangNoether)
| * MLSAG speedup and additional checksSarang Noether2019-08-274-76/+53
| |
* | Merge pull request #5502luigi11112019-07-242-2/+0
|\ \ | |/ |/| | | | | 25a7cfd add a few checks where it seems appropriate (moneromooo-monero) 1a66a86 remove unused code (moneromooo-monero)
| * remove unused codemoneromooo-monero2019-04-292-2/+0
| |
* | serialization: check stream good flag at the endmoneromooo-monero2019-06-141-4/+4
|/ | | | just in case
* Merge pull request #5437Riccardo Spagni2019-04-161-29/+33
|\ | | | | | | acb68dba bulletproofs: cut down on keyV allocations (moneromooo-monero)
| * bulletproofs: cut down on keyV allocationsmoneromooo-monero2019-04-131-29/+33
| |
* | ringct: prevent use of full ringct signatures for more than one inputmoneromooo-monero2019-04-112-0/+3
|/
* Merge pull request #5332Riccardo Spagni2019-04-011-4/+4
|\ | | | | | | | | | | 7c440915 Add get_tx_proof support, needed for new sanity check (cslashm) 98fdcb2a Add support for V11 protocol with BulletProofV2 and short amount. New scheme key destination contrfol Fix dummy decryption in debug mode (cslashm) 3a981a33 Add application version compatibility check. (cslashm)
| * Add support for V11 protocol with BulletProofV2 and short amount.cslashm2019-03-281-4/+4
| | | | | | | | | | New scheme key destination contrfol Fix dummy decryption in debug mode
* | Merge pull request #5287Riccardo Spagni2019-04-011-3/+3
|\ \ | |/ |/| | | 1d14b3f0 ringct: fix capitalization for scaler mult (fuwa)
| * ringct: fix capitalization for scaler multfuwa2019-03-251-3/+3
| |
* | Update 2019 copyrightbinaryFate2019-03-055-5/+5
|/
* various: remove unused variablesmoneromooo-monero2019-03-041-3/+0
|
* Merge pull request #5082Riccardo Spagni2019-03-041-6/+22
|\ | | | | | | 1bc5f9fa bulletproofs: speed up vector_power_sum (moneromooo-monero)
| * bulletproofs: speed up vector_power_summoneromooo-monero2019-01-191-6/+22
| | | | | | | | found by sarang
* | ringct: remove unused senderPk from ecdhTuplemoneromooo-monero2019-01-221-3/+0
| | | | | | | | This was an early ringct field, which was never used in production
* | ringct: the commitment mask is now deterministicmoneromooo-monero2019-01-224-26/+51
| | | | | | | | | | | | saves space in the tx and is safe Found by knaccc
* | ringct: encode 8 byte amount, saving 24 bytes per outputmoneromooo-monero2019-01-224-11/+44
| | | | | | | | Found by knaccc
* | ringct: save 3 bytes on bulletproof sizemoneromooo-monero2019-01-221-1/+4
| | | | | | | | Found by luigi1111
* | add a bulletproof version, new bulletproof type, and rct configmoneromooo-monero2019-01-224-27/+36
|/ | | | This makes it easier to modify the bulletproof format
* Merge pull request #5050Riccardo Spagni2019-01-181-1/+0
|\ | | | | | | 07cb574c ringct: remove duplicate rv.mixRing = mixRing; in genRctSimple (stoffu)
| * ringct: remove duplicate rv.mixRing = mixRing; in genRctSimplestoffu2019-01-081-1/+0
| |
* | ringct: avoid repeated point conversionmoneromooo-monero2018-12-121-1/+10
|/
* Merge pull request #4927Riccardo Spagni2018-12-121-1/+2
|\ | | | | | | 6456cb41 Bulletproof: Initialize members in default construtor. (Tadeas Moravec)
| * Bulletproof: Initialize members in default construtor.Tadeas Moravec2018-12-011-1/+2
| | | | | | | | Fixing a build warning on g++ 7.3.0
* | Merge pull request #4921Riccardo Spagni2018-12-121-7/+24
|\ \ | | | | | | | | | ac665418 ringct: fix dummy bulletproofs on ledger in fake mode (moneromooo-monero)
| * | ringct: fix dummy bulletproofs on ledger in fake modemoneromooo-monero2018-11-301-7/+24
| |/ | | | | | | Ledger does some basic checks on them