Replies (2)

ofrnxmr noted gingeropolous has RAM & sync speedups (daemon) worth looking at; gingeropolous linked and described using stressnet as a testbed for coding agents/optimizations, feeding rucknium’s vuln gist to an unrestricted LLM to try to exploit them. Discussion covered caching-related vulns from the gist (mempool vs block processing, Liquid Network rangeproof cache, MWEB), the desirability of #10916 in-tree for audit, formal verification bridges (Lean), and differences between math proofs and optimized code. gingeropolous is organizing the README to show per-commit optimization gains. Post-meeting, gingeropolous noted the monerodato table is more useful; ack-j shared Opus-identified performance suggestions and code. ofrnxmr: Ginger has some ram & sync speedups probably worth looking ay jeffro256: Nothing from me on this at the moment ofrnxmr: At jeffro256: Are those available somewhere ? ofrnxmr: Daemon* gingeropolous: gingeropolous: ive been using stressnet as a testing bed for coding agents to find optimizations. I used rucknium:monero.social 's vuln. gist as an input to a unrestricted llm (glm 5.3) to try to exploit any of the optimizations. rucknium: From my lips to the bot's ears gingeropolous: feed the great entropy machines rucknium: "Simplifications" or "optimizations" of code seems to be a cause of 2 of the 8 counterfeiting vulnerabilities. jpk68: Have any of these had to do with caching? rucknium: Sort of. Different behavior for mempool and complete block processing was the cause of 2 of the vulnerabilities. rucknium: Oh, and the Liquid Network one involved something to do with caching jpk68: Does that include the MWEB one? I forgot rucknium: Yes rucknium: rucknium: > On September 6, 2026 at 13:53 UTC (Liquid block 4,050,336), an attacker exploited a vulnerability in Elements' rangeproof verification cache, allowing a single transaction to pass validation even though its output value was not backed by its inputs. gingeropolous: , sort of? though the caching that it worked on were related to LMDB stuff to try and speed up HDD sync gingeropolous: perhaps thats a different caching jeffro256: Which is one reason why we want #10916 to be in-tree for the audit rucknium: Is there anything like a Lean to normal-code verification bridge? Like a mathematics proofs is formally verified in Lean, then some bridge machine-verifies that code faithfully executes what's proven in the Lean code? jeffro256: Can Lean describe cache invalidation and database consistency ? rucknium: Simplifications and optimizations can make the mathematics look different from code. That happens often in statistics, I know. For example, all the proofs with Ordinary Least Squares regression use explicit matrix inversion, but code almost always uses the QR decomposition for speed and numerical stability reasons. rucknium: Of course, in statistics usually your data isn't trying to actively attack you. gingeropolous: im trying to get the readme organized better such that each commit shows how much optimization is brings compared to stock. numbers seem all jumbly to me currently rucknium: More on this topic? gingeropolous: , the main table should be more useful now, so you can see how much optimization each commit / patch does ack-j: I saw performance improvements were discussed. I had opus identify obvious performance issues a while ago and it had some good suggestions. I’ll share the results here for anyone that wants to PR them since I dont have time. ack-j: https://mrelay.p2pool.observer/m/matrix.org/FqMokAvavrhzvFHVofkvSoTW.pdf (monerod-perf-fixes.pdf) ack-j: All code is here View quoted note →
↑