17:00:29 <m-relay> <r​ucknium:monero.social> Meeting time! https://github.com/monero-project/meta/issues/1159
17:00:39 <m-relay> <r​ucknium:monero.social> 1) Greetings
17:00:52 <m-relay> <c​haser:monero.social> hello
17:00:53 <m-relay> <s​yntheticbird:monero.social> Hi
17:00:57 <rbrunner> Hello
17:01:11 <m-relay> <s​agewilder:unredacted.org> Hello
17:01:33 <m-relay> <j​berman:monero.social> *waves*
17:02:25 <m-relay> <j​effro256:monero.social> Howdy
17:04:01 <m-relay> <r​ucknium:monero.social> 2) Updates. What is everyone working on?
17:04:41 <m-relay> <r​ucknium:monero.social> me: Some more analysis of subnet deduplication peer selection against spy nodes, preparing all OSPEAD-related documents and code for public release (expected tomorrow), and learning Rust.
17:05:17 <m-relay> <j​berman:monero.social> Got FCMP++ txs validating at consensus, the FCMP++ optimization competition details are ready for preliminary review, started re-reviewing 9135
17:05:59 <m-relay> <j​berman:monero.social> FCMP++ dev source (I intend to merge this code with jeffro256  's latest): https://github.com/j-berman/monero/tree/73f0e9202ab6397f43babd4c5c129852d68f8f30
17:06:00 <m-relay> <j​berman:monero.social> FCMP++ competition: https://github.com/j-berman/fcmp-plus-plus-optimization-competition
17:06:21 <m-relay> <s​yntheticbird:monero.social> Me: Uncovered the reason of the levin protocol header signature. It's a reference to an episode of Futurama series
17:07:22 <m-relay> <j​effro256:monero.social> Me: Working on debugging release issues and review
17:08:25 <rbrunner> Bender's Nightmare, mentioned in a comment somewhere
17:09:23 <m-relay> <r​ucknium:monero.social> By the way, as a reminder, anyone can suggest MRL agenda items. Just ping me here or in #monero-research-lounge:monero.social , or leave a comment on one of the MRL agenda GitHub issues. I have been composing the agenda based on my own judgement recently.
17:09:28 <m-relay> <r​ucknium:monero.social> 3) Prize contest to optimize some FCMP cryptography code. https://github.com/j-berman/fcmp-plus-plus-optimization-competition
17:11:49 <m-relay> <j​berman:monero.social> So main things I did since last week were: 1) settled on a method of scoring helioselene, weighting specific arithmetic operations as a % of the final score, 2) fixed an issue in the wasm-cycles counter used to check for constant time, 3) updated the README's
17:12:44 <m-relay> <j​berman:monero.social> On 1) I got flamegraphs for prove/verify/hash_grow (weighting much more heavily on the latter 2, because prove's flamegraph is heavily dominated by ec-divisors) to help determine how much to weigh each op
17:13:07 <m-relay> <j​berman:monero.social> That approach / tje weights could use another set of eyes for sure
17:13:31 <m-relay> <j​berman:monero.social> Link to the weights: https://github.com/j-berman/fcmp-plus-plus-optimization-competition/tree/b84d9ecf922f9e1a90ab4dae3206a685622e2c69/helioselene-contest#how-your-helioselene-score-is-calculated
17:14:43 <rbrunner> Just curious: How hard, according to experience, will it be to achieve constant time execution for the submitted code?
17:15:20 <rbrunner> And I wondered whether people may overlook that requirement and then stumble over it
17:15:48 <m-relay> <j​berman:monero.social> That is an important requirement that I should highlight more significantly
17:16:16 <rbrunner> Non-negotiable even? Let's say somebody is twice as fast, but not contant time ...
17:16:59 <m-relay> <r​ucknium:monero.social> Why is constant-time so important in this application? Just curious.
17:17:05 <m-relay> <j​berman:monero.social> I don't know how to answer "how hard" but you can see how the current reference code uses ops like ct_eq and conditional_select to achieve constant time
17:17:27 <m-relay> <s​yntheticbird:monero.social> afaik ocnstant-time is only useful for construction. Nodes that only proceed to verification don't need constant timeness
17:17:47 <rbrunner> Sounds logical
17:17:58 <m-relay> <j​berman:monero.social> kayabanerve: mentioned at one point how it would be relatively trivial to speed up the code by like 300% if non-constant time code was allowed fwiw
17:18:04 <m-relay> <j​effro256:monero.social> Do the point adds include doubling ? There might be different techniques for specifically doubling , I don't know if you want to change the weight based on that
17:18:45 <rbrunner> If those 300% are true, that will be quite some temptation
17:19:01 <m-relay> <r​ucknium:monero.social> I am tempted likewise rbrunner :D
17:19:07 <m-relay> <s​yntheticbird:monero.social> same
17:19:24 <m-relay> <s​yntheticbird:monero.social> jberman please shatter our dream or we are gonna advocate two implementations :P
17:19:39 <m-relay> <s​yntheticbird:monero.social> one for proving, one for verifying
17:19:41 <m-relay> <j​berman:monero.social> Constant time is meant to prevent side channel/timing attacks by measuring how long specific functions run, which is a vector to recover the private key material
17:20:02 <m-relay> <s​yntheticbird:monero.social> one for proving that is constant-time, and one for verifying that is variable time
17:20:03 <rbrunner> Maybe even submit two different algorithms, with one big "if (construction) else if (verifying)" around it
17:21:09 <rbrunner> Yeah, that side channel/timing attack story sure is important, but alas, when veryfing transactions probably not important, right?
17:21:20 <m-relay> <j​berman:monero.social> point muls do. current point add is composed of field mul/add/sub
17:21:55 <m-relay> <j​berman:monero.social> https://github.com/j-berman/fcmp-plus-plus-optimization-competition/blob/b84d9ecf922f9e1a90ab4dae3206a685622e2c69/helioselene-contest/helioselene-contest-src/src/point.rs#L82-L139
17:22:07 <m-relay> <j​berman:monero.social> it's dominated mostly by field mul
17:22:16 <m-relay> <j​berman:monero.social> like 70% IIRC
17:23:28 <m-relay> <j​berman:monero.social> it's true, constant time isn't necessary for verifying. That 300% figure was for ec-divisors prove fwiw
17:25:39 <rbrunner> Too bad
17:26:10 <rbrunner> But well, maybe somebody comes up with an ingenious approach to making constant-time execution code
17:26:31 <rbrunner> With much less penalty
17:27:41 <m-relay> <j​berman:monero.social> kayabanerve has explicitly expressed a lack of interest in maintaining/reviewing multiple implementations. Makes most sense to start with constant time anyway
17:29:45 <m-relay> <r​ucknium:monero.social> Speaking of kayabaNerve, last week he said "FYI I will explicitly and publicly opt-out of being a judge, as I already have, yet with the additional comment I may enter (publicly or anonymously) as a contestant in the above proposed contest." https://libera.monerologs.net/monero-research-lab/20250213#c495472
17:30:12 <rbrunner> Oh
17:30:49 <m-relay> <s​yntheticbird:monero.social> \> create a contest
17:30:50 <m-relay> <s​yntheticbird:monero.social> \> abandon the contest
17:30:52 <m-relay> <s​yntheticbird:monero.social> \> contest is picked up by someone else
17:30:54 <m-relay> <s​yntheticbird:monero.social> \> "i will participate to the contest"
17:30:58 <m-relay> <j​berman:monero.social> Thinking by next week's meeting we can get sign-offs on the competition details, then move forward with timeline etc.
17:31:28 <m-relay> <s​yntheticbird:monero.social> jk. obviously not claiming this was what he planned, i'm still happy by this turn of event, im sure kayabanerve will cook up something nice
17:31:28 <rbrunner> You forget the line with "Profit!!!"
17:31:58 <rbrunner> Yeah, bad joke, I don't want to insinuate anything of this was planned
17:32:17 <m-relay> <j​berman:monero.social> I mean would be great if kayaba wants to jump in too
17:32:41 <rbrunner> Hmmm. Maybe that makes other potential contestants think twice, worst case?
17:33:27 <rbrunner> We will see.
17:33:50 <m-relay> <c​haser:monero.social> rbrunner: it's a risk.
17:34:49 <m-relay> <j​berman:monero.social> I don't see a significantly better option on the table than this competition to achieve the goal of faster code
17:35:17 <rbrunner> Sure. Is this, by the way, the first contest ever for Monero? Might be, no?
17:35:52 <rbrunner> The logo contest at the very start does not count :)
17:35:56 <m-relay> <r​ucknium:monero.social> IMHO, there are some ethics issues here. Important enough to bar kayaba from participating? I don't know.
17:35:56 <m-relay> <j​berman:monero.social> I think so, I don't recall any past similar contests
17:36:05 <m-relay> <s​yntheticbird:monero.social> May I recommend some delay between the announcement of the contest and opening the contest?
17:36:31 <m-relay> <s​yntheticbird:monero.social> I'm sure the "cryptography" environment isn't as "excited" as average monero fan, and needs some time to get to the hear of everyone
17:37:07 <m-relay> <r​ucknium:monero.social> Ready to move onto the next agenda item, or more to discuss on this?
17:38:00 <m-relay> <c​haser:monero.social> what do you have in mind?
17:38:02 <m-relay> <j​berman:monero.social> +1 to announcement first, delay, then contest opens
17:38:45 <m-relay> <r​ucknium:monero.social> chaser: Self-dealing is the possible ethics issue
17:39:29 <m-relay> <r​ucknium:monero.social> Of course, the potential pool of programmers who could/would participate is probably small, so hard to avoid a "self" in there.
17:40:20 <m-relay> <s​yntheticbird:monero.social> Oh also, I completely forgot. There should be a chinese translation of the contest. China have a much higher pool than the rest of the world.
17:40:39 <m-relay> <s​yntheticbird:monero.social> No i'm not shilling Xin jin ping, our overlord
17:41:21 <m-relay> <c​haser:monero.social> Rucknium you mean Kayaba raising the funds, writing the code, and then entering the contest to improve the code and winning part the funds he raised?
17:41:37 <m-relay> <r​ucknium:monero.social> More, setting the contest rules
17:42:00 <m-relay> <r​ucknium:monero.social> Which writing the code in the first place is part of
17:43:38 <m-relay> <j​berman:monero.social> Perhaps kayaba can provide more color/insight into a decision to participate. I would give a few days for a chance to respond
17:44:12 <m-relay> <c​haser:monero.social> I don't know. for now I'm not entertaining this possibility.
17:44:29 <m-relay> <r​ucknium:monero.social> 4) FCMP research progress status. https://cryptpad.fr/sheet/#/2/sheet/view/yPVIUywwA9-deE9VF6GYm9bXbPdCerdST3UDEEfBxcM/embed/
17:44:48 <rbrunner> Sounds a bit far-fetched alright. I think we will have other, much more surprising problems with the contest
17:45:40 <m-relay> <r​ucknium:monero.social> I wanted to bring this up since we haven't talked about it in about a month and a half. Anything we can be doing now to prepare for the next steps of protocol proving and code auditing?
17:46:10 <m-relay> <r​ucknium:monero.social> And is the sheet I linked up-to-date?
17:47:21 <m-relay> <j​berman:monero.social> Sheet is up to date AFAIK. Last I heard, Veridise is making solid progress on their leg of EC divisors R1CS. I haven't heard anything on CS progress. I will get an update
17:47:53 <m-relay> <r​ucknium:monero.social> Thanks, jberman
17:48:25 <m-relay> <j​berman:monero.social> Perhaps we could bring in a new 3rd party to start on some impl audits. There is also the torsion check review that is isolated and can be reviewed by anyone unfamiliar with the rest of FCMP++ components
17:48:48 <m-relay> <j​berman:monero.social> The latter wasn't explicitly part of the funds raised for the CCS
17:49:31 * m-relay <s​yntheticbird:monero.social> whispers "zellic... zellic... zellic..."
17:49:50 <m-relay> <c​haser:monero.social> does "CS started (?) // Veridise started (?)" mean we don't know whether they started or not?
17:50:39 <m-relay> <j​berman:monero.social> I know 100% Veridise started, I'm not 100% sure on CS. I'll double check
17:50:59 <m-relay> <c​haser:monero.social> thank you!
17:51:57 <m-relay> <r​ucknium:monero.social> Would the torsion check review be a review of mathematics or a code audit?
17:51:58 <m-relay> <c​haser:monero.social> as for "Gadgets formal verification", has Veridise been sent a request?
17:52:00 <m-relay> <j​berman:monero.social> I'll check up on starting impl audits too. Seems reasonable to start those
17:52:53 <m-relay> <j​berman:monero.social> Mathematics. The code is pretty small
17:53:11 <m-relay> <c​haser:monero.social> sorry if it's too many questions, I'm just trying to understand the spreadsheet
17:53:27 <m-relay> <j​berman:monero.social> AFAIK no. Seems sensible to wait on them to complete their current work
17:54:50 <m-relay> <c​haser:monero.social> ah, alright. I suppose they're a small team and they're now fully occupied with the R1CS proofs
17:56:01 <m-relay> <j​berman:monero.social> Maybe they do have others available, that's a good point. Will follow up on that as well
17:57:07 <m-relay> <c​haser:monero.social> presuming this work is parallelizable with the EC divisors part
17:57:39 * sech1 sighs. That competitions being Rust-only cuts a lot of devs, including me
17:58:20 <m-relay> <c​haser:monero.social> jberman and given that there is no other viable candidate
17:58:26 <m-relay> <r​ucknium:monero.social> I knew it. kayaba eliminating the competition hahahaha
17:58:46 <m-relay> <r​ucknium:monero.social> (This is a joke)
17:59:13 <m-relay> <s​yntheticbird:monero.social> sech1: never too late to learn Rust (i can understand the disappointment for a C/C++ dev)
17:59:27 <m-relay> <j​berman:monero.social> @sech1 rust is really not that hard to learn 😏
17:59:54 <rbrunner> But hey, getting so good at it in weeks as to win a contest, I don't know :)
18:00:32 <sech1> I'm sure it's easy to learn... but hard to master (to be competitive), as all things
18:00:40 <sech1> Too late for me to enter this competition
18:01:19 <m-relay> <s​yntheticbird:monero.social> you can always try to team up with a Crab master and he will translate your improvements
18:01:33 <m-relay> <j​berman:monero.social> I think the core of this competition will be implementing faster algorithms, not necessarily niche micro-optimizations that are language specific
18:02:14 <m-relay> <s​yntheticbird:monero.social> algorithmic optimization, not code optimization
18:03:04 <m-relay> <r​ucknium:monero.social> 5) Fluffy blocks efficiency improvements.
18:03:20 <m-relay> <r​ucknium:monero.social> jeffro256 was looking into this ^
18:03:36 <sech1> "Crandall prime with fast reduction algorithms available accordingly.", and "This would enable implementing ECFFT, reducing the computational complexity of ec-divisors." sounds like a plan already, and then what's left will be micro-optimizations that will require extensive knowledge of Rust
18:05:37 <m-relay> <j​berman:monero.social> I'll be surprised I guess if it's someone's knowledge of rust that puts them over the edge of another submission as opposed to better algos
18:05:51 <m-relay> <c​haser:monero.social> is there a link to get a better meta on the fluffy blocks improvements topic?
18:06:11 <m-relay> <r​ucknium:monero.social> chaser: AFAIK, it is very early stages
18:06:38 <m-relay> <j​effro256:monero.social> Yes. I think we're probably going to merge #9135 with relaying empty blocks at first , but it would be nice to know if the scheme of relaying transactions you didn't know about doesn't leak information
18:07:01 <m-relay> <j​effro256:monero.social> Because its almost guaranteed to be faster in an average case
18:07:58 <m-relay> <r​ucknium:monero.social> Oh, it's part of that PR? Ok.
18:08:08 <m-relay> <j​effro256:monero.social> https://github.com/monero-project/monero/pull/9135#discussion_r1957451272
18:08:33 <m-relay> <j​effro256:monero.social> This is the discussion
18:08:49 <m-relay> <j​effro256:monero.social> It should be noted that we can always change the scheme later
18:08:57 <m-relay> <j​effro256:monero.social> It's all compatible with one another
18:09:30 <m-relay> <j​berman:monero.social> fwiw relaying empty blocks seemed ok to me, I also wanted to re-review that full flow of requesting missing / responding
18:09:54 <m-relay> <j​berman:monero.social> want to re-review*
18:10:57 <m-relay> <r​ucknium:monero.social> At first glance, I think there could be a small info leak because relaying a block and relaying a fluff-phase tx aren't completely equivalent because fluff-phase txs are relayed with a random delay, but blocks are immediate AFAIK. But on the other hand, at current network conditions, few txs would be in this situation.
18:12:45 <m-relay> <r​ucknium:monero.social> I could check it empirically in the node logs from last year since the log level recorded fluffy blocks and when txs were "missed" by the nodes. But anyway, centralized mining pools still do not update their block templates instantly when the get new txs. IIRC, they are on about 20-30 second cycles. And txs propagate throughout the network during the fluff phase in two seconds or less.
18:13:13 <m-relay> <k​ayabanerve:monero.social> rbrunner Rucknium Non-constant-time means leaked private keys and no privacy under side-channel attacks.
18:13:37 <m-relay> <k​ayabanerve:monero.social> That 300% comment wasn't for node operations. It was for proving. The part that *needs* to be constant-time.
18:14:30 <m-relay> <k​ayabanerve:monero.social> Oh, jberman did clarify the context of the 300% comment 👍
18:15:57 <m-relay> <j​effro256:monero.social> It would give miners a competitive advantage to puts txs into the block as soon as they see them though?
18:16:35 <m-relay> <r​ucknium:monero.social> Yes, but they still don't do that.
18:16:40 <m-relay> <j​effro256:monero.social> If that 20-30 second cycle thing really is true then that should be changed IMO
18:16:56 <m-relay> <j​effro256:monero.social> that's bad for confirmation turnaround time
18:17:13 <m-relay> <k​ayabanerve:monero.social> [@syntheticbird:monero.social](https://matrix.to/#/@syntheticbird:monero.social) I didn't propose a contest with an annual extrapolated pay of >1m to the winner :p I can lose interest as a volunteer and reacquire interest upon sufficient payment.
18:18:04 <m-relay> <k​ayabanerve:monero.social> If there are sufficient ethical concerns, I'll drop out though. I'll note jberman has been working on the scoring framework without my commentary other than what little I've said here. I also haven't advocated for larger prizes and didn't write the rules with intent to participate.
18:18:11 <m-relay> <r​ucknium:monero.social> I already fought this battle, and this is the compromise that mining pools arrived at
18:19:21 <m-relay> <r​ucknium:monero.social> kayabanerve: I don't think that the discussion here in this meeting raised to the level of "sufficient ethical concerns" for you to drop out.
18:19:42 <m-relay> <j​berman:monero.social> fwiw the total proposed payout right now is 350 XMR (250+100) after taking into consideration the estimate for expected time to complete. Original proposed was 300 XMR (150+75 + 50+25)
18:19:46 <m-relay> <r​ucknium:monero.social> In other words, right now it looks like loose consensus to allow you to participate.
18:20:33 <m-relay> <r​ucknium:monero.social> e.g. HashVault's refresh is 20 seconds after I published my research: https://old.reddit.com/r/Monero/comments/10gapp9/centralized_mining_pools_are_delaying_monero/j52n5uc/
18:20:53 <m-relay> <k​ayabanerve:monero.social> jberman: Math and impl. I'm not convinced the impl matches the paper and think it's a further derivative. Then, even if the theory is sound, if your code doesn't match, it risks questions about inflation.
18:21:22 <m-relay> <j​berman:monero.social> Ya, fair. I think all of impl could use auditing fwiw
18:22:17 <m-relay> <k​ayabanerve:monero.social> sech1: I don't believe Rust, at this level of programming, should be a blocker. The end-goal of the Helioselene arithmetic is just operations over arrays which Rust doesn't really do with novelty UNLESS you explicitly expect the C preprocessor.
18:23:08 <m-relay> <k​ayabanerve:monero.social> The FFT code is also mathematical theory. The divisors preprocessing is just bit operations. The question is there a more intelligent series than the 3 O(n**2) steps currently present.
18:23:24 <m-relay> <j​berman:monero.social> TBC, it seems like we'd want paper math reviewed, then the code math which deviates formalized and reviewed, then the code impl reviewed
18:23:51 <m-relay> <k​ayabanerve:monero.social> Sorry. I didn't realize the meeting was still ongoing. Apologies for talking past the current discussion. I'm caught up now.
18:24:26 <m-relay> <s​yntheticbird:monero.social> don't apologies people were waiting on your inputs
18:24:28 <m-relay> <k​ayabanerve:monero.social> Or to use it for wallets only where it's only a liveness issue if it breaks.
18:24:29 <m-relay> <s​yntheticbird:monero.social> now you may proceed to apologies for apologizing
18:24:44 <m-relay> <j​berman:monero.social> (or combine first two together as one mathematics review)
18:25:15 <m-relay> <j​berman:monero.social> I think we should still use it for wallets only and is probably worth a focused review anyway
18:25:22 <m-relay> <k​ayabanerve:monero.social> I will also accept 1m/y to operate the contest, and not participate accordingly, for the time I spend working on the contest :p
18:28:25 <m-relay> <k​ayabanerve:monero.social> I'm not trying to be rude, I'm just being explicitly clear my interest in this contest isn't due to my free time or personal love for the subject. I believe the current code is fine. It just got bumped up to a very large $ figure after I dropped it.
18:28:54 <m-relay> <s​yntheticbird:monero.social> i dont find it rude
18:29:07 <m-relay> <s​yntheticbird:monero.social> i love money so it make sense to me
18:29:08 <m-relay> <k​ayabanerve:monero.social> Eh, it's at least a bit cutthroat/ruthless/merc
18:29:31 <m-relay> <j​berman:monero.social> It got bumped in discussions where we weren't accurately taking into consideration expected time to complete the work. It was brought down again after taking your prior estimate into consideration
18:30:11 <m-relay> <k​ayabanerve:monero.social> And like magic, I've lost interest and will go find other places to pay my bills
18:30:16 <m-relay> <k​ayabanerve:monero.social> :p
18:30:28 <m-relay> <j​berman:monero.social> lol
18:31:16 <m-relay> <r​ucknium:monero.social> We can end the meeting here. Feel free to continue discussing things.
