17:00:38 <m-relay> <r​ucknium:monero.social> Meeting time! https://github.com/monero-project/meta/issues/1116
17:00:44 <m-relay> <r​ucknium:monero.social> 1) Greetings
17:01:17 <rbrunner> Hello
17:01:30 <m-relay> <c​haser:monero.social> hello
17:02:39 <m-relay> <s​yntheticbird:monero.social> hi
17:03:13 <m-relay> <j​berman:matrix.org> *waves*
17:04:06 <m-relay> <r​ucknium:monero.social> 2) Updates. What is everyone working on?
17:04:09 <m-relay> <k​ayabanerve:matrix.org> 👋
17:05:37 <m-relay> <r​ucknium:monero.social> me: Researching a response to a HackerOne vulnerability report. Updated my "Monero FCMP MAX_INPUTS/MAX_OUTPUTS empirical analysis" to include a MAX_INPUTS = 128 analysis and *fixed a mistake in the computation* therein: https://gist.github.com/Rucknium/784b243d75184333144a92b3258788f6
17:05:54 <m-relay> <r​ucknium:monero.social> I add these two papers to moneroresearch.info in the FCMP subcategory: https://moneroresearch.info/index.php?action=list_LISTSOMERESOURCES_CORE&method=subcategoryProcess&id=1
17:06:07 <m-relay> <r​ucknium:monero.social> Slaughter, F., Goodell, B., & Salazar, R. (2024). "An Audit of the FCMP++ Addressing Protocol: CARROT."
17:06:18 <m-relay> <r​ucknium:monero.social> Bassa, A. (2024). "On the Use of Logarithmic Derivatives in Eagen’s Proof of Sums of Points."
17:06:19 <m-relay> <k​ayabanerve:matrix.org> Finishing my work on the FCMP libs and trying to make clear the bounds we face.
17:07:41 <m-relay> <j​berman:matrix.org> Me: continuing locally building the FCMP++ tree on wallet sync, it's nearing completion (most recently got initial tests passing syncing a wallet from arbitrary height n on wallet restore)
17:09:14 <m-relay> <r​ucknium:monero.social> 3) CARROT audit/review: https://github.com/cypherstack/carrot-audit/releases/download/final/Carrot-final.pdf
17:09:31 <m-relay> <r​ucknium:monero.social> jeffro256: Do you have comments and/or summary of this?
17:11:53 <m-relay> <r​ucknium:monero.social> Maybe jeffro isn't available this meeting. In that case, I think we can defer discussion of this item until next week.
17:12:39 <m-relay> <r​ucknium:monero.social> 4) Proposed Cypher Stack review of "On the Use of Logarithmic Derivatives in Eagen’s Proof of Sums of Points". https://repo.getmonero.org/monero-project/ccs-proposals/-/merge_requests/449#note_27273
17:13:20 <m-relay> <r​ucknium:monero.social> kayabanerve: Do you want to start with this item?
17:13:31 <m-relay> <k​ayabanerve:matrix.org> Sure
17:14:22 <m-relay> <a​ck-j:matrix.org> Hi
17:14:56 <m-relay> <k​ayabanerve:matrix.org> There's not much to say beyond my messages prior to this meeting. It's review of the latest work output by Veridise. The review was prior done by Aaron Feickert @ Cypher Stack and is now being proposed to be done by F. Slaughter @ Cypher Stack, under the purview of Brandon Goodell @ Cypher Stack.
17:15:57 <m-relay> <k​ayabanerve:matrix.org> The rate quoted is 70 XMR. Considering review of this will require familiarization with the prior associated work, I find that acceptable.
17:15:59 <m-relay> <s​yntheticbird:monero.social> Me: Late update on the FCMP++ crate integration I haven't found the time to continue looking into it in the prior weeks and my schedule is still too tied in the future. I'm sorry but if someone want to take over the branch he is more than welcome.
17:16:02 <m-relay> <r​ucknium:monero.social> Anything noteworthy in the new Veridise document?
17:17:09 <m-relay> <k​ayabanerve:matrix.org> Proven security of the technique as we apply it, though the security of our application is the next (and final) step of work on this topic and is still being quoted.
17:17:48 <m-relay> <k​ayabanerve:matrix.org> This follows from the prior MRL meeting which contracted this work output. We decided to split the quote due to ongoing discussions over this latter part.
17:19:00 <m-relay> <0​xfffc:monero.social> ( my apologies everyone. I am on the road. So I am not going to be able to be online. My update is mostly PRs I have submitted past week. Fixing few minor issues. For next week I will spend most of my time on a optimization that I think will benefit monero-wallet-rpc ).
17:20:29 <m-relay> <r​ucknium:monero.social> What is the reason for reviewing this part now, compared to waiting until we have a larger whole to review all at once?
17:21:12 <m-relay> <k​ayabanerve:matrix.org> Pipelining?
17:21:39 <m-relay> <k​ayabanerve:matrix.org> This lets Cypher Stack use availability now on this, where that availability may otherwise be wasted.
17:21:54 <m-relay> <k​ayabanerve:matrix.org> It also reduces the latency for the full review.
17:22:48 <m-relay> <r​ucknium:monero.social> You said previously that getting new reviewers up to speed on the Veridise work will take time. I just don't want to have to get someone else up to speed for a second time.
17:23:08 <m-relay> <k​ayabanerve:matrix.org> It also enables finding errors in the current work product before moving on to the next work product. I am proposing running the two simultaneously, so I want to trade that benefit for overall efficiency, but finding errors midway through the next work product is still better than finding errors after the next work product.
17:23:21 <m-relay> <r​ucknium:monero.social> If you think scheduling is better this way, that's fine. I just wanted to bring it up
17:25:20 <m-relay> <r​ucknium:monero.social> Can we get more opinions on this proposed expenditure? In this channel before the meeting kayabaNerve said
17:25:21 <m-relay> <r​ucknium:monero.social> > I just got the quote from Cypher Stack for 70 XMR to review the latest work output by Veridise. I support that and jberman has also signed off.
17:25:47 <m-relay> <k​ayabanerve:matrix.org> Heard. I've not been happy with how this academic research has gone overall personally. I think we've always tried to make the best decision at each turn, and the academia itself is resolving as necessary/desired, but there's been much more paperwork (and costs) than desired/expected. That just still leaves me to try and make the best decision here, which IMO, is reviewing this now.
17:26:19 <m-relay> <v​tnerd:monero.social> Hi
17:26:52 <rbrunner> Well, sounds just like living on the bleeding edge to me :)
17:27:33 <rbrunner> Other people drive ambitious projects like this one right into the abyss
17:29:27 <m-relay> <s​gp_:monero.social> I just got a quote on the Veridise DLOG soundness proof, if we want to discuss that as well
17:29:48 <m-relay> <r​ucknium:monero.social> I don't really want to to to get MRL approval at this meeting because this was proposed publicly less than 24 hours ago. And previously I had suggested and kayabaNerve agreed that expenditure proposals should get a few days of MRL and community review. But I am willing to be convinced on this I guess.
17:30:24 <m-relay> <r​ucknium:monero.social> sgp_: Ok. Give a summary
17:31:17 <m-relay> <s​gp_:monero.social> [@kayabanerve:matrix.org](https://matrix.to/#/@kayabanerve:matrix.org) please confirm you're ok sharing this as well or if we need to have them fix something first. It's literally hot off the presses
17:31:21 <m-relay> <r​ucknium:monero.social> And for the Cypher Stack review, is there a write-up on the exact scope of the review?
17:33:08 <m-relay> <j​berman:monero.social> I +1 moving forward with CS on review for kayaba's reasons
17:33:53 <m-relay> <s​gp_:monero.social> I understand the extra review time to get caught up on the context, but I hope any further review (after being caught up) is more competitive
17:34:37 <m-relay> <j​berman:monero.social> Though it's worth nothing just reached out to another solid candidate we're waiting to hear back from. If that also doesn't work out, CS is a solid option
17:34:46 <m-relay> <k​ayabanerve:matrix.org> To be rude to Rucknium, I just received another quote and approval from jberman on it if we can discuss it today.
17:34:59 <m-relay> <k​ayabanerve:matrix.org> sgp_: Stop front-running me D:
17:35:56 <m-relay> <r​ucknium:monero.social> Like I said, I prefer to have more time to digest these quotes, so it is OK to bring them up now at this meeting to "start the timer".
17:36:19 <m-relay> <r​ucknium:monero.social> I would also prefer to have something written down in something more formal than a Matrix/IRC message
17:36:33 <m-relay> <r​ucknium:monero.social> When you can get such a thing written down
17:36:48 <m-relay> <r​ucknium:monero.social> So there are no misunderstandings about scope later
17:37:24 <m-relay> <k​ayabanerve:matrix.org> First, clarifying re: jberman: Someone potentially reached to volunteer their time in review. They were contacted specifically on this topic. I don't personally expect that to work out. I'd like to get the Cypher Stack quote approved regardless. We can leave it open in that either the CS quote goes through or the volunteer (at a cost of $0, so not needing MRL approval) will occur.<clipped message
17:37:25 <m-relay> <k​ayabanerve:matrix.org>  I'll defer further commentary back to jberman.
17:39:49 <m-relay> <k​ayabanerve:matrix.org> Re: the newly received quote, it's 10-12.5k USD from Veridise for the resulting interactive protocol, the soundness proof, and finally verifying the specified R1CS matches. That follows the scope of work prior split off from the quote at the time we came to consensus on the prior quote.
17:40:18 <m-relay> <k​ayabanerve:matrix.org> Since it resolves the issues present in the quote when we split it off (allowing us to further discuss it and come to this quote), I find it amenable.
17:40:25 <m-relay> <k​ayabanerve:matrix.org> jberman also signified their approval.
17:41:06 <m-relay> <k​ayabanerve:matrix.org> Rucknium: I fully understand if this is too messy to discuss today and you want to kick this Veridise quote to next week.
17:41:19 <rbrunner> So many things going on, one would almost want something like a flow diagram
17:41:34 <m-relay> <s​yntheticbird:monero.social> Github project maybe?
17:41:35 <m-relay> <k​ayabanerve:matrix.org> I mean, I'd prefer to keep the train moving, but I personally think this is quite messy to propose mid-meeting and absolutely won't contest kicking this to next meeting.
17:41:43 <m-relay> <s​gp_:monero.social> Fwiw MAGIC doesn't need a decision on the money today, I can sign with the hope of the money coming through as long as there's loose consensus it's a good idea
17:42:07 <m-relay> <r​ucknium:monero.social> Let's document the quotes in Gists or something. And that will make the mental flow chart easier
17:42:10 <m-relay> <s​gp_:monero.social> Waiting on the review for potentially free seems appropriate to me IMHO. At least a week or so
17:42:38 <m-relay> <s​gp_:monero.social> Unless there's a pressing blocker I'm missing
17:42:54 <m-relay> <k​ayabanerve:matrix.org> I also won't contest kicking Cypher Stack's review to the next meeting, especially given the commentary on a potential volunteer jberman brought up. I am not hopeful re: said volunteer but I acknowledge if this now exceeds the complexity allowed for time of prior awareness.
17:43:34 <m-relay> <k​ayabanerve:matrix.org> sgp_: If we have consensus, we have consensus and MAGIC will be promised the funds. If we don't have consensus, we don't have consensus, and if MAGIC funds this it's entirely on them.
17:43:47 <m-relay> <k​ayabanerve:matrix.org> I am not asking MAGIC to attempt to estimate loose consensus day and start making agreements.
17:43:53 <m-relay> <r​ucknium:monero.social> I'd suggest documenting the quotes in Gists or something. Please post links in this channel when you do. And we can discuss and hopefully approve a decision path next meeting.
17:44:08 <m-relay> <s​yntheticbird:monero.social> I know my talk don't have much value but with this many important items in the list maybe placing another meeting mid-week would be preferable
17:44:31 <m-relay> <s​yntheticbird:monero.social> There is always a few items that needs to be kicked at each meeting
17:45:11 <m-relay> <r​ucknium:monero.social> Maybe, if it keeps up like this. This is unusually busy and we have had meetings earlier this year that were pretty light
17:45:16 <rbrunner> I think we must be near "peak FCMP++ reviews frenzy" and things quickly will get better
17:45:24 <m-relay> <r​ucknium:monero.social> People can of course discuss these things between meetings in this channel
17:45:44 <m-relay> <s​gp_:monero.social> I know MAGIC isn't promised the funds but I'm still happy to move forward immediately so there isn't a delay on the most important next piece of research, even if this channel might not approve it or need more time
17:46:30 <m-relay> <r​ucknium:monero.social> And we have the highly anticipated MAX_INPUTS/MAX_OUTPUTS discussion still on this meeting's agenda
17:46:54 <m-relay> <j​berman:monero.social> RE: Cypher Stack approval for review of Veridise work. I think this is a fairly clear solid route to take and it would be nice to arrive at loose conensus that would be the case today (just assuming the volunteer does not pan out)
17:50:04 <m-relay> <r​ucknium:monero.social> Let me ask rbrunner: Do you prefer that the Cypher Stack review of the Veridise document be approved today (after less than 24 hours notice) or to defer to next week's meeting?
17:50:45 <rbrunner> I would say next week's meeting would be slightly better. Too many balls up in the air right now.
17:51:33 <m-relay> <r​ucknium:monero.social> Ok. It will go on next meeting's agenda. Thanks all. Sorry for the delay, but speed is the enemy of democracy, etc.
17:51:58 <m-relay> <r​ucknium:monero.social> 5) Discussion: preventing P2P proxy nodes. https://github.com/monero-project/research-lab/issues/126
17:52:02 <m-relay> <c​haser:monero.social> can't we just form consensus between meetings if that would speed up the process?
17:52:27 <m-relay> <r​ucknium:monero.social> IMHO it would be good to decide on some actions. I think MRL should release a suggestion on Monero communication channels (Matrix/IRC, GitHub, monero.town, Reddit, Twitter, etc., maybe not necessarily the website blog) for node operators to run the IP address blocklist. Maybe some people can PGP-sign a hash of the blocklist.
17:52:38 <m-relay> <r​ucknium:monero.social> Then the second step could be for myself and possibly boog900 (and anyone else who wants to do so like vtnerd) to research the pros and cons of having an ASmap-like criteria for `monerod` establishing peer connections: https://github.com/monero-project/monero/pull/7935
17:53:01 <m-relay> <r​ucknium:monero.social> I could start on step 2 in 1 -2 months probably.
17:53:18 <m-relay> <k​ayabanerve:matrix.org> ACK with frustration the first quote isn't being decided on this meeting but also understanding.
17:54:28 <m-relay> <r​ucknium:monero.social> chaser: Maybe, but I don't know what form that would take.
17:55:07 <m-relay> <s​yntheticbird:monero.social> Official communication would probably be the most effective solution in short-term, I don't see any reason not to do so now that the consensus has been reached on the seriousness of this network issue
17:55:07 <rbrunner> Wow, the linked ASmap related PR waits since 2021?
17:55:37 <m-relay> <o​frnxmr:monero.social> Wouldn't asmap allow a large actor to: own multiple proxies on each provider, starving honest nodes of connections to other honest nodes?
17:56:17 <m-relay> <r​ucknium:monero.social> ofrnxmr: My research would investigate that question.
17:56:36 <rbrunner> The way forward sketched by Rucknium sounds good to me. I thing without going into something like an "emergency mode" we don't have good alternatives anyway. Which is no problem IMHO.
17:56:47 <m-relay> <s​yntheticbird:monero.social> no there are more honest subnets than bad ones
17:57:03 <m-relay> <r​ucknium:monero.social> Basically, would an adversary gain an advantage in the status quo compared to more ASN diversity.
17:57:57 <m-relay> <c​haser:monero.social> I was thinking of something along the lines of the majority of the relevant (per competence) people signing off on it. I understand that's a loose definition, and that it may be difficult to reach everyone outside meeting hours (in which case it would be just carried over to the meeting). just an idea.
17:58:01 <m-relay> <r​ucknium:monero.social> It depends on the empirical distribution of honest nodes with respect to ASNs, which I have some preliminary results on
17:59:00 <m-relay> <o​frnxmr:monero.social> For home networks, but not for vps. Asmap makes vps a more attractive attack point imo
17:59:06 <m-relay> <r​ucknium:monero.social> OK I will write up a proposed communication plan on the blocklist for next meeting
17:59:31 <m-relay> <r​ucknium:monero.social> 6) Making transaction weight a function of number of inputs, outputs, and `tx_extra` length instead of number of bytes.
17:59:39 <rbrunner> ofnrxmr: I think we mostly agree that this needs very careful research before any action
18:00:27 <m-relay> <r​ucknium:monero.social> kayabaNerve wrote up some more formal proposal on this here: https://gist.github.com/kayabaNerve/dbbadf1f2b0f4e04732fc5ac559745b7#on-fee-calculation
18:01:29 <m-relay> <r​ucknium:monero.social> My question on this is how exactly do the confidential transactions arithmetic match up with the implicit fee rate.
18:01:48 <m-relay> <o​frnxmr:monero.social> I agree, as long as the tx sizes per input/output are relatively static.
18:02:25 <m-relay> <r​ucknium:monero.social> In bitcoin and its cousins, the fee is fully implicit: the fee is just the difference of the sum of outputs and inputs. But Monero does it explicitly since the sum of inputs and outputs isn't explicit due to CT
18:03:46 <m-relay> <r​ucknium:monero.social> By implicit/explicit I mean there is a field (or isn't) in the actual transaction data
18:04:43 <m-relay> <r​ucknium:monero.social> Ok we are beyond the hour and still have the MAX_INPUTS/MAX_OUTPUTS item. We can move on to that since there was a lot of interest in it
18:04:51 <m-relay> <r​ucknium:monero.social> 7) FCMP++ tx size and compute cost and MAX_INPUTS/MAX_OUTPUTS. On MAX_INPUTS and MAX_OUTPUTS. Monero FCMP MAX_INPUTS/MAX_OUTPUTS empirical analysis.
18:05:02 <m-relay> <r​ucknium:monero.social> https://gist.github.com/kayabaNerve/c42aeae1ae9434f2678943c3b8da7898
18:05:03 <m-relay> <r​ucknium:monero.social> https://github.com/monero-project/research-lab/issues/100#issuecomment-2433524326
18:05:05 <m-relay> <r​ucknium:monero.social> https://gist.github.com/kayabaNerve/dbbadf1f2b0f4e04732fc5ac559745b7
18:05:07 <m-relay> <r​ucknium:monero.social> https://gist.github.com/Rucknium/784b243d75184333144a92b3258788f6
18:05:13 <m-relay> <r​ucknium:monero.social> Yes, there are four links associated with this item
18:06:30 <m-relay> <k​ayabanerve:matrix.org> Sorry, I had connectivity issues the past few minutes.
18:06:36 <m-relay> <r​ucknium:monero.social> IMHO, it may make sense to wait until there are actual CPU benchmarks for tx verification for these txs types before really getting into the discussion to make a decision. Consistent with what sech1 has said.
18:07:00 <m-relay> <k​ayabanerve:matrix.org> Re: topic 6, fee discretization, ArticMine already proposed an exact clawback to use.
18:08:58 <m-relay> <k​ayabanerve:matrix.org> On topic 7, my cited GH comment is deprecated by my long-form write-up. My Python estimator is deprecated by the actual Rust code which does now 100% accurately perform the size estimation (but is less accessible to work with).
18:09:07 <rbrunner> I think we can indeed wait for hard numbers from actual benchmarks because technically the decisions do not seem to have too many consequences and interdependencies
18:09:58 <rbrunner> (With emphasis on *technically* of course)
18:10:16 <m-relay> <k​ayabanerve:matrix.org> It's only the 1-input case I've extensively benchmarked. Additional inputs should be largely linear if we aren't discussing batch verification (such as upon mempool acceptance). 2-inputs double the base cost, and while they don't double the amount of commitments, those are a fraction compared to the base cost.
18:10:50 <m-relay> <k​ayabanerve:matrix.org> But ACK to providing more benchmarks. What exact FCMP params would people like to see?
18:11:07 <m-relay> <s​yntheticbird:monero.social> just to have a rough idea do you know what amount of commitment would represent the computation of one input ?
18:11:25 <m-relay> <k​ayabanerve:matrix.org> SyntheticBird: What?
18:11:44 <rbrunner> Discussions seem to oscillate between max inputs of 4 versus max inputs of 8, right? So at least those two :)
18:11:57 <m-relay> <s​yntheticbird:monero.social> > while they don't double the amount of commitments, those are a fraction compared to the base cost.
18:11:59 <m-relay> <s​yntheticbird:monero.social> what fraction exactly (if known) ?
18:13:44 <m-relay> <k​ayabanerve:matrix.org> I'd refer you to the Python estimation code.
18:14:33 <m-relay> <k​ayabanerve:matrix.org> rbrunner: My advocacy is 8 for MAX_INPUTS at this time. I'm unsure anyone is advocating for 4. I've seen complaints 8 is too low but without associated recommendations.
18:15:05 <m-relay> <k​ayabanerve:matrix.org> (other than 8 is too low. My guess is the recommendation is anywhere from 16 to 120)
18:15:40 <m-relay> <k​ayabanerve:matrix.org> I don't believe anyone has called out reducing MAX_OUTPUTS to 8 though.
18:16:42 <rbrunner> Just to be sure, next sensible step is 16, not 12 or even 10, for technical reasons?
18:17:15 <rbrunner> (For max inputs)
18:17:25 <m-relay> <s​yntheticbird:monero.social> 120 isn't a power of two afaik
18:17:38 <rbrunner> Not even if you squint?
18:17:52 <m-relay> <c​haser:monero.social> if the end goal is max 4/4, there will need to be a reduction anyway at a later fork. so, while max 4/8 sounds attractive, it's not necessary to achieve it with this fork.
18:18:13 <m-relay> <k​ayabanerve:matrix.org> The MAX_* values should be powers of two rbrunner
18:18:27 <rbrunner> Thanks, thought so
18:18:44 <rbrunner> Quite some step from 8 to 16 then
18:18:48 <m-relay> <k​ayabanerve:matrix.org> chaser: These changes aren't being made for uniformity.
18:19:40 <m-relay> <c​haser:monero.social> kayabanerve I know, but they still lead to a lower number of tx shapes, which does increase uniformity.
18:20:21 <rbrunner> I tend to agree that a limit of 8 is a software problem for people with consolidation needs of large numbers of enotes, not a protocol problem
18:20:38 <m-relay> <k​ayabanerve:matrix.org> 2, 4, 8, 16, 32, 64 are all a reduction to MAX_INPUTS in effect and powers of two. I think even 16 is too much. I can have 1, 2, 4, 8, 16 benched to provide the data on that though.
18:22:13 <m-relay> <k​ayabanerve:matrix.org> 32, 64, by estimate, would be half a second and one second. Unless 16 surprises me by shattering my expectations, I'd argue those clearly unviable and not worth the time to collect data on.
18:22:35 <m-relay> <k​ayabanerve:matrix.org> We can phrase it as benchmarking until proof time exceeds some threshold though. Let me know the threshold.
18:24:21 <rbrunner> Aren't 32 and 64 hardly viable on the grounds of transaction sizes anyway?
18:26:14 <m-relay> <k​ayabanerve:matrix.org> We currently support ~120. With a single aggregate FCMP, I'm pretty sure we'd be able to support 64 with current TX size limits.
18:27:44 <m-relay> <k​ayabanerve:matrix.org> I think we can even support 128. The issue is solely the verification time.
18:29:13 <m-relay> <k​ayabanerve:matrix.org> I did prior calculate the numbers on this, I'm just on my phone and can't pull them up now, sorry.
18:29:36 <m-relay> <s​yntheticbird:monero.social> blame the phone for being ergonomic enough for maths
18:29:43 <m-relay> <s​yntheticbird:monero.social> for not being*
18:29:59 <m-relay> <k​ayabanerve:matrix.org> It doesn't let me run my rust tests :(
18:30:11 <m-relay> <s​yntheticbird:monero.social> 😭,
18:33:26 <m-relay> <k​ayabanerve:matrix.org> Anyone, for what verification time threshold to run until?
18:34:38 <m-relay> <c​haser:monero.social> could be fit to the current protocol's times
18:34:52 <m-relay> <c​haser:monero.social> *fitted
18:36:18 <m-relay> <s​yntheticbird:monero.social> could it be possible? I thought it would be significantly higher than current RingCT.
18:37:11 <m-relay> <c​haser:monero.social> it may be, I am not sure of the current verification time per output
18:37:27 <m-relay> <k​ayabanerve:matrix.org> We can fit it to the current time for whatever the maximum amount of CLSAGs is.
18:37:34 <m-relay> <k​ayabanerve:matrix.org> cc jberman jeffro256 can one of you get me that number?
18:40:40 <m-relay> <j​berman:monero.social> Time to verify a 16 member CLSAG with max number of inputs?
18:41:19 <m-relay> <k​ayabanerve:matrix.org> Yes
18:41:29 <sech1> I didn't have chance to reply about code optimizations until now, but what I can basically do is to polish an existing implementation and make it much faster. I'm good at it. As for the optimal implementation in terms of algorithms, that will require a much bigger effort from me, so better if kayaba prepares a reference with algorithms already
18:41:29 <sech1> being optimal
18:41:30 <m-relay> <k​ayabanerve:matrix.org> Please and thank you
18:42:26 <m-relay> <k​ayabanerve:matrix.org> It's really just the time for one CLSAG scaled jberman
18:42:51 <m-relay> <c​haser:monero.social> I found a chart in the Seraphis paper that says 8 ms for 16 in
18:43:20 <m-relay> <k​ayabanerve:matrix.org> sech1: If I knew how to do this, I would've budgeted for it.
18:43:21 <m-relay> <c​haser:monero.social> wait, no. that's 16 ring size
18:45:21 <m-relay> <k​ayabanerve:matrix.org> Implementing tailored prime field arithmetic isn't in my repertoire sech1. It's why I used a generic bigint library. The point is to replace that with our own arithmetic, optimized add/reduce/mul algorithms, etc.
18:45:28 <sech1> k​ayabanerve but you already mentioned some algorithmic optimizations which are possible
18:45:39 <sech1> ah, I understand
18:46:01 <m-relay> <k​ayabanerve:matrix.org> The optimized algorithms depend on the primes we chose. Nicely, we only use 255 bits, not 256.
18:46:25 <m-relay> <k​ayabanerve:matrix.org> So that will enable certain algorithms which require access to that high bit. We don't need to allocate an extra byte for overflow.
18:47:21 <m-relay> <k​ayabanerve:matrix.org> But which algorithms? No clue. Not my field. I only know we chose a Crandall prime because it has a fast reduction algorithm.
18:48:26 <m-relay> <s​yntheticbird:monero.social> I think we can pardon you for not being knowledgeable on something at this point.
18:49:08 <m-relay> <j​berman:monero.social> Yea this has good benchmarks figures here: https://github.com/monero-project/research-lab/issues/91
18:49:17 <m-relay> <k​ayabanerve:matrix.org> chaser: Is a single CLSAG with 16 ring members seriously 8ms per Seraphis paper?
18:50:10 <m-relay> <j​berman:monero.social> assuming you were looking at this chart for that 8ms figure: https://user-images.githubusercontent.com/37489173/141365224-7c7e009f-60e9-4be0-a18b-05e278567bc8.png
18:50:16 <m-relay> <k​ayabanerve:matrix.org> If so, you can craft TXs which take a second to verify rn which is cursed (though you find out if the current CLSAG is invalid on just an 8ms increment)
18:50:35 <m-relay> <c​haser:monero.social> kayabanerve if I get it right, yeah. 14 ms raw, 8 ms in 25 batches
18:51:02 <m-relay> <j​berman:monero.social> I think that chart is showing 4ms per CLSAG (since it's 8ms per 2-input tx)
18:51:32 <m-relay> <k​ayabanerve:matrix.org> CLSAGs can't be batch verified except perhaps a single operation?
18:51:52 <m-relay> <c​haser:monero.social> jberman yes, I was wrong. the chart is for 2/2's.
18:52:33 <m-relay> <k​ayabanerve:matrix.org> The TX time != the CLSAG time
18:53:15 <m-relay> <c​haser:monero.social> true. plot is thickening
18:55:47 <m-relay> <k​ayabanerve:matrix.org> I believe the meeting is all but called by Rucknium? I'll be withdrawing at the hour.
18:58:26 <m-relay> <c​haser:monero.social> is this it? https://eprint.iacr.org/archive/2019/654/1585584155.pdf#page=18 if so, then 15.9 ms
18:58:49 <m-relay> <j​berman:monero.social> Was just about to comment the same link :)
