In this episode of The Van Wirdum Sjorsnado, hosts Aaron van Wirdum and Sjors Provoost explain what Bitcoin Improvement Proposals (BIPs) are, and how the BIP process works. They discuss why the BIP process is a useful, yet non-binding convention within Bitcoin’s technical community. Aaron and Sjors start off by explaining what a BIP is exactly - and what it is not. They also explain that only improvements to Bitcoin software that affects other projects require a BIP. The two go on to dive into the history of the BIP process a little bit, noting that the format was introduced by Libbitcoin developer Amir Taaki and later updated by Bitcoin Knots maintainer Luke-jr. Finally, Aaron and Sjors explain how the BIP process itself works, that is, how a proposal can be turned into a BIP, and eventually be implemented in software. They also briefly explain how the BIP process could become corrupted, and why that wouldn’t be a very big deal. Chapters 00:00:00 What Bitcoin Improvement Proposals are 00:04:25 The origins of the BIP process 00:06:29 Discussion, drafts and reference implementations 00:11:54 BIP numbers, review and voluntary adoption 00:14:54 BIP editors, hosting and author responsibility 00:18:00 BIP layers, implementations and final status
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Aaron van WirdumLive from Miami and Utrecht, this is the Van Wirdum Sjorsnado.
Sjors ProvoostHello.
Aaron van WirdumHey Sjors, how are you doing?
Sjors ProvoostNot bad. I think it's warmer here than where you are, but...
Aaron van WirdumIt's pretty warm here. Yeah, when this podcast is being released, it will be day one of the conference. Bitcoin 2021 in Miami. We're expecting like 12,000 people, so that's pretty significant. It's the largest cryptocurrency conference yet to date. Are you impressed?
Sjors ProvoostYeah, it sounds big. I mean, I kind of like bear markets more because I think a subset of the people that go to that conference will stick around for the bear market.
Aaron van WirdumReal men are made during the bear market, Sjors.
Sjors Provoost[unclear], yep.
Aaron van WirdumAll right. Today, we are discussing the Bitcoin improvement proposal process, the BIP process.
Sjors ProvoostThat's right.
Aaron van WirdumSo yeah, the BIP process, everyone has heard of it. Although, probably not actually, like you said, lots of new people in the space, lots of people have no idea what the BIP process even is. So I guess we're going to explain it to them as well. So let's start, Sjors. What is a Bitcoin improvement proposal, a.k.a. a BIP?
Sjors ProvoostWell, it's just a document with a number that describes, that proposes an improvement to either Bitcoin, like the protocol, or, you know, how nodes communicate. Or it can be more of a standard, like a wallet format. Or, you know, the mnemonics, the 39, or the 24-word backup phrases. That's a BIP. Or it can be a meta thing, you know like BIP 1 and BIP 2 which describe the BIP process are also BIPs.
Aaron van WirdumRight, so, yeah, in a way, this is a little bit of a meta episode as well because we have discussed a number of BIPs, and um… Now we're going to discuss what a BIP actually is, and how the process works. So yeah, you just explained what a BIP is: it's it's a it's a piece of documentation for something in Bitcoin that requires some level of coordination or that could benefit from some level of coordination, do you think that's that's a fair summary?
Sjors ProvoostYeah I guess yeah.
Aaron van WirdumYeah so if…
Sjors ProvoostYeah I mean one of the rules is that you should not write a BIP for something that only you use yourself.
Aaron van WirdumRight, exactly, if you're building something patented for example, or just something that's just for your wallet, if your wallet developer, whatever it is, you're building and it's of no use to anyone else, and that doesn't need to be a BIP. But if you're building something that could benefit others, or that's useful for us to know, then you might want to draft a BIP, so other developers or maybe not even just developers, but I guess mostly developers, they'll know, you know, it offers a standard. So an example you mentioned is like a seed format for
Aaron van Wirdumbackups. So if you have one seed format, then other wallets can use that seed format as well. So people can easier switch wallets if they want, for example, or use some sort of standard backup device that's sort of compatible with all these things. Or there could be actual protocol changes. How do Bitcoin nodes communicate with each other? How fast? Let's say someone wants to make a protocol upgrade that precludes
Aaron van Wirdumminers from mining for the first nine minutes. That [unclear] need a BIP.
Sjors ProvoostNo, that wouldn't need a BIP.
Aaron van WirdumThat wouldn't?
Sjors ProvoostThat [unclear] need a BIP.
Aaron van WirdumYeah, that would need a BIP. Exactly. That's what I said. Like any protocol change. This was something someone actually suggested on the mailing list the other day, which is not going to happen. But yeah, some protocol change. Soft forks, hard forks, peer-to-peer layer type of stuff. Anything that benefits others would, well, at least benefit from a BIP. So yeah, the BIP process. Do you know when it was launched? When it was started?
Sjors ProvoostI believe Amir Taaki launched it in late 2011 because the first BIP is called BIP 1 and it's dated September 19th, 2011.
Aaron van WirdumExactly, yeah. Amir Taaki was an early Bitcoin developer and he... So he was getting… he wanted to be the Bitcoin development process. He wanted to make sure that it was a bit more transparent. Because up until then, you had developers discussing the Bitcoin protocol and upgrades. But there wasn't really any sort of documentation of it. So he wanted the process to be more transparent. So he
Aaron van Wirdumintroduced the BIP process.
Sjors ProvoostAnd I guess he was one of the first people to work on an alternative implementation, right? libbitcoin.
Aaron van WirdumExactly, yeah. So that was a good reason for him as well, for that reason, to actually have some sort of... documentation process.
Sjors ProvoostYeah, because for the most part, everything is in the Bitcoin Core source code if you want to know what the rules are. And that's, of course, not ideal. So more recent soft forks have been written as BIPs.
Aaron van WirdumYeah, it was modeled after the, I think it was called the Python enhancement process, I think. So, BEP… wait, PEPs? PEPs, I think, PEP. Yeah, so it was modeled after that. So at least the first iteration of the BIP process which is detailed in BIP 1 by Amir Taaki that was modeled I think almost directly from the PEP process, and repurposed for Bitcoin in a way.
Sjors ProvoostYeah, and one of the changes of course is that Python still has a supreme commander you know, a leader, a central authority. So I think there was something like an appeals process or like a final decision maker in the Bitcoin improvement proposal. That is not the case because there is nobody in charge. So that makes it a bit more complicated.
Aaron van WirdumRight. So, yeah, Sjors, how does the BIP process work exactly? Let's say, you know, you have an idea. You want to... You want miners to stop mining for the first nine minutes after a block is mined? How do you go about this? How do you turn this into a BIP?
Sjors ProvoostWell, the first step, as recommended by BIP 2, is to talk to people. And especially talk on the mailing list.
Aaron van WirdumSo before you go on, yeah, this is probably good to mention at this point. So BIP 1 was drafted by Amir Taaki. And then a couple years ago, the... At that time and still current BIP editor is Luke Dashjr. And he created BIP 2, which was based on BIP 1, but it was refined in a number of ways. So that's why you referred to BIP 2 just now.
Sjors ProvoostYeah. So if you want to make a proposal, you Google BIP 2. And then it says, hey, you may want to check whether other people think this is a sane idea at all and if it's useful to them. Talk to people or you can post it on the Bitcoin dev mailing list. You should also do a Google search to make sure that you're not proposing something that's been proposed a few hundred times before. But even BIP 2 says sometimes you can't find that on the internet that has been discussed before so you may just have to
Sjors Provoostpost it on the mailing list and somebody will point it out.
Aaron van WirdumYeah, the point being, it's a good idea to first actually discuss it with people before drafting a BIP because odds are your BIP has already been, you know, your idea has already been shut down a while ago or, you know, something existed or just a really dumb idea. And you're going to save yourself a lot of trouble if you first discuss it with some people who've been around for a while.
Sjors ProvoostYeah, it saves yourself time and it saves others' time. So, yeah, that's the first step.
Aaron van WirdumSo that's sort of step one, sort of the informal step one, right?
Sjors ProvoostYeah, and then pretty much it depends on what you're doing, right? But let's take something easy, I guess.
Aaron van WirdumYeah, like not letting miners mine for nine minutes.
Sjors ProvoostWell, let's take something simpler, like maybe this backup phrase, right? You want a BIP 39, the 24 words, and you have a word list. Probably you want to write some sort of implementation for it.
Aaron van WirdumYeah, but how do we save energy with that?
Sjors ProvoostOh, you still want to go to the 90s? I didn't read that mailing list.
Aaron van WirdumAll right, go on. I'll drop that one. Go on with your own example then, and we'll just keep wasting energy.
Sjors ProvoostThat's a good idea. So basically, you want to write the specification out in a document, but along with that specification should be, at least for some of the types of BIPs, should be an implementation that actually does that. So that you can point to actual software that is actually doing something rather than hand-waving. If you look at a patent application, those are usually just very vague, very lawyerly. It doesn't have to be a real product.
Aaron van WirdumDid you know there's a patent for an elevator to space?
Sjors ProvoostI'm sure there is, and that's because you don't actually have to build it.
Aaron van WirdumSo you can get to the satellite very easily?
Sjors ProvoostYeah, I can see some problems with that.
Aaron van WirdumThere's also a patent for... Like a thing that will swing a woman around when she needs to give birth and then like a centrifuge and then the kid will just shoot out in a net.
Sjors ProvoostWhat could possibly go wrong?
Aaron van WirdumBut yeah, I don't think these things actually exist. That was your point, right?
Sjors ProvoostYeah, that's my point because a lot of people will propose improvements to Bitcoin that cannot actually be built. And so it's nice to have at least some, you know… that thing, yet you should actually write some code. So in the case of Taproot, I think there was a specification, but there was also a working software implementation. And generally, as you're writing software, you find problems with your specification. And as you write the specifications, you may realize there's problems in your software. And other people will review it, and other people will presumably, you know, you might at some point send a draft version on the mailing
Sjors Provoostlist, and then you'll get a bunch of feedback from people. So that's the next step.
Aaron van WirdumSo yeah, hang on. So there needs to be some sort of example code or what's the correct definition?
Sjors ProvoostReference implementation is a technical term, but yeah, pretty much.
Aaron van WirdumOkay. So that's, so first one, step one was sort of discussing it with people that know what they're talking about. Step two is drafting it, including some code.
Sjors ProvoostYeah, I would say so.
Aaron van WirdumYeah. Okay. Step three.
Sjors ProvoostI don't know the steps are not actually numbered that way. But the idea would be that you probably want to send that specification at that point to the mailing list or to a group of people that you think will give you good feedback. Because then the next step is that people will read it and give you feedback and find problems with it. And then it's your job to do something with that feedback.
Aaron van WirdumYou ask the smart people if your idea makes any sense, then you draft it into a draft BIP. You write some sort of example code, and then you go back for feedback, right?
Sjors ProvoostYeah, pretty much.
Aaron van WirdumThat's the story so far. What's next?
Sjors ProvoostAnd so once you've addressed the feedback and you think the proposal is good enough, now it's time to request a BIP number, which is just a matter of saying, hey, Luke, can I have a BIP number?
Aaron van WirdumYeah, well, it's a little bit more than that, right? Your BIP does actually need to satisfy a number of formal requirements that are just a matter of doing it, just a matter of writing it up, mostly.
Sjors ProvoostYeah, there's some tedious formatting rules that are explained.
Aaron van WirdumYeah, exactly.
Sjors ProvoostBut usually what people, I think, will do is they copy-paste an earlier BIP and just turn it into their own BIP.
Aaron van WirdumSmart. So now we have a BIP number. Now what?
Sjors ProvoostWell, I guess the process kind of continues because now that it has a BIP number, more people will pay attention to it. So you'll probably get a little bit more feedback. Other people may, you know… if it's something that needs to be implemented, then other people may try to implement it. Now, if it's a soft fork, there's a lot more to it, I would say, because that's a consensus change.
Aaron van WirdumDoes it make the BIP binding?
Sjors ProvoostWell, nothing is binding because we're still dealing with this set of anarchists, essentially, right? The Bitcoin community. Ultimately, what you do in a BIP can end up in a piece of software. And that piece of software still needs to be installed by somebody. And they might just not like it. Which is one reason why you really need to seek out this consensus. Because if people think that there was no consensus over something, they might just not run it.
Aaron van WirdumYeah, I think that's an important thing to point out, that the BIP process and the overview of BIPs, it is informational. I mean, well, that's also a subcategory of a specific type of BIPs which we mentioned, but just the whole thing in itself is informational. It doesn't actually define Bitcoin or even anything in Bitcoin. It is a way of communicating concepts, but it… it doesn't mean
Aaron van Wirdumthat now, you know, Bitcoin in the end, is still defined by people running the software and by the software they're running. The BIP process…
Sjors ProvoostExactly.
Aaron van WirdumThe BIP process is… the BIPs are a tool. They’re not Bitcoin.
Sjors ProvoostYeah, and a lot of these rules that are specified in the BIP 2 are just to make sure that mailing list discussions don't take forever and that there's some predictability and what's going to happen when you when you do something. But ultimately, if you're not happy with the whole way BIPs work, you're completely free to run your own website and say, hey, I have a bunch of numbers and a bunch of documents, and I have very different rules. And then people might ignore that or not.
Aaron van WirdumYeah, that was sort of the next question I was going to ask, for which I, of course, know the answer, Sjors, but I still am pretending to be the journalist here. So Sjors, Sjors. What happens? So Luke Dashjr is currently the BIP editor. What happens if he becomes evil? Luke turns evil. What's the problem?
Sjors ProvoostWell, first of all, the BIP process is such that being evil shouldn't be a big deal because it's a fairly bureaucratic thing. But there is some subjectivity involved always, you know. Some people suggested using a robot to do this, but that just invites spam and problems. So an evil person could, you know. do things to the bureaucratic process that frustrate the community. Well, then somebody [unclear] the thing and just says, okay, now this is the new BIP place
Sjors Provoostand probably copies everything that already exists over.
Aaron van WirdumRight.
Sjors ProvoostI mean, that's not, that's not ideal, but I mean, this is the same with, it's, it's even easier than forking the Bitcoin soft software, right? Because it really just, you just clone the website and say, here's a new website, or here's a new GitHub repo.
Aaron van WirdumIt's hassle, but it doesn't actually do anything. Yeah, so you mentioned GitHub already. The BIP lists, the BIPs are currently hosted on GitHub, is that correct?
Sjors ProvoostYeah, and I mean, it's a Git repository, remember? So everybody can clone a Git repository on their own computer. So there could be thousands of backups. So if GitHub decides to go evil, that is really not a problem.
Aaron van WirdumYeah, they used to be hosted as wikis for a while, but I think... A long time ago, I think probably like eight years ago or something, they transitioned to GitHub. So they've been hosted there ever since.
Sjors ProvoostYeah, wikis are nice because you can do collaborative editing. But on the other hand, if everybody starts editing the BIP, then some people might not understand that something is already implemented. And they start changing the specification of Taproot right from under you. And then you get confusion because one node is implementing an earlier edit than the other. So it's probably good to have a benevolent dictator with very limited powers having one place to edit the specs.
Aaron van WirdumYeah, every BIP has one specific champion is what it's called, I think, right? Or maybe sometimes several. But yeah, someone who's basically in charge of that specific BIP and who's responsible for updating it or taking
Sjors Provoost[unclear]
Aaron van Wirdumfeedback into account.
Sjors ProvoostRight. Sometimes when, for example, you want to fix a typo in a BIP or, well, not a typo, but like add a picture, add a chart to it or some clarification to it. What the BIP maintainer will do, then the editor will tag the original authors on GitHub and say, hey, what do you think about these changes? And if all the original authors say, yep, that looks good, then it's merged. So the original authors are kind of in charge of the BIP, but everybody can help improve it.
Aaron van WirdumRight.
Sjors ProvoostWhich is a little bit less anarchy than a wiki where everybody can just go in and edit it without anybody signing off on it.
Aaron van WirdumMakes sense. All right, I think this is going to be my final question for you. Sjors, are you ready?
Sjors ProvoostI think so.
Aaron van WirdumSo I think there are sort of different specifications of BIPs. But that's not quite what we mentioned, is it? Like hard fork, soft fork, consensus, like these kinds of categories?
Sjors ProvoostI think you mean layers.
Aaron van WirdumOh, that's it. You know everything, Sjors.
Sjors ProvoostRight. So the layer, so you could be talking about a consensus change, like a soft fork or a hard fork. You could be talking about the peer-to-peer networks or how nodes communicate with each other. Or you can be talking about the RPC, which is like a part of the node itself. And you can be talking about applications, I guess, like wallets and things like that.
Aaron van WirdumRight, yeah, and that's all specified in the BIP.
Sjors ProvoostYeah, and I guess depending on the layer, there are some guidelines on what the standard of quality should be for what you're writing. So, for example, when you want to change anything about the peer-to-peer network, I think there needs to be at least one implementation, but also there needs to be... In order to make it final, which is one of the states that the BIP can be in, there needs to be at least a number of nodes out there in the wild actually using this that you can detect to gauge whether this
Sjors Provoostthing is actually being used. With the software, it's a bit more obvious that it's being used. It activates in ways we've described in earlier episodes. But with the peer-to-peer networking... You know, not everybody has to upgrade at the same time. So nobody might be using a new feature or everybody might be.
Aaron van WirdumYeah. Did you ever draft a BIP?
Sjors ProvoostNo, I have helped review a couple of BIPs, but I have not written one myself. Too lazy.
Aaron van WirdumWould you like to? I have a great example that you could use as a BIP if you want.
Sjors ProvoostI think I know where you're getting to. No, I would rather not.
Aaron van WirdumImagine how much energy we can save, Sjors.
Sjors ProvoostYeah. I don't have the energy, though, so unfortunately.
Aaron van WirdumAll right, yeah. You're not putting in any proof of work.
Sjors ProvoostAnd I think that was our pun of the week. Anything else?
Aaron van WirdumNo, I think that’s it from me, Sjors.
Sjors ProvoostAll righty then. Well, enjoy the heat and the conference.
Aaron van WirdumYeah, if you're listening and you see me at the conference, come say hi.
Sjors ProvoostYep. If you're listening and you see me at the conference, it's not me. So run away. And thank you for listening to the Van Wirdum Sjorsnado.
Aaron and Sjors discuss Bitcoin Core 32.1 and its updated security disclosure policy in this live conference recording, followed by audience questions. Links Bitcoin Core 32.1 release announcement and release notes...
Aaron and Sjors discuss the COLDCARD hack: the bug itself, how it could have happened, and some reflections on having had Coinkite as a sponsor. Note: If you’re using a COLDCARD and still haven’t moved your funds to a...
The COLDCARD hardware wallet has a critical vulnerability. If you are using the COLDCARD to store bitcoin, move them to a secure location as soon as you can. More information:...
Aaron and Sjors discuss what’s new in Bitcoin Core 31. Chapters 00:00:00 Episode 100 and Core 31 00:02:41 Cluster Mempool 00:10:45 Package Relay and Fee Selection 00:18:59 Private Broadcast over Tor 00:24:03 ASMAP and...