17:00:36 <br-m> <rucknium> Meeting time! https://github.com/monero-project/meta/issues/1500
17:00:40 <br-m> <rucknium> 1. Greetings
17:00:44 <sech1> Hi
17:00:58 <tevador> Hi
17:00:59 <rbrunner> Hello
17:01:22 <br-m> <ack-j:matrix.org> Hi
17:01:23 <br-m> <vtnerd> hi
17:01:43 <br-m> <jberman> waves
17:02:24 <br-m> <syntheticbird> Hi
17:03:02 <br-m> <rucknium> 2. Updates. What is everyone working on?
17:03:42 <br-m> <rucknium> @syntheticbird:monero.social: Can you stay for the DAA agenda item? I'm interested in the implications for cuprate.
17:04:23 <br-m> <jberman> Upstream PR review, FCMP++ integration followup, integrating zk security's suggestions for tree building
17:05:21 <br-m> <rucknium> me: Reviewing the proposed Difficulty Adjustment Algorithm changes: https://github.com/monero-project/research-lab/issues/165#issuecomment-7334810781 . Reviewing the bot's Markov Decision Process analysis of Share or Perish: https://github.com/Fountain5405/monerosim/blob/main/studies/sop/STATUS.md
17:05:26 <br-m> <syntheticbird> @rucknium:monero.social sure but my knowledge on da is greatly eroded, and I haven't touched that part in a big while.
17:05:51 <br-m> <ack-j:matrix.org> Me: made improvements to the monero PR review bot that now includes a nightly run of Trailmark https://github.com/trailofbits/trailmark to create a queryable graph of almost all function calls within the monero codebase. This is fed to the bot during reviews to trace sinks to sources
17:06:33 <br-m> <vtnerd> me: still working on lws+lwsf testing for fcmp++. Moving onto updating serialization prs after that, as mentioned in #nwlb
17:07:49 <br-m> <rucknium> 3. FCMP++ to-do list status. Programming tasks (https://github.com/seraphis-migration/monero/issues/53). Reviews and audits (https://cryptpad.fr/sheet/#/2/sheet/view/yPVIUywwA9-deE9VF6GYm9bXbPdCerdST3UDEEfBxcM/embed/). FCMP++ Integration Audit Overview (https://github.com/seraphis-migration/monero/issues/294). Network upgrade  [... too long, see https://mrelay.p2pool.observer/e/tbTlicQLeHZqclBV ]
17:08:05 <br-m> <jbabb:cypherstack.com> o7 trezor monero things
17:10:44 <br-m> <rucknium> @jberman: Anything on this topic except for @jberman:monero.social 's update? ^
17:12:02 <br-m> <jpk68:matrix.org> Hello
17:12:07 <br-m> <jpk68:matrix.org> Me: doing HTTP server work
17:12:18 <br-m> <syntheticbird> god work
17:13:09 <br-m> <jberman> I'll PR followups today for block header validation and dynamic scaling
17:13:16 <br-m> <jberman> Major items IMO on the immediate task list are Carrot Core upstream, hot/cold wallets completed and tested, multisig (dependent on the former), and Carrot/FCMP++ knowledge proofs
17:15:02 <br-m> <aparielta:matrix.org> @jpk68:matrix.org: Noice
17:15:42 <br-m> <jberman> Zk security audit is proceeding well. So far I haven't received any reported issues with Phase 2, they just suggested a way to simplify the code
17:15:51 <br-m> <aparielta:matrix.org> @jberman: That's cool tho I am working on Latties based cryptography and FHE mainly
17:15:55 <br-m> <jberman> And they began with Phase 3 this week (consensus integration)
17:16:35 <br-m> <aparielta:matrix.org> @jberman: So u doing on ZKs?
17:16:39 <br-m> <jberman> (Phase 2 is the curve tree builder)
17:17:37 <br-m> <aparielta:matrix.org> @jberman: NGL FCMP++ is really cool 😎😁 tho but it's still on testnet mainly
17:18:08 <br-m> <rucknium> @aparielta:matrix.org: You sound like a bot or something.
17:18:44 <br-m> <rucknium> If you want to discuss lattice-based cryptography and FHE, you can at the end of the meeting.
17:18:48 <br-m> <aparielta:matrix.org> What 😂
17:18:58 <br-m> <aparielta:matrix.org> Do I need to prove I am a human or what?
17:19:07 <br-m> <ofrnxmr> This is a meeting
17:19:20 <br-m> <ofrnxmr> With an agenda
17:19:26 <br-m> <aparielta:matrix.org> @ofrnxmr: Wdym
17:19:30 <br-m> <rucknium> No but you need to prove you are contributing to the discussion in some way.
17:19:51 <br-m> <jeffro256> Howdy
17:20:04 <br-m> <aparielta:matrix.org> Ohh i am really sorry I thought we can just chat directly 
17:20:08 <br-m> <aparielta:matrix.org> Forgive me 🙏 for that
17:20:16 <br-m> <jberman> Also I personally think tx relay v2 is ready, with followup PR's also expected to continue iterating on it
17:21:06 <br-m> <0xgoethe:matrix.org> hi everyone
17:21:09 <br-m> <redsh4de:matrix.org> me: submitted a PR to multiexp to cut down on FCMP proving times by about half using signed digit buckets & tables for Straus & Pippengers algorithm
17:21:40 <br-m> <nvr_:matrix.org> Hello 👋
17:22:33 <rbrunner> Would such changes to proving need a separate, new, small audit?
17:22:49 <br-m> <nvr_:matrix.org> Me: fix few reviews on 9933, it seems it is ready to merge at this point. Reviewed few different PRs.
17:23:22 <br-m> <nvr_:matrix.org> ( apologies for jumping in the middle of meeting btw )
17:23:41 <br-m> <rucknium> @nvr_:matrix.org: IMHO, it would be good if you can sign some statement with @0xfffc:monero.social 's PGP key saying that you and @0xfffc:monero.social are one and the same. Forgive me if you've already done that. Can't be too careful these days.
17:23:44 <br-m> <redsh4de:matrix.org> rbrunner: id think so, as only the Pippenger case has a research paper behind it: https://tches.iacr.org/index.php/TCHES/article/view/10972
17:24:40 <rbrunner> Ok. But in any case halving proving times sounds awfully promising :)
17:24:56 <br-m> <nvr_:matrix.org> @rucknium: Yeah. No worries. But I have to find my keys for 0xfffc. So gonna take awhile.
17:25:15 <br-m> <rucknium> @nvr_:matrix.org: Thank you.
17:25:16 <br-m> <syntheticbird> bro is 0xfffc? with a question mark
17:25:28 <br-m> <syntheticbird> this sentence isn't a question
17:25:59 <br-m> <syntheticbird> the joke was less confusing in my head
17:26:06 <br-m> <nvr_:matrix.org> Anyway, not to divert the meeting.
17:26:29 <br-m> <jeffro256> > <@rucknium> 3. FCMP++ to-do list status. Programming tasks (https://github.com/seraphis-migration/monero/issues/53). Reviews and audits (https://cryptpad.fr/sheet/#/2/sheet/view/yPVIUywwA9-deE9VF6GYm9bXbPdCerdST3UDEEfBxcM/embed/). FCMP++ Integration Audit Overview (https://github.com/seraphis-migration/monero/issues/294) [... too long, see https://mrelay.p2pool.observer/e/1OSpisQLWVdqeVpR ]
17:26:29 <br-m> <jeffro256> Looking at the Gannt chart, I think that review of carrot_core should be the priority at this moment, since it has many task dependencies as is currently marked as a bottleneck
17:27:32 <br-m> <rucknium> AFAIK, improvements to proving time are wallet-side, not consensus-side, so they are less sensitive. And they can be implemented in wallets outside of monero-project's wallet2. (It will still be wallet2 after FCMP, right?)
17:27:36 <br-m> <jeffro256> I updated the chart, and right now we're looking at activation date in June. Every date that carrot_core merge is late adds 1 day to the final activation ate 
17:27:50 <br-m> <jeffro256> @rucknium: Yes and yes 
17:27:53 <br-m> <jberman> Are there more changes expected to it? https://github.com/jeffro256/carrot/issues/21 , https://github.com/jeffro256/carrot/issues/23
17:29:36 <br-m> <jeffro256> 21 is mainly solved by 16 (I'll change some of the text on 16 then merge soon). I haven't looked thru 23 
17:30:03 <br-m> <jeffro256> 16 is implemented in the upstream carrot_core PR 
17:30:27 <br-m> <jpk68:matrix.org> Is carrot-rs being updated? Last I checked, it doesn't follow the current spec
17:31:16 <br-m> <jeffro256> At any rate, 23 won't change the code AFAIT 
17:31:47 <br-m> <jberman> So no more code changes expected to carrot_core PR / it's ready for merge just barring rebase?
17:31:52 <br-m> <jeffro256> @jpk68:matrix.org: Yes, I am working on that the last 2 days. I'm talking with Josh Babb and will let him know when it's done 
17:32:40 <br-m> <nvr_:matrix.org> mainnet? Isn’t that too fast? > <@jeffro256> I updated the chart, and right now we're looking at activation date in June. Every date that carrot_core merge is late adds 1 day to the final activation ate 
17:32:47 <br-m> <jeffro256> Or anyone else who would like to know ig
17:34:51 <br-m> <jeffro256> @nvr_:matrix.org: If you're asking whether the estimate is too optimistic, then the answer is almost certainly yes.  So far, the planner has been too optimistic in assuming review times 
17:35:57 <br-m> <jeffro256> The race should be towards completing tasks that are needed for the first HF-enabled merged 
17:36:45 <br-m> <jeffro256> The FCMP side is going pretty quickly, with help from auditors, and good organization from jberman. The Carrot side is a bit lagging in review 
17:37:02 <br-m> <jeffro256> But there's been a lot of great input so far, which is highly appreciated 
17:37:25 <tevador> HF-enabled would also need to include the proposed timestamp/DAA changes
17:38:03 <br-m> <jeffro256> Can we postpone changing the DAA plz?
17:38:07 <tevador> I think at least the timestamp rule can be implemented quite quickly.
17:38:22 <br-m> <jeffro256> Monotonic timestamp rule is whatever, but a DAA change is much larger 
17:38:24 <br-m> <jpk68:matrix.org> @jeffro256: I support this
17:38:42 <tevador> The timestamp rule is the minimum that needs to be done at this HF
17:39:15 <tevador> I already said so in the proposal: https://github.com/monero-project/research-lab/issues/165#issuecomment-6960591374
17:39:30 <tevador> "If MRL can't agree on a DAA or the schedule to implement the DAA at the next hard fork becomes too tight, I propose to at least implement the monotonic timestamp rule from v17, which will make future DAA changes smoother."
17:39:40 <br-m> <jeffro256> tevador: The timestamp rule seems fine to me 
17:40:09 <sech1> Yes on timestamp only, yes with asterisks on a new DAA
17:40:15 <tevador> Yes, the timestamp rule should be a relatively small diff
17:41:03 <br-m> <jeffro256> With monotonic timestamps, we just now have the issue that they will always be 2h ahead of the real time as long as at least 1 miner wants it that way
17:41:46 <tevador> The proposal also includes the reduction of FTL to 30 minutes. FTL is not a consensus rule.
17:42:21 <br-m> <rucknium> Not changing the current DAA comes with risks. According to zawy12, some Monero and Cryptonote forks halted because they copied the current DAA and difficulty oscillated out of control. And the current DAA may make selfish mining more profitable compared to the proposed alternatives.
17:42:37 <br-m> <jeffro256> Well it is a consensus rule, just not a deterministic one. It's really the one non-determinisitc consesnus rule we can't avoid ;)
17:42:56 <sech1> It's a block propagation rule
17:43:23 <sech1> Blocks too far in the future can be held locally and broadcasted later
17:43:50 <br-m> <rucknium> Should I skip the stressnet agenda item and advance to the DAA agenda item?
17:43:59 <br-m> <jeffro256> SGTM 
17:44:25 <br-m> <rucknium> 5. Replace the difficulty adjustment algorithm with ASERT or WTEMA (https://github.com/monero-project/research-lab/issues/165).
17:45:29 <sech1> I'm for the idea to improve DAA in general, but...
17:45:29 <sech1> I have two concerns about the new DAA. First, as far as I see, the difficulty depends on the timestamp (delta from the last block) and goes down exponentially to avoid slow blocks. This creates a direct and strong incentive for miners to manipulate it. Second, when the timestamp is pushed to the +30 min limit (because of miners manipulating it),
17:45:29 <sech1> two fast blocks can have a problem with selecting their timestamp without being rejected.
17:48:12 <tevador> I don't really see the "incentive" as a problem. The miner faking the timestamp is reducing the difficulty for the next block and the reduction applies equally to every miner and is small and bounded by the FTL.
17:48:36 <br-m> <rucknium> I assume tevador will respond, but here's mine: Are you looking at the real time targeting (RTT) variant of ASERT? RTT does do what you say, but RTT isn't in the proposal. And the FTL is a problem now in the status quo.
17:50:25 <sech1> If RTT is not included, then it looks solid
17:50:43 <tevador> There may be some annoyance when looking at block explorers and seeing timestamps that are 30 minutes off, but keeping the timestamp at the FTL perpetually would need a malicious miner with a relatively high hashrate. And nothing stops the miner from doing the same thing today with +2 hour timestamps.
17:50:54 <tevador> I don't think anyone is proposing RTT.
17:51:24 <sech1> FTL does solve itself though, at 1 second per second pace
17:52:02 <sech1> Second fast block that had to be pushed beyond +30 min will have to wait 1 second before broadcasting
17:53:27 <br-m> <rucknium> FWIW, zawy12 proposes a very tight FTL tolerance. Let me get his exact suggestion.
17:53:36 <sech1> So it looks solid, but needs real testing in an adversary environment, or at least adversary simulations
17:54:08 <tevador> I'm not sure how exactly current monerod handles blocks with timestamps too far in the future. It should not reject the block, just delay relaying it.
17:54:15 <br-m> <rucknium> "Future Time Limit (FTL) should be reduced to a fraction of block time" https://github.com/zawy12/difficulty-algorithms/issues/76
17:54:18 <sech1> Too tight FTL is not practical
17:54:38 <br-m> <rucknium> I'm not saying I support a shorter FTL. Just showing other perspectives.
17:55:13 <sech1> This puts entire network at the mercy of NTP servers
17:55:13 <tevador> I think 30 minutes is a good compromise. That supports clocks up to 15 minutes off, which is something like the average annual clock drift.
17:56:34 <br-m> <rucknium> Recently, zawy12 has been invested in the idea of following some strict time consistency rules to fulfill some theoretical properties that distributed systems "should" have. Again, I'm not saying that those are adoptable ideas for Monero.
17:56:35 <sech1> +1
17:57:16 <br-m> <rucknium> Need to install atomic clocks in Monero Nodos :D
17:58:21 <br-m> <rucknium> Like I said in the GitHub issue, I'm not convinced that lagged measurements of 30 blocks should be used.
17:59:10 <sech1> 30 is too much
17:59:13 <tevador> Yes, lagged measurement should be revisited. 30 blocks may be too high
17:59:48 <tevador> Zero lag has the issue of helping selfish miners
17:59:50 <sech1> After the fork hashrate will naturally drop, and we'll have to endure 30+ slow blocks
18:00:42 <sech1> Why not 10? It's the tx output spend limit, so it's considered enough
18:00:45 <br-m> <rucknium> @syntheticbird:monero.social: I wanted to ask you if you have any thoughts about implementing ASERT vs WTEMA in cuprate. ASERT requires a workaround for the floating point computation of the exponential.
18:00:55 <tevador> AFAIK RandomX v2 activates at v17, the new DAA would be from v18, so 720 blocks later.
18:01:20 <sech1> ASERT does calculations in integers? Not floats
18:01:28 <sech1> For this exact reason
18:01:52 <tevador> Yes, BCH uses a fixed point approximation.
18:02:06 <br-m> <rucknium> Right. So is the workaround with integer computations easy to do in cuprate?
18:02:44 <sech1> Should be easy, it's plain 64-bit operations
18:03:08 <br-m> <rucknium> Or any other alternative node implementation, of course. I assume it shouldn't be a big problem because BCH had at least 6 maintained node implementations at one time. All of them must have implemented ASERT.
18:03:11 <tevador> Should be similar to C. I think it needs around 10-15 lines of code. WTEMA needs 1 line of code.
18:03:20 <br-m> <syntheticbird> wouldn't be the first time we hide integer shenanigans behind helpers but we try to explode cuprate-helper. and since it's scope to difficulty I don't see that much of a maintenance burden to it.
18:03:23 <br-m> <jeffro256> Might be easier since Rust has native language support for unsigned 128 bit integer arithmetic 
18:04:05 <br-m> <syntheticbird> @jeffro256: just don't ask for constant-time 
18:04:06 <br-m> <syntheticbird> lol
18:04:39 <br-m> <jeffro256> Yeah lol. Shouldn't matter for consensus rule verification 
18:05:15 <br-m> <syntheticbird> but  basically we can do SomeWorkaround<Integer> and implement all the arithmetic and std::ops trait and call it a day
18:05:25 <br-m> <syntheticbird> i think
18:05:53 <tevador> I see loose consensus to implement monotonic timestamps and 30 minute FTL from v17. The DAA change has opposition.
18:06:46 <br-m> <rucknium> I think it's the job of the DAA change supporters, including me, to present a more convincing case that it's needed in the FCMP hard fork.
18:08:13 <br-m> <rucknium> I will see if I can get useful info about why some of the unnamed Monero/Cryptonote forks blew up because of their DAA. And maybe see if I can compare selfish mining revenue with the current DAA and ASERT/WTEMA.
18:08:48 <rbrunner> I only ever heard about coins with difficulties that had relatively low total hashrate, for what it's worth
18:09:01 <br-m> <rucknium> Maybe the own- and cross-elasticities could be somehow estimated based on historical data of those old forks.
18:11:06 <br-m> <rucknium> rbrunner: Yes. Being a minority hashpower chain in a given hash algorithm makes it worse. I mean, increases the total elasticity of hashpower with respect to the block reward, which makes things less stable and prone to osciallations.
18:11:25 <br-m> <rucknium> But if your own-elasticity is high enough, you can get into trouble too.
18:11:40 <tevador> Most CN clones had issues with profit switching miners that would rapidly mine a lot of blocks before the difficulty starts rising and then abandon the chain. The current DAA takes at least 75 blocks to react.
18:11:51 <br-m> <ofrnxmr> Maybe happened/happens to wow?
18:11:57 <sech1> Most small coins had to adapt to huge hashrate swings, this is not the case for Monero
18:12:38 <br-m> <rucknium> It's not true for now, but it could change.
18:13:41 <br-m> <rucknium> Zephyr Protocol made up a big share of total RandomX hashpower at one point in time.
18:14:20 <br-m> <rucknium> I think it was Zephyr at least. IIRC, @ofrnxmr:monero.social was following the developments.
18:15:03 <tevador> Qubic was a hashrate spike
18:15:48 <rbrunner> Yes, I think we had a time where Zephyr was considerably more profitable to mine than Monero
18:15:50 <br-m> <rucknium> I may see if zawy12 want to comment on it. He's still actively engaging with the subject, based on GitHub comments.
18:16:38 <rbrunner> Quickly checked, this is their current hashrate: 30.084 MH/s
18:17:21 <rbrunner> (If really directly comparable of course ...)
18:17:57 <br-m> <rucknium> More on this topic for now?
18:21:44 <br-m> <rucknium> 6. Share or Perish (selfish mining mitigation) (https://github.com/monero-project/research-lab/issues/146).
18:22:28 <br-m> <rucknium> tevador: Do the proposed DAA changes interact with SoP at all?
18:25:06 <br-m> <rucknium> I've been looking through https://github.com/Fountain5405/monerosim/blob/main/studies/sop/STATUS.md , produced by @gingeropolous:monero.social 's bot. It looks good so far.
18:27:13 <br-m> <rucknium> According to the MDP solver, the profitability threshold is alpha = 0.41, i.e. a selfish miner must have more than 41 percent of total hashpower to earn more revenue from selfishly mining than following an honest mining strategy. That's better than other proposed selfish mining defenses to date.
18:28:22 <br-m> <rucknium> Some unexpected choices by the bot for the MDP solving algorithm. I don't know why it's making those choices. In theory, it should arrive at the same answer regardless of the chosen algorithm.
18:29:20 <tevador> I don't think the DAA change interacts with SoP. It should be orthogonal.
18:29:46 <br-m> <rucknium> tevador: Not even the lagged measurements?
18:30:16 <br-m> <rucknium> For example, its first attempt was a bisection solver. I only found an obscure paper from 1979 that proposed that method. Now it's using the "Howard" method, presumably named after one of the founders of MDP analysis. But I don't see an algorithm named that in the well-known MDP solver libraries.
18:30:31 <tevador> The lag itself has an effect on the selfish miner's strategy. My simulation assumes honest timestamps for everyone.
18:31:04 <tevador> I haven't read the newest results from gingeropolous so I can't comment on it yet.
18:33:19 <br-m> <rucknium> Prior papers on selfish mining usually used the MATLAB/Octave implementation of MDPtoolbox (there are also Python and R implementations). I think it avoided the standard MDPtoolbox library initially because the selfish mining repos were GPL licensed. But now the bot's analysis is in a separate repo with a GPL license.
18:34:11 <br-m> <rucknium> Or maybe the bot's solver makes it easier to extract info about the depth and frequency of reorgs. I was having problems trying to compute and extract that info from the MDPtoolbox solver.
18:34:51 <br-m> <rucknium> MDPtoolbox is an old codebase. Maybe it's not very multi-threaded.
18:37:00 <br-m> <rucknium> Something I don't like about bots' writing style is that it doesn't define terms or notations completely. I've noticed it in the SoP analysis and the DAA analysis. It's probably defined deep in some scripts, but it takes time to hunt it down. And bots like to use terms like "sigma" and "p<" without sane statistical meaning.
18:38:32 <br-m> <rucknium> More on this topic for now?
18:40:43 <br-m> <rucknium> We can end the meeting here. Thanks everyone.
