Skip to content

Latest commit

 

History

History
182 lines (153 loc) · 14.2 KB

20200901-meeting-development.md

File metadata and controls

182 lines (153 loc) · 14.2 KB

Meeting Notes: Development, Sep 01 2020

Development meeting held @ 3PM UTC in grincoin#dev channel on Keybase. Meeting lasted ~ 100 min.

Notes are truncated, and conversations sorted based on topic and not always chronological. Quotes are edited for brevity and clarity, and not always exact.

Community attendance:

  • antiochp
  • joltz
  • kurt2
  • lehnberg
  • mably
  • paouky
  • phyro
  • tromp
  • quentinlesceller
  • yeastplume

(apologies if I missed someone - submit a PR or contact @lehnberg to add)

Agenda points & Actions

1. Retrospective

  • yeastplume: We seem to be in a period of a lot of thinking and reflection, both on technical and governance issues. There's quite a bit of exciting stuff on the horizon, particularly with some new funding requests, but at least to me it still feels like we're up in the air with respect to what we think we want to achieve by HF4, if anything.

2. Agenda review

The proposed agenda was accepted, with mimblewimble/grin#3430 added to the agenda on @antiochp's request, and the order of slatepack adoption progress and unscheduled HF points reversed.

3. Action point follow ups from previous meetings

1 of 3 actions done. No progress since last.

  • lehnberg: So this is not an action only on me haha. I did one of three, happy to help with the rest as well for what it’s worth.
  • paouky: Considering the amount of developers actively working on grin atm, probably best to let this action point slide.
    • lehnberg: Well, on the one hand yes. On the other, it’s nice to know if we’re being attacked.
  • joltz: The second point requires a fair amount of time and devops ability. I think @mcmmike expressed some interested (and I'd be happy to help setup).
    • 👍: lehnberg
  • quentinlesceller: The third one is already done also by a third party: https://www.crypto51.app. Probably broken though 🤔
    • lehnberg: Is that formula good enough for us too?
    • quentinlesceller: I think so https://github.com/tdickman/crypto51
    • lehnberg: I can try to move that one forward with the help of tromp perhaps.
  • yeastplume: Okay, let's just leave it outstanding for now. Do we want to reassign/make the action point more granular?
  • joltz: It's probably ok for now as is. I'll try to bother @mcmmike about setting up some monitoring infrastructure around this. The third point seems to just use CMC + nicehash APIs and a basic calculation so shouldn't be too bad.
    • 👍: lehnberg, yeastplume, quentinlesceller

4. v5.0.0 planning:

4.1 DAA RFC

  • tromp: Still awaiting comments.
    • phyro: Yeah I think it should get more review.
    • joltz: 🔔 for me on review for DAA.
    • lehnberg: Any chance we could reach out to some POW people for review?
  • tromp: I specifically want to call attention to optional reduction for `FutureTimeLimit. We allow blocks to have timestamp up to 12 mins in future. Just because bitcoin timestamps can be 12*10 mins in future. But it still seems too generous and difficulty adjustment benefits from having less wiggle room for timestamp manipulation.
    • joltz: Do we know why bitcoin chose that parameter?
    • tromp: I heard silly arguments like allowing for wrong timezone settings. In this day and age a server should be able to have accurate time within a few seconds so I would argue for at most 1 min off.
    • joltz: Sounds intuitive but want to think on it some more.
    • tromp: Anyway, i encourage ppl to read RFC and perhaps play with the online simulator that I link to in this thread
    • 👍: joltz, quentinlesceller
  • joltz: Is there anyone outside of the community here that you would like to give it a review when it is ready?
    • tromp: I could ask zawy12.
  • phyro: https://twitter.com/peterktodd/status/1295928073448304640 is this relevant in any way?
    • lehnberg: Yeah I naively thought about ETH 2.0 testnet clock fail as well. No idea whether it applies though.
    • antiochp: Takeaway there seems to be agreement that multi-second skew is ok and expected, except for Peter Todd saying 1 day skew is possible...
    • joltz: I feel like there may be a lurking "gotcha" in there somewhere but maybe not, will need to think about it some more. would be good to ask for more feedback from anyone relevant we can think of that will offer some of their time 👍
    • tromp: I see that peter todd wants to allow times up to 1 day ahead for bitcoin. :(

4.2 Fees RFC

  • tromp: Still being written. I spent my time past week more on replay protection RFC.
    • 👍: lehnberg, phyro, quentinlesceller, joltz
  • tromp: I'm gonna have an RFC soon to put fees in line with weights. As the current settings are rather arbitrary and not miner incentive compatible.
  • yeastplume: Ahh, right. Is it worth taking into account consideration on how fees might be handled when using late locking?
    • tromp: Good point.
    • yeastplume: I'm not sure how we want to handle that case, but it would seem the originator would need to estimate high.
    • tromp: If a party needs more than 1 input and 1 output, then that should be known in time for doing partial kernel sig.

4.3 MMR index discrepancies

  • yeastplume: This sounds painful. They're 0 indexed in some places, 1 indexed in others.
  • tromp: Yeah, not sure if I'll get around to addressing that. Probably not, don't hold your breath. :)
  • antiochp: 🙉
  • yeastplume: Heh, okay. Will remain one of the funny little implementation quirks everyone has to deal with for all eternity (like much of javascript, for instance).
  • lehnberg: Tbh would be great if stuff is indexed the same way across the board, but get that it’s a pain to do it in the last hard fork, shame we didn’t think of it before.

4.4 Security/efficiency improvements

  • antiochp: IBD is the big one still tentatively for HF4 efficiency wise.

  • joltz: I think that point is more to just keep in mind as we go through other upkeep/changes as it will be our last opportunity for easy major security-related changes.

  • tromp: yes, PIBD will be huge syncing efficiency improvement.

  • antiochp: but we need dev resources for that, aka Jasper.

  • phyro: is PIBD worked on though?

  • paouky: Nope, afaik.

  • tromp: Work is suspended until Jasper returns. I propose we re-assign it if he doesn't return soon.

    • antiochp: Re-assign to who?
    • tromp: Tough question
    • antiochp: lol
    • paouky: I got it, give me 3 years and its done.
      • 👍: quentinlesceller
    • yeastplume: Yes, that's a tough one. Won't be an easy reassign. Can we have a point to come back and make a final decision on this one at the next meeting?
    • quentinlesceller: Realistically there is 2 months left to develop that.
    • tromp: I guess antioch is best candidate, but that means he can't work on other planned stuff.
    • antiochp: Yeah I don't have bandwidth to start another project currently.
  • lehnberg: Friendly reminder that PIBD doesn’t require a hard fork.

    • antiochp: Aim was to get new p2p messages in play as part of the hardfork. So hardfork not required but definitely easier to roll out that way.
    • tromp: PIBD only effective if large fraction of nodes support it. We can do it post HF4 if PIBD nodes and nonPIBD nodes can work side by side.
  • yeastplume: Okay, so let's come back to that one no later than next dev meeting.

  • kurt2: I have just asked Suyash Bagad, last year student at Indian Institute of technology in Bombay, author of the paper on upper bounds on Grin Outputs, author of the paper of an improved version of Revelio (proof of reserve for exchange using bulletproofs), author of rust implementations of bp and bp+, if he is interested/has time/feels capable of doing the parallel IBD implementation (probably through a funding request, this I don't know exactly). He answered to me he will look at it and get back to me.

    • yeastplume: Okay thanks for that, keep us posted.
    • quentinlesceller: Nice. Let us know if he is interested.
  • antiochp: Yeah we are juggling backward compatibility support for various p2p protocol versions - it would be nice if we could use HF4 to consolidate this. Basically break backward compatibility using HF (as a proposal). It gives us a chance to do some much needed cleanup post HF4, and simplify internals etc. It's effectively the last chance to do this cleanly like this. In theory we can deprecate later but it gets a lot more complicated and this will be a slow process.
    • tromp: Seems like a prudent decision. Let's deprecate p2p versions < 3 together with HTTP on HF4.
    • quentinlesceller: Yeah seems like a good thing to do. 👍

5. Slatepack Adoption status / docs

  • joltz: @paouky has been working on slatepack integration documents, I think he has a draft out there somewhere which is coming along nicely.
  • quentinlesceller: I'll dedicate some bandwith to the doc process this week.
    • 🙏: joltz
  • joltz: Before too long we will want to start reaching out to exchanges and services not already supporting slatepack and notify them of http(s) deprecation and give them resources needed to update before next HF. Does 60 days seem reasonable for a notice?
    • quentinlesceller: If we can do that before that'd be better? But 60 days is fine (that'd be mid november).
    • joltz: The more the better to avoid risk of temporary de-activation after next HF.
    • lehnberg: Also keep in mind that we’re in / entering crazy season. Exchanges may soon not have time to deal with us.
  • lehnberg: Btw was discussing with paouky yday: I’ll create a #docs (temporary?) channel where we all can sync on anything docs related? Could be good to get everyone on same page.
    • 👍: joltz, quentinlesceller

6. Unscheduled hard fork process alignment

  • yeastplume: Is there an outcome we're trying to get from this discussion point?

    • joltz: If not a concrete process to follow, maybe a more generic approach for how to handle this kind of thing. There may not be a concrete policy to follow step by step but maybe we can reach an agreed general desired approach.
    • lehnberg: Yeah, a game plan for when we need to fork
    • tromp: Assuming we can't get the round reduction and integrated payment proofs done in time for HF4.... we then have a strong incentive to do a HF5 sometime in the next 1-2 years. After careful review of the new schnorr cryptography.
      • 👍: antiochp, mably
      • joltz: As well as payment channel and BP+ opportunities.
      • lehnberg: So just to be clear on that, what would we guess are the chances of getting that in for HF4? 10%?
      • antiochp: 0.1-0.01%
      • tromp: <1%
      • joltz: In addition to requiring a ton of review it would require some major code changes which would also require a ton of review.
      • lehnberg: Oh. I’m going on vacation again, two years brb. Can we unlaunch Grin and do it over for 2023?
        • 🙃: joltz
      • lehnberg: Taking Grin private at $0.42
  • yeastplume: Can always launch Grin2.

    • antiochp: moving to a new signature scheme would effectively be Grin 2.0 yes, and this is arguably a new signature scheme.
    • lehnberg: Is it completely beyond the realm of reason to ask we schedule in another fork in for this?
    • antiochp: I think we'd need to schedule it without having a scheduled date though.
    • lehnberg: I know the reasons not to, and seems like it could be a really nice motivation for unscheduled hard fork. Arguably better than taproot. But still...
    • yeastplume: Set for a random block in the next 5 years, based on a hash of a target block's POW.
    • tromp: I think we should schedule HF5 after the crypto reviews are done.
    • lehnberg: Centralisation is bad, but decentralisation before we’ve got enough traction might tie our hands up.
    • antiochp: We have no idea how long this will take?
    • lehnberg: If we set a date, we’d have to hit it. If we don’t set a date, we don’t have to do anything. Just devil’s advocating it.
    • antiochp: Sure, unless we fail to hit it, which is entirely possible.
    • lehnberg: But then we could add another one? But yeah, I see the problems with this of course.
      • antiochp: lol
      • joltz: What is to stop us from doing that perpetually though?
      • tromp: Nothing.
    • lehnberg: Just worry we'll never get there otherwise.
    • yeastplume: But then it's hardforks all the way down.
    • tromp: Let's agree to have a HF5 in the next 3 years but not schedule it until we're ready enough (within 6 months). But presumably we'll run out of sensible &very-desirable consensus changes eventually
      • lehnberg: You mean, not schedule it, and hope to do an HF5 with support of the ecosystem, correct?
      • tromp: Correct, not schedule it now.
      • yeastplume: Grin Classic(tm) is born.
  • joltz: Sensible and desirable sound very subjective. What is sensible to all of us today may or may not be to the active core team in 3 or 5 years.

  • antiochp: We can signal our intent and desire to do an HF5 in a couple of years, but it will always be opt-in.

    • joltz: I would be curious what this would look like in practice.
    • tromp: Maybe it wld look like that Monero classic that didn't go along with the Pow change, and quickly became economically irrelevant.
  • phyro: Perhaps it would make sense to first convince ourselves we want another HF for this (not saying we don't). But this is the first time I've seen us talk about this. What is the problem if we don't do this and how bad is it?

  • tromp: Exactly, our desire is to eventually freeze the consensus model but we don't know yet if HF5 will get us there.

  • joltz: I think by fleshing out our upgrade process we may have a better understanding of what approach to take here.

7. Other questions

None.

Meeting adjourned.