jeffro256
edea8505db
general: replace auto_scope_leave_caller with scope_guard
...
And replace unused inclusions of misc_language.h
2026-07-15 19:54:58 -05:00
j-berman
79a996be02
crypto: torsion clearing for FCMP++
2026-07-07 14:32:13 -07:00
tobtoht
23372d12f5
Merge pull request #10108
...
ede4d7f RingCT crypto: 6x faster zero commit (j-berman)
ACKs: UkoeHB, jeffro256
2026-07-03 11:57:32 +00:00
Thomas
fecef767c9
Fix spelling typos in comments and string literals
2026-06-27 09:53:48 +02:00
jeffro256
589dd0a973
ringct: merge decodeRct and decodeRctSimple
2026-06-05 12:37:00 -05:00
jpk68
5b34e138d6
src: fix formatting of copyright comments
2026-05-25 20:08:02 -04:00
Thomas
2c327aa325
fix spelling in comments and docs
2026-05-13 21:20:05 +02:00
jeffro256
2210f85189
ringct: make h2d fallible
...
One theoretically could have crafted a "long amount" (pre-v10) RingCT transaction
with non-0 padding bytes in the decoded amount which fails receiver scanning, but
passes third-party wallet proof checking.
2026-05-01 19:00:33 -05:00
j-berman
ede4d7faef
RingCT crypto: 6x faster zero commit
2026-02-17 15:40:55 -08:00
jeffro256
06b74ae3f5
ringct & cryptonote_basic: detangle dependencies
...
`libringct` was linking against `libcryptonote_basic` for a single, one-line convenience function: `cryptonote::get_blob_hash`.
Since `cryptonote_basic.h` includes `rctTypes.h`, this one function effectively made an explicit circular dependency between
the two libraries. `cryptonote_format_utils.cpp` was including header `rctSigs.h` from `libringct`, when only `rctOps.h` from
`libringct_basic` needed to be included. `libcryptonote_basic` wasn't explictly linking against `libringct_basic` nor
`libringct` like it should have. And `libblockchain_db` wasn't linking against `libcryptonote_basic` like it should have. We
can also downgrade `libblockchain_db`'s dependency on `libringct` to `libringct_basic`.
2025-05-07 19:52:24 -05:00
tobtoht
9570c1a216
Merge pull request #9717
...
ff4e86dc4 ringct: remove unused range proof types and fix serialization bug (jeffro256)
2025-02-13 17:37:47 +00:00
jeffro256
9386f87a78
ringct: remove inclusion of cryptonote_format_utils.h in rctOps.cpp
...
This vestigial include line breaks some downstream builds
2025-01-31 16:04:08 -06:00
jeffro256
ff4e86dc4f
ringct: remove unused range proof types and fix serialization bug
2025-01-18 23:40:19 -06:00
jeffro256 and j-berman
c7dce222f8
ringct: add operator!= for key
...
Part of upstreaming Seraphis/Carrot
Co-authored-by: j-berman <justinberman@protonmail.com >
2024-11-06 03:01:48 -06:00
copyCat
341771ac3e
copyright: bump to 2024
2024-05-21 16:29:33 +00:00
luigi1111
689381dff9
Merge pull request #9194
...
9d101d5 serialization: protect blob serialization from undefined behavior (jeffro256)
2024-05-20 23:12:28 -05:00
jeffro256
c4e1c5a640
ringct: fix trunc_amount field name change
...
Caused in commit 05231400ce , PR #9035 .
2024-03-11 20:21:22 -05:00
jeffro256
9d101d5ea0
serialization: protect blob serialization from undefined behavior
...
There is currently no compiler protection when someone tries to
do (for example) `BLOB_SERIALIZER(std::vector<int>)`. You just
get runtime allocation errors. This has already eaten up dev time
before, so this PR adds a static assertion that the type must be
trivially copyable, as defined by the C++ standard. Types can
override this if applicable if they use `BLOB_SERIALIZER_FORCED`.
2024-03-10 14:15:48 -05:00
Lee *!* Clagett
ed50938af4
Zero initialize rctSigBase elements
2024-02-06 12:47:47 -05:00
luigi1111
c03e404980
Merge pull request #9035
...
0523140 ringct: make
ctSigBase serialization follow strict aliasing rule (jeffro256)
2023-11-06 09:28:18 -05:00
jeffro256
05231400ce
ringct: make rctSigBase serialization follow strict aliasing rule
...
Accessing an object of type `char` thru an lvalue of type `crypto::hash8` is undefined behavior.
https://developers.redhat.com/blog/2020/06/03/the-joys-and-perils-of-aliasing-in-c-and-c-part-2
2023-10-23 16:28:02 -05:00
jeff
80b5bf8b3d
gcc: fix uninitialized constructor warnings
2023-10-16 16:48:27 -05:00
luigi1111
9bf06ea75d
Merge pull request #8698
...
5b4fea7 Copyright: Update to 2023 (mj-xmr)
2023-04-25 11:12:56 -04:00
luigi1111
ecf0d01aa2
Merge pull request #8679
...
b986421 adjust multiexp pippenger_cached_data for better reusability (koe)
2023-04-25 11:10:27 -04:00
Jeffrey Ryan
7159f92a57
verRctNonSemanticsSimpleCached: fix fragility
2023-03-17 18:45:35 -05:00
mj-xmr and mj-xmr
5b4fea72cf
Copyright: Update to 2023
...
Co-authored-by: plowsof <plowsof@protonmail.com >
extra files
2023-01-16 13:00:18 +01:00
luigi1111
50aa0e8b7f
Merge pull request #8675
...
1a568de Cache successful erRctNonSemanticsSimple calls (SChernykh)
2023-01-11 12:27:40 -05:00
koe
b1bce857c9
miscellaneous crypto updates
2023-01-03 16:50:08 -06:00
SChernykh
1a568deacb
Cache successful verRctNonSemanticsSimple calls
2022-12-20 22:16:39 +01:00
koe
b986421b4f
adjust multiexp pippenger_cached_data for better reusability
2022-12-16 11:48:57 -06:00
SChernykh
28f25c0dbc
Second thread pool for IO
2022-09-20 09:59:58 +02:00
anon and koe
c7b2944f89
multisig: fix critical vulnerabilities in signing
2022-06-30 12:56:40 -05:00
Crypto City and moneromooo-monero
353cd5355e
wallet2: speedup large tx construction: no pointless clsag generation
...
4.1 seconds -> 3.3 seconds on a test case
2022-05-13 17:43:21 +00:00
luigi1111
d58ea37a8d
Merge pull request #8302
...
41da2fe Update copyright to 2022 for Hardfork files (Akrit)
2022-05-10 16:56:39 -05:00
luigi1111
fbd1f1e476
Merge pull request #8293
...
4f08bcd refactor(bp+): save one inversion, use sc_muladd (Dusan Klinec)
2022-05-10 16:51:59 -05:00
Akrit and mj-xmr
41da2fe6f3
Update copyright to 2022 for Hardfork files
...
Update Makefile and LICENSE
2022-04-29 11:12:36 +02:00
Dusan Klinec
4f08bcd800
refactor(bp+): save one inversion, use sc_muladd
2022-04-26 13:37:11 +02:00
Luke Parker
baee2c06ec
Preserve commitment format inside transactions
2022-04-21 18:58:47 -04:00
mj-xmr
4db6aed98c
CMake: Add missing headers via monero_find_all_headers macro
2022-04-06 08:12:44 +02:00
luigi1111
0eb1b570b6
Merge pull request #8197
...
da9aa1f Copyright: Update to 2022 (mj-xmr)
2022-04-06 00:08:53 -04:00
moneromooo-monero
5acdd0e2cb
bulletproofs+: some minor cleanup from vtnerd's review
2022-04-05 18:50:23 +00:00
moneromooo-monero
4c94cfecfc
store outPk/8 in the tx for speed
...
It avoids dividing by 8 when deserializing a tx, which is a slow
operation, and multiplies by 8 when verifying and extracing the
amount, which is much faster as well as less frequent
2022-04-05 18:50:22 +00:00
moneromooo-monero
a345060ace
ringct: port some of vtnerd's review changes from BP+ to BP
2022-04-05 18:50:21 +00:00
moneromooo-monero
75bd004f4e
ringct: a few minor optimizations from review
2022-04-05 18:50:21 +00:00
moneromooo-monero
a0d80b1f95
plug bulletproofs plus into consensus
2022-04-05 18:50:17 +00:00
Sarang Noether and moneromooo-monero
b535d662b9
Updates from security audit
...
https://suyash67.github.io/homepage/assets/pdfs/bulletproofs_plus_audit_report_v1.1.pdf
2022-04-04 08:23:21 +00:00
Sarang Noether and moneromooo-monero
b7713cce26
Precompute initial transcript hash
2022-04-04 08:23:21 +00:00
Sarang Noether and moneromooo-monero
bd27debb2d
Bulletproofs+
2022-04-04 08:23:21 +00:00
mj-xmr
da9aa1f7f8
Copyright: Update to 2022
2022-03-04 06:59:20 +01:00
koe
c36ea26e5c
fix ge_p3_is_point_at_infinity(), which is evaluating field elements that haven't been reduced by the field order
2022-01-25 07:14:46 -06:00