Research
Satoshi
Timechain
Search Donate
Sponsors
Cake Wallet, private Bitcoin and Monero walletSideShift.ai, no-signup crypto exchangeOrangeRock, non-custodial bitcoin spot and perps tradingZcasheCash.com
Home / Podcast / S15 E2 / Transcript
Transcript · S15 E2 · 1:00:39 · 30 Dec 2023

S15 E2: Sergi Delgado on Developing Bitcoin at Chaincode Labs

With Sergi Delgado. Hosted by Vlad Costea.

← Episode page Plain text
Machine transcript, corrected by hand. It can still contain mistakes, so the recording is what counts. Tap any timestamp to play from that moment. Use Cite to copy a timestamped link and a short attribution. Dotted words were hard to make out in the audio.

Search this conversation

0:31Vlad CosteaHello there and welcome to the Bitcoin Takeover Podcast. I am Vlad and we are here in La Crypta, a very beautiful Bitcoin place. The owner, Agustín, let me record here and he said that to him it's sort of like a fight club sort of place where he gets friends of his and Bitcoiners and they hack, they build stuff. He works on Nostr stuff. So thank you very much, Agustín. You're also going to be on the show soon. And I'm next to Sergi Delgado. And he is a developer at Chaincode Labs. He works on Bitcoin and Lightning projects.

1:12And I think the funniest and most interesting project that I found in his GitHub is The Eye of Satoshi, which is a watchtower implementation that he wrote. And while we were here a few days ago, he also made a presentation in which he spoke about a Lightning simulation sort of software that he used. If you want to test new features or test a new way to make payments, that can be very cool.

1:43So, I guess this was a pretty in-depth introduction. Welcome, Sergi. What do you want to talk about first?

1:51Sergi DelgadoWhat would you like to hear about first? We can start by SimLN, if you like, which is the thing I was presenting here earlier this week. I think it was like three days ago or so. Given I'm not doing that much stuff around The Eye of Satoshi anymore. So yeah, I can kind of like give you an introduction of what SimLN is and what the... why did we build it.

2:14Right? So I think you made a nice introduction of the idea. We created a payment simulator for Lightning, or an activity simulator more than a payment simulator for Lightning, because the main comment we get normally is like, "Okay, how is this different from Polar or anything like that?" Right? So the idea behind SimLN is, if you have a project, either like a node implementation or something working on top of Lightning, and you need to simulate activity on Lightning, it's perfect for you to just like... You don't have to like waste the time like creating these ugly bash scripts that are only going to test like a subset of the functionality that most likely you want to end up testing, or you don't want to spend time and resources like building this from scratch. It felt for us that a lot of projects in the space had like ugly, incomplete scripts for testing like small subsets of functionality.

3:14So the effort was being replicated. And most of this was not even open sourced because, again, like, that's something that is not... it's not like production ready. It's not something nice that you want to like put out there. You know, you use it for yourself and if it's not complete then whatever. So that was kind of like the starting point, the motivation behind this. We built it, I think it was around, we started building it around August as a Chaincode Labs kind of like workshop. I mean, we brought together some people and like there were people from Chaincode Labs and there were people from different parts of the world actually.

3:54The team that started working on that was Joschisan from Fedimint, it was Carla and me from Chaincode, and then there was Emmanuel who came from Qala Africa. And one of the main use cases we saw for this was channel jamming. We wanted to have like a test framework for channel jamming. So the idea, the first idea was, okay, we're going to test payments. Because I mean, at the end of the day, most of the stuff that you're going to be end up testing in the Lightning Network are going to be payments, right?

4:29So the core idea of this is that you may have a setup already, a Lightning Network, either a regtest Lightning Network or something on simnet or something like that. And then you want to test something on nodes that you may control and something on nodes that you may not. Then the how you do this mainly is that you give connection details from the node you do control and then you create the activity that you want to test. It may be like, I don't know, pay from Alice to Bob like 300 millisats every second or something like that.

5:01Or you may want to do this in a more random way. That's one of the things that we took more time into, which was, okay, I may not know exactly what the amount or the time I want to test is, but I want to test something that makes sense in terms of the Lightning Network. So can we kind of like abstract or like emulate the behavior of the Lightning, the real Lightning Network, and put it there? So whatever you're trying makes sense, let's say it's realistic. And obviously, I mean, we did this randomly.

5:34I mean, we generate this in a random way and we have made like some design decisions that may not completely mimic how Lightning works, but we think it's a nice starting point for this. And we released this, I think it was like three weeks ago or so. And the idea right now is to get as much feedback as we can get. So if there's any functionality that you want there and it's not there, let us know.

5:58Vlad CosteaInteresting, but in your implementation of this simulation of the Lightning Network, what kind of codebase did you use? Were you using Blockstream's Core Lightning or were you using LND by Lightning Labs, or maybe Lightning Dev Kit?

6:17Sergi DelgadoRight now the simulator works both for LND and Core Lightning, so you can connect to any LND or Core Lightning node. And the idea is extending it to also cover LDK and Eclair down the line. LND and Core Lightning was kind of like easier for us, because the interfaces are normally better known. And I was used to work with CLN before for The Eye of Satoshi. And Carla was used to work for LND.

6:48She was working at Lightning Labs for kind of like a long time. So it was kind of like a nice team in the sense that I know how to do this in CLN and you know how to do this in LND. We built all in Rust, by the way, like as it should be. And we don't have like that much experience with Eclair. We do with LDK. So the next, like, normal step should be like go for LDK and then try to figure out how to do it for Eclair too. But...

7:20Again, it's completely open source, so if someone knows how to do this in any other way, the whole code base is built using traits. So it's really easy to just like add new features and add new nodes to the existing implementations.

7:32Vlad CosteaYeah, that's certainly interesting. And before we started recording this interview, I warned you that I was going to ask you this question, and you told me that you have received it three times already this week, or this past week. There was this very critical vulnerability that was discovered in the Lightning Network. And it was reported and there were some pretty fatalistic predictions about where the project is going, and some said that there's a requirement for a soft fork on the base layer to fix Lightning. And some even acted as this is the doomsday for Lightning Network. This is it, you should stop developing it because it failed. Yet you still work on it. Why?

8:18Sergi DelgadoBecause I don't think it's as severe as some people may think about it. I mean, it's something that it's fundamental on how Lightning works, but we haven't seen Lightning stop working after that was released.

8:35Right now, there are some patches in all the major implementations to try to make it less severe, because this was disclosed to the wild, I think it was like a month ago or two months ago, but like the devs knew about it like a year ago or something like that. I mean, it was like properly disclosed. Do I think there's a problem there? Sure. Do I think it's easily exploitable? No, I don't, personally. I think that the requirements for this to work, both at the Lightning level and especially at the Bitcoin level, are pretty hard to pull.

9:18Theoretically, you can do it. You can like kind of like eclipse those nodes in that sense, like send those conflicting transactions to make them not be able to, or like to steal part of the funds. But it's not like you can pull that off by yourself easily without spending a significant amount of money, like for clogging the mempool.

9:47And in the end, if you don't want to expose your node that much, you can always reduce your exposure in terms of HTLC count or HTLC amount. I think like Lightning in many ways depends on how Bitcoin works, depends on how likely are you to be able to settle something on-chain. And we've known for years, from its inception, that there's this... what's the word? This requirement, let's say. That's not the word I'm looking for, but let's say requirement. That this assumption, that's the word I was looking for.

10:32There's this assumption that you're always going to be able to close a channel in case you need to. And that's not really true. Like, if the mempool is clogged and you need to close a channel and then you cannot pay the fees that you're supposed to be paying for it, or you don't want to afford the fees that the mempool is requiring, then you're kind of screwed. And if the whole functionality of Lightning depends on the fact that you should be able to close a channel on demand and you cannot, then we could say the same thing about Lightning being broken since its beginning.

11:05But I don't think that's it. There may be situations in where it may not perform as good as it's supposed to. But that doesn't mean it's broken. Not for me at least.

11:15Ad voiceoverWasabi Wallet is unfairly private. It's the most advanced, most used Bitcoin privacy wallet, with half a million downloads across Windows, macOS and Linux, as well as thousands of fresh and new bitcoins getting mixed every month. Wasabi makes use of the new generation WabiSabi engine to create mega CoinJoins, thus mixing your bitcoins with those of hundreds of other users. For amounts lower than 0.01 BTC and remixes, you pay no coordination fee. If you don't use your CoinJoins, Wasabi Wallet has a native Tor integration and downloads block filters to help you keep your network level and public key privacy. Download Wasabi Wallet for free today at wasabiwallet.io and experience the future of Bitcoin privacy.

12:14Vlad CosteaLet's talk about one of your other projects, which is The Eye of Satoshi. It's a watchtower implementation, which you created a couple of years ago. And I was going to ask you, what is a watchtower? I remember reading about it in 2017 or 2018, and at the time the critics were saying that watchtowers as a concept are centralizing, and they're imposing someone's authority over the economic activity between other nodes. So how does this work?

12:45Sergi DelgadoThe idea of a watchtower in general is someone that may act in your behalf when you are not connected to the network. So one of the other assumptions or requirements that the Lightning Network poses towards people running on it is that you should be online, not all the time, but at least periodically.

13:05If you go offline for a long time, then your counterparty can try to cheat. Because at the end of the day, from the outside, all the states of a Lightning channel are valid states, and the only one who knows what's the latest state between two parties are the two parties, right? So if I try to spend something from an old state in where the funds are more beneficial for me, and you're not there to say, like, to say that that's not true, then I may just get away with it.

13:42Like, I'm not going to propose something that is more beneficial for me and then complain about it myself. You should be the one saying, "Hey, no, that's not true." So the idea of a watchtower is a service that it's there when you're not there. So you can send all the information that it needs in order to react to a channel breach, which is the concept that I was describing. And then the watchtower would be able to react to that channel breach and like sweep all the funds towards yourself because your counterparty was trying to cheat.

14:17In terms of centralizing, I mean, it depends. You don't have to run a watchtower for anyone else. You can run your watchtower for yourself. It may make more or less sense. Like if you are able to run a service 24/7, then you may also be able to run your node 24/7. But it may be the case that, for instance, you don't want to run something that has hot keys on it 24/7, but you want to be able to react to that 24/7.

14:43I think, for me, watchtowers, the idea was to be able to use them as a non-trusted third party. And the whole point of it is, if you're offering these as a service, it may not be the case that there's only like one or two watchtowers there like getting all the information. The way I used to envision it was this should be like an open market. A single watchtower may not even have all the information from all your channels. Like you may be able to like be connected to multiple of them and then like just separate all the stuff depending on whether you want more replication or like someone is offering you a better service or so on.

15:24I don't see like how that centralizes the Lightning Network. It's something that you use, and you shouldn't be using it in a trusted way. If you're trusting the watchtower, it's kind of like the same as trusting your ISP or trusting anything else. And I don't think they should be trusted in any way.

15:44Vlad CosteaYeah, on the topic of the Lightning Network, there have been lots of proposals to make it route better, to make it more private, to make it more efficient, more decentralized, and yet it seems like the efficiency that came with, I guess in the last couple of years, the Lightning Network became more reliable, but it was mostly because some people gave up on the Raspberry Pi nodes, which I think is detrimental on the long term.

16:11And they started using an LSP like Breeze or like Phoenix. Or they even switched completely to something which is 100% custodial, like Wallet of Satoshi or whatever. Do you see any way in which we can get more decentralization in Lightning and also privacy?

16:33Sergi DelgadoI think that depends on the user itself. Like if you're valuing the reliability of the payments instead of the decentralization of the network, then you're like choosing Wallet of Satoshi or like custodial service or like something like that. Which, by the way, I think it's what makes more sense for end users.

16:56Like, a lot of us do care about it being decentralized, being more private, something, something. But the end user, like the real end user, my mom, if at some point she ends up using this, she may not care that much. Or, I mean, she may if I tell her, like, "You know, you shouldn't be doing this and that." But like, I don't think the view towards decentralization and privacy is shared amongst like all the individuals that are going to end up using this. I think we've seen some improvement in the way this works.

17:36Because whether we like it or not, centralized things were better in terms of UX. You know, if I have Phoenix, you have Phoenix, we send a payment to each other, like, that's hardly going to fail. Same with like routing fees, same with having a Raspberry Pi or having a pretty beefy setup. Do I see a way of making this better? Not really. Like, if we don't offer something that the end user is going to want to have, and that thing goes through running your own node, then there's no, like, real purpose, real reason for doing it.

18:15Like, I do run my own Bitcoin Lightning node because I would rather not be gatekept by anyone else, especially in Bitcoin. And I use Phoenix because I think it's like really useful for my use case, which is like if I'm traveling around Argentina, for example, and I have like 200 or 300 bucks in my wallet, I may not care that much if Phoenix is in the middle as an LSP or not. I would rather not having anything like really custodial, but that's just like the way I use it.

18:51And I used to have like a dual setup, like with Zeus, like with my own node, and then Phoenix in case, right? So I could like choose whether I wanted to like have these over Tor or that, which may have like a higher reliability, but I may use like more sporadically when the other one fails. So, to summarize, I think, as I said, it really depends on the end user, and if we are not offering anything to them that they really value and goes towards decentralization, then they are not going to use it.

19:23Ad voiceoverCryptosteel offers a durable physical backup for cryptocurrency key and recovery words. These user-friendly cold storage devices withstand harsh conditions, including fires, floods, and earthquakes. Made from the finest European stainless steel, they are built to last. Accessible to all and requiring no computer skills, the original Cryptosteel cassette and capsule have been innovating Bitcoin security since 2013. They provide a reliable and robust backup, essential for the safety and longevity of your digital investments. Ideal for protecting your digital wealth. Cryptosteel isn't just a one-trick pony.

20:05Of course, it works with your BIP39 seed phrase, but you can also use it for important passwords, Bitcoin Core passphrases, Nostr private keys, and much more. Buy your Cryptosteel metal backup today from Cryptosteel.com and use promo code BTCTKVR to get a 10% discount. Cryptosteel: secure your Bitcoin like an OG.

20:32Vlad CosteaIn the first part of this interview, we established that obviously Lightning has not failed. And I think there are two metrics that prove this, even though the latter one is not very optimistic. So the first metric concerns uses and number of transactions. And we can see that we already have a nation state that uses Lightning Network every day. And we have a lot of economic activity with small transactions being moved back and forth. We have a social network that's decentralized, which was built with the idea of enabling users to tip each other or zap on Nostr, or "No star," because I found out that it's actually pronounced as "no star," which means "good night" in Welsh.

21:12"No star," Ben Arc told me. And the other metric, which I guess is more relevant for Ethereum people, is TVL. It's what they call total value locked, as in how many coins are locked on this second layer. And it seems like Lightning has been not necessarily stagnating, but it's still less than 1% of the Bitcoin supply that's being moved through it. And why do you think it's so? Is it that you think whales don't really trust second layers, or they can afford, or the fees have been so small that they could afford to pay for them on the main chain?

21:54Sergi DelgadoMaybe. I really have no clue, to be honest, about this. I guess, from what I said, and again, I'm definitely not an expert on this, but for you it may not make sense to have coins locked there, for like the risk of having that in a hot wallet may not be worth it. Especially if you're not moving those funds, like, normally. Like, if the only thing you're doing is like making a payment every now and then, and you're like really wealthy, you may not care about like how high the fees on chain are.

22:31I mean, otherwise, we would have seen most of the traffic being moved to the Lightning Network, apart from like, you know, like ordinals and like stuff that is clogging the mempool. But I don't think that was the case, right? The mempool was still like having volume before like ordinals and all this stuff started to like be the main use of it. I don't know, honestly I don't know. Maybe we've reached a level of capitalization for Lightning that makes sense for the kind of traffic that we have, and given if payments are not failing and you're able to like use it and like have proper revenue with it, and you're a routing node, you may not need to open more channels because you don't see that you're getting more revenue with it. Again, I don't think... It may be above my pay grade. Sorry. The question may be above my pay grade, but I have no clue.

23:33Vlad CosteaYeah, to me, it's really upsetting sometimes when I see that WBTC, which is Bitcoin that's being custodied by BitGo and issued as a token on the Ethereum blockchain, that one has a much larger volume than Liquid and Lightning and everything in Bitcoin combined as a layer 2.

23:55Sergi DelgadoDo they get like any interest on that? Are they like making money out of it, or it's just like something that they lock for reasons? Like, what's the purpose of that?

24:05Vlad CosteaThey just want to put it in various contracts. I spoke with a guy here in Argentina. He says he never sells his Bitcoin. He just puts it in some DeFi contract and earns 8% a year or something like that, and he uses that 8% to pay the bills or whatever.

24:22Sergi DelgadoI guess the point here is that the people who are doing this see more revenue or like a better... Yeah, mainly like a better opportunity doing that in terms of like revenue than like building a routing node and like getting fees for routing payments. There's also a higher risk. Like, I would personally not put my Bitcoin wrapped in any Ethereum whatever thing, because we've seen multiple times how rugs have been pulled, and then people that were making 7, 8, 13%, whatever percentage of interest on that land, ended up like losing money because, you know, like you had a decent amount of money put there hoping that you would, I don't know, like, make millions on it.

25:14If you're down for that, if you're down to like add the additional risk, whatever. I'm not. I don't speculate in that way. But, I mean, we've seen it, we've seen it for years, there's people who would bet on everything and then, you know, eventually we see the news about like how many people have lost their money. So, the fact that the numbers look better or more interesting is not appealing to me, to be honest.

25:45Vlad CosteaYeah, I think this is a good moment. You told me before we started this interview that you're more focused on Bitcoin Core these days than Lightning, and I spent most of the time asking you Lightning questions.

25:58Sergi DelgadoI spent like a decent amount of time doing Lightning, so it's completely fine.

26:03Vlad CosteaLet's also talk about your work on the Bitcoin protocol, the base layer. What do you do there with Chaincode? Or by yourself?

26:12Sergi DelgadoSo I moved to Chaincode to start working back on Bitcoin peer-to-peer, which is what I was doing back in the day before starting working on Lightning. My background is more in academia. So I did a bunch of research on the peer-to-peer layer, mostly about like how to infer topology and how to like do things in a way that Core doesn't agree.

26:36And at the time I thought it was a good idea. Then I saw like what was the motivation not to go towards the route I was going for. So I was kind of like the attacker, and, I mean, in my mind I was not, but like, I was kind of like the attacker to the protocol. So I moved there to work on peer-to-peer. And the idea of what I'm trying to do is hardening the peer-to-peer network for Bitcoin. So analyzing like what are the potential errors, the potential attacks that can be pulled on Bitcoin, and try to minimize the impact of that.

27:10In terms of like, again, privacy or DoS attack vectors or like network inference, so on and so forth. I've only been around for Core like six months now. So right when I moved to... Well, not six months actually. I've been in New York for six months and working for Chaincode for five, I think. So far, I've been reviewing the Bitcoin peer-to-peer code. I got my first PR merged three days ago, which I'm like super happy about. Like, four months to get a PR merged, not that much.

27:44It's not like a super relevant PR, but it has to do with how we add nodes manually and like the edge cases that were around that part of the codebase. But the idea is getting that. I'm building, or I'm like writing a lot of how the peer-to-peer network works. And soon™, I hope to be able to be releasing some blog posts about the whole stuff, like how it works from the ground up. So if other people want to contribute to the network part, they don't have to go through the same thing I've needed to go through.

28:23As I was saying, like I have a pre- academic background in that sense, so for me writing down how things work makes me understand how things work. And then if I already have it written down for me, I can just put it up for anyone else. So yeah, I mean, to me it's like super interesting understanding how it works, trying to like find the small details that may not be perfect or may have like an edge case that can break things. And instead of trying to exploit it, try to fix it.

29:00Vlad CosteaWhat are the potential benefits to improving the peer-to-peer side of the Bitcoin Core code? Could it be that you communicate much easier with other nodes around the world or sync your node faster? What do you think are the potential benefits for developing this?

29:19Sergi DelgadoWell, the thing that you should think about here is that everything in Bitcoin builds on top of the peer-to-peer network. Without the peer-to-peer network, we don't have communication. I mean, you may have like the blocks in satellite or something like that, but like, that's just like one communication channel, one side channel that you can use when you don't have actually the peer-to-peer network.

29:40But everything works on top of that. So if the peer-to-peer network is slow for some reason, then the whole codebase is going to be slow. If there's an issue with how nodes communicate with themselves, then you're going to have an issue. If there's a way for an attacker to isolate your node, then you're not going to receive anything, right? It's something that I've always found amusing, because, not these days, there's a nice amount of people working on peer-to-peer these days. I think I'm super excited about it because you can talk with other devs which are also interested in this these days.

30:20But the peer-to-peer code is one of the code that has changed the least since, well, apart from consensus, obviously. But how it works hasn't changed not much since when I was doing research in 2015. I mean, the code, the shape of the code has changed, but how it works itself hasn't that much. And I guess it's mainly because, you know, if it works, don't break it. But it used to be the case when I was like doing research back three or four years ago that every year or so there was like a new attack or a new way of like pulling something network-based that may affect the way Bitcoin was working. It could be like a different kind of like an eclipse attack or like an attacker with like...

31:12Like a state, nation-state kind of attacker could like infer where the transactions came from, and then if they have like more information than that, they may be able to like know who is creating those transactions, or you may be able to eclipse some nodes or so on. So in the end, I think like the robustness of the Bitcoin peer-to-peer network improves the robustness of the whole code base, of the whole node. Like without it, you know, you're kind of like screwed.

31:44Vlad CosteaBefore I ask you the next question, I just have to mention that I must thank Cryptosteel and Wasabi Wallet for paying for my plane ticket. I couldn't have been here if it wasn't for their donations. So thank you, guys. And I just realized that that's a Cryptosteel Capsule.

32:00Sergi DelgadoYeah, it's a Cryptosteel Capsule. It's not available here in Argentina yet.

32:07Vlad CosteaYou can take a look if you want.

32:09Sergi DelgadoI'm not opening it. I'm expecting this has like something on it which I'm not going to look at.

32:14Vlad CosteaIt has my Nostr private key, so you can check it out if you want. Only a few letters, not the rest of it.

32:20Sergi DelgadoYeah, I don't want to impersonate you on Nostr, so let's not open it up. I can like definitely tell there's something inside.

32:28Vlad CosteaYeah. And I was thinking while you were talking about improving the peer-to-peer layer of Bitcoin and the communications, that basically some guys who are very adamant that we should ossify see you as the enemy, you know, the guy who is thinking of big ideas but will end up breaking Bitcoin.

32:47But in the cypherpunk circles, this is really fascinating because you're trying to improve Bitcoin. How do you reconcile with the fact that there are people, you know, you do a lot of work learning how Bitcoin works and playing with the parameters on testnets and trying to think of ways to make it better, but at the same time there are guys who not only that they don't appreciate your work, but also consider that you're a potential enemy.

33:14Sergi DelgadoBecause I'm trying to understand how it works? Like, I don't get... I don't get the point.

33:20Vlad CosteaNo, because you're proposing changes to Bitcoin.

33:22Sergi DelgadoOh, of course, because like complexity means you're the enemy, right? Or changing anything on the codebase means that you're the enemy. I think... Okay. So, are we assuming that, you know, the codebase as it was in 2009 is the perfect codebase? Like, that it was, like, bulletproof or something? Like, do we think that we should like scrap all the improvements that have been added to the codebase since like whatever year that we magically decide on?

33:55Like, I do agree that, you know, complexity is kind of like the enemy. Like if you make things like too complex, then there's more ways of like things breaking. Like the more complex the system is, the more likely it is that it will break for whatever reason. But people also want functionality. You know, it's like, "Oh, we want to be able to like transact fast, but we don't want to like change the confirmation times. We want all our transactions to be confirmed fast."

34:28In the sense that we don't want to wait for like many blocks if the mempool is clogged. But we don't want to increase the block size, which I'm not advocating for. It's just like, this is always a trade-off. It doesn't matter what side of Bitcoin you're looking at. If you want to make something better for some use case, you may be adding complexity, which may be completely tangential to your existing use case, and there's no real reason for you to complain about it.

35:01But if we just like see complexity as a problem without like properly analyzing what it's bringing to the table, then we are never going to change anything. Like, if we are okay with how Bitcoin was in 2016, then, I guess, fork it from 2016 and like work with it. You may not be happy with it because, you know, it would be a completely different system and you would not... I mean, forking it there and creating your own project means that you're not working on Bitcoin anymore.

35:36It's all about what the community as a whole agrees on. There's always going to be people, one wanted to do one thing and people wanted to do another thing, and at the end we have to compromise on what's better. I know, like, I don't know how people see this in this way. It's all about, like, who has more power here, who makes the decisions. I really don't know what are the arguments from people who are like against moving forward.

36:01Vlad CosteaYou spent quite a few years developing the Lightning Network, and I was going to ask you if there are any other layer 2s for Bitcoin that exist or are being proposed that you like, and to present maybe pros and cons of each one of them according to your expertise or understanding of them.

36:20Sergi DelgadoHow do you define a layer 2? Because we could like be super controversial here. Is Liquid a layer 2? Is Liquid a layer 2 for you? Is it not? Like, if it's working sideways, it's considered a layer 2, or it has to be working on top of it?

36:38Vlad CosteaAnything wrapped is layer 2?

36:40Sergi DelgadoLike, I don't know, I'm actually asking you, because I think it depends on who you ask. There's people who consider Liquid a layer 2. I think it's kind of like between one and two, but it's not really two.

36:53And I think it has its use case. Not one that I normally advocate for, because I don't see the point for myself. But there may be people who find it interesting and do find a use case for it. I haven't seen any proper development of anything that I consider layer 2 being there. I cannot tell, like... Maybe you know examples of something that may be considered a layer 2 and we can discuss about it. Myself, I have no clue. Like for me, the only layer 2 that is actually working and there's active development and it's being used is Lightning.

37:34Vlad CosteaOn the topic of Liquid, I think it was mostly built for the federation members, which are exchanges, because they can settle their transactions on a chain that has privacy built on top of it. So you have Whale Alert and all of these bots on Twitter that let everyone know when a large amount of Bitcoin has been moved. And they can prevent that by using confidential transactions, but I think these exchanges figured out that they can essentially manipulate the market by broadcasting this information to the entire world, so they can profit from this state of uncertainty where people are asking, "Wait, what does this mean that thousands of Bitcoins have moved from this exchange to that other exchange?"

38:17So I think in principle, the idea of privacy between exchanges is good, but exchanges have figured out a way to take advantage of the openness of the Bitcoin ledger. So yeah, it's delicate. Also, Liquid has lots of other ideas that have been tested, but none of them caught up because I think it approached them backwards. As in, they looked at Ethereum and they saw, okay, Ethereum has NFTs. They also built Virtoshi. It didn't get much traction, but...

38:56Sergi DelgadoI mean, to me, I'm not saying Liquid doesn't have some value. I find it really interesting in terms of testing stuff. As you were saying, confidential transactions were added there, and it's something that I don't think is ever going to be added to Bitcoin, but like as a research project, it was interesting to see, you know, and it was adding functionality that, again, if it doesn't... At some point, I think it was kind of like the new Litecoin in that sense, or like the usable testnet. We try something here, if it works, we may be able to like backport it to Bitcoin.

39:33For me, that's pretty good. But I think it's not something that end users use that much. Corporations may use it, but not something that the average user of Bitcoin would end up using. I completely forgot about, again, like whether you think this is layer 2 or not, there's Fedimint and there's Cashu, right? Are those considered layer 2s? Do you consider those layer 2s?

39:58Vlad Costea2.5s?

40:00Sergi DelgadoYeah. I mean, there's all this stuff that is being built. I don't want people to call me off, especially like Calle and the people at Fedimint. I do like what they are doing. But it's all about what we consider one thing or the other.

40:19Ad voiceoverHello Bitcoin Takeover listeners, this is Viktor from IVPN. We could have produced a flashy ad with lofty claims, but we like the straightforward approach, so I'll just stick to the basics here. How are we different from other VPN providers? IVPN is run by Bitcoiners. We've been accepting Bitcoin since before the block size wars, now using BTCPay Server, and also accept Lightning payments. We also aim for radical transparency, supported by open source software, regular audits, and a transparent team. And finally, there is absolutely no KYC with IVPN. We don't ask for an email or any other personal information when you sign up.

40:55If you would like to test our service, send an email to trial@ivpn.net to receive a 30-day IVPN Pro voucher.

41:02Vlad CosteaHello, I'm Vlad and I have been a user of IVPN Pro for longer than one year. What I like the most about it is being able to use seven devices at the same time, and using the multi-hop feature to connect to two different servers of my choosing at the same time. Also, your account consists of a randomly generated string of letters and numbers, which are not linked to your email address, bank account, or real-life identity. You top it up with a Lightning payment and you get instant confirmation at low fees. Definitely get your 30-day IVPN Pro trial by sending an email to trial@ivpn.net.

41:45Make sure you use a burner email address that you probably already have for trolling. What about Drivechains? What do you think about them?

42:02Sergi DelgadoDrivechains... I haven't read that much about Drivechains. I'm not gonna be controversial here, because I try not to talk about things that I don't know that much. The only thing I'm going to say, this is going to be controversial anyway, so I don't care, but Drivechains are kind of like a problem looking for... sorry, a solution looking for a problem, you know. Are they useful? Generally, what I've read, I think so. But it goes all the way back to, I mean, the complexity thing that we were talking about before.

42:48There's a lot of solutions being discussed these days about like how should we, or what should be the next soft fork that will like, you know, end all soft forks. It's kind of like, we don't want to add like any more soft forks, let's just add one that adds all the functionality that we may want. The issue with this way of thinking is that we already thought that, you know, like Lightning was gonna be that, or like Taproot was gonna be that, or like whatever other thing was going to be that.

43:21Vlad CosteaYou mean SegWit? Not Lightning.

43:23Sergi DelgadoYeah, but by Lightning, I mean like, yes, SegWit in base layer, but like Lightning was going to be like the scalability solution, and like now we want Drivechains because we realize by implementing Lightning that, you know, there's other things that were not thought when Lightning was proposed. And I think that applies: the more general the protocol you're trying to build, the more complex it's going to be for you to figure out all the implications that that's going to add to the system.

43:48So again, I'm not going to shit on it. I'm not going to compliment it. I think any generalistic solution is going to add a lot of good to the system, but potentially a lot of things that we were not considering. Like just look at Taproot, just, or Taproot plus the discount in SegWit. Like, we have enabled this ordinal thing in a cheap way, when that was something that I don't think anyone envisioned, and it was not even that big of a change in that way.

44:24We were not enabling like complex scripts, we were not having like transaction introspection, we were not having like a lot of the things that are being considered for not only Drivechains but other covenants proposals. Yeah, that's why I think that a lot of people are pushing back to these kind of changes. Like, if I cannot grasp what all the implications of a change are going to be, I'm not comfortable with accepting that change. And I think that's been the vibe on Bitcoin for the last one, two years.

45:03Vlad CosteaYeah, to me it's certainly interesting because on one hand you have all of these soft fork proposals, and on the other hand you have people who figure out their way inside. You had Casey who figured out how to do Ordinal inscriptions, and that did not require any change to the consensus rules.

45:21And now you have the BitVM situation. And that one, actually I spoke with Sergio Lerner, I hope I'm gonna get to interview him sometime. But he told me that BitVM is exciting because it enables him to have some functions that otherwise he would have had only with Drivechains. So that one already exists. It can do computation off-chain. I don't fully understand how it works. It's a pretty complex... I mean, a lot of people pretend to have read that paper and understood it.

45:52Sergi DelgadoI'm not going to pretend I haven't read it. I know the idea of like how the state machine works and like how all these like off-chain or off-line computation and then doing the proof on-chain works, because that's what fault proofs have been doing in Ethereum for some time. But again, I'm not going to pretend I have like grasped all the implications of that.

46:13Vlad CosteaYeah, anyway, to me it's super interesting that we have these debates about stuff that we should add to Bitcoin, and then someone comes along and they figure out something that wasn't figured out before and requires no permission from anyone whatsoever.

46:30Sergi DelgadoYeah, the thing with these kind of solutions that doesn't require any change means that normally, I mean, they may work in the happy case, which I think it's the case for BitVM, again, without like having fully read that.

46:43But what I've seen and when I was like talking to Super Testnet the other day is that normally when you have to like prove one of these things that didn't go well, like if you have to like prove a fault in the protocol with BitVM, that may entail like a lot of transactions on chain, which is something that it may not suit the protocol that you are trying to build on top. It's like, as long as everything goes well, it's, you know, pretty sweet.

47:11If not, then the cost of closing this may surpass the cost of saying like, "Yeah, I don't care, you know, like, take the money." Plus how much you're going to clog the mempool if like a lot of people try to like do this at the same time, right? So when we add soft forks or when we try to like make something different, it's normally to make the whole thing make sense, not to be like, "Oh, you know, it works in this case," but that one may not even be suitable for our current state of the protocol. So yeah.

47:44Vlad CosteaAccording to your view on this topic of soft forks, which one do you think is the least contentious and pretty beneficial with the lowest amount of risk, and what is the riskiest of them all?

48:00Sergi DelgadoFor covenant stuff, you mean? Oh wow, you really want to be controversial here. Okay, I mean the one I think... Well, the use case I think it's interesting. The only use case for covenants I see interesting myself is vaults, because I think it's a really well-defined use case that people have been asking for some time. Whether it's OP_VAULT or it's like CTV plus something something, I don't care that much. It depends on like how we add these changes, right? Like if you add CTV with like a lot of functionality, then you're adding way more than just vaults, right? To me, I'm more of...

48:47On the side of: define what the use case you're trying to solve is and add the solution for that. And if that implies a soft fork, then we like fight for it. And you know, you may end up like having someone who champions it and like does all the proper research and explains why this makes sense and why it's not going to backfire in any way. So I'm not going to like name any in general, because like I would need to pretend that I have read all of them, like compare all of them and all the cons, all the pros.

49:21I haven't. But the way it makes sense to me is not being general in that sense. Like, the more, again, the more general you are, the more things you're opening for backfire. And just like adding functionality for the sake of adding functionality without like a proper use case for it doesn't make sense to me. Vaults, I think, makes sense. There's been like a need for that for years, there's been talk for that for years. More expressiveness of the language may make sense and may enable stuff, but require a way deeper analysis of the, like, things that can go wrong. And until we don't have that, not just me, a lot of people are going to be like, not worth the effort.

50:13Ad voiceoverSatochip provides open source solutions based on smart card to assist you in your crypto journey. The hardware wallet lets you safely store your private keys within the tamper-proof chip memory, while Satodime allows you to create a bearer cold storage in two clicks, thanks to its mobile app. And Seedkeeper is the ultimate hardware device to store and manage your seed phrases. Become self-custody with Satochip. Your keys, your coins.

50:45Vlad CosteaYeah, so for those listening who did not really understand, he said, I think, I'm assuming, "vaults", V-A-U-L-T-S. In your native language, which is Catalan, I think, B and V sound very similar, and it sounded like "bolt" sometimes. And "bolt" is something else, it's a different concept in Lightning. It's just a clarification, don't worry, it's just the way that you pronounce this consonant, which is B-V, they sound similar. Anyway, let's talk a bit about Chaincode Labs, because you work there and it has some of the most amazing talent in Bitcoin development.

51:20And it's not really centralizing. I mean, you're a small team. A lot of people have come and gone over the years. Now you have Pieter Wuille, and you also have an academy that trains new Bitcoin developers. You have these programs. Not an academy, that's the wrong way to put it, but even Binance has an academy and Andrew Tate has an academy, so everyone has an academy these days. You have programs to train a new generation of developers and teach them how to do some initially very basic but important stuff. Can you tell me more about what it's like to work there?

51:50Sergi DelgadoTo me it's kind of like a dream come true. Before this, I was working with Spiral, again in The Eye of Satoshi, and it was kind of like fully remote, working from whatever I wanted. I picked the project I wanted to work on. It was pretty sweet in that sense. But I felt that it was kind of like lonely, because getting people to work on the same project that you're working on, and like, people who really understand the kind of like problems that you're trying to work on, is hard. But there's the project in the world that people are paying attention to, which is Core. And we can all agree that it has interesting projects, problems, sorry, like, really clever people working on it.

52:38So going to work at Chaincode was opening up the opportunity to work with Pieter, for example, with Suhas, with Martin and Marco. I mean, Marco is not working that much... Marco as maintainer, like Marco Falke. He is not working on peer-to-peer, but I was super interested in working on peer-to-peer. And there was like no better, from my point of view, no better like team to work with than Martin Zumsande and Pieter. So it really depends on what you want to do.

53:10Like I wanted to start contributing to Core for some years and I've tried that before on my own, and it was not much appealing, to be honest. Like it's the learning curve and like the entering curve is pretty steep. So it helps being able to work with people who, you know, are working on the same codebase that you are, are the ones that most likely have wrote the function that you're looking at, and you can just brainstorm anything or talk about like why was the motivation for that, or what does that line that you wrote seven years ago is for, and you know about it.

53:53As you said, the team has been rotating quite a lot. I think they look for talent, they look for the devs that kind of like fill the position they are looking for, because there's normally no open position at Chaincode. They just like, if they want to do some cryptography project, for example, or there's a reason to look for a cryptographer, they may try to find one. There's not going to be an opening position for you to go there. But the whole point of it is having like a close team, so you can work on specific projects and like with the team, like...

54:35How to explain this? One of the things that is pretty abnormal from Chaincode compared to like other companies in the space is that you work on the office, which is something that people normally don't know, no? But like working for Chaincode means like living in New York, because they have an office in New York and everyone works from the office. And there's a good reason for that. Like, SimLN was built there because, you know, like, we were talking about it. Carla had that idea about like, "Oh, I need this to test this thing." I was like, "Oh, that sounds amazing."

55:17"I actually think that the simulator for this makes a lot of sense. Let's start talking about that," right? You could do that remotely, but there's a lot of conversations, a lot of discussions, a lot of things that you normally don't bother people with, but you do if you're in the same office. And by a random discussion about how this thing works, that may like kind of like evolve to a new project being built, with something that you normally would not like ping someone about, because you would be like, "Oh, I'm not going to like waste Pieter's time," for example.

55:52Like I would not ping Pieter for like a random question I have about the codebase, you know. But if he's there, I could be like, "Hey, Pieter, would you mind like discussing why this is in this way?" Right? So, yeah, I mean, I don't know like what else to say, honestly. Like, to me working there, it's been like really fun. And even though I promised myself not to go back to an office ever after like three years working remotely, it was worth being like, yeah, whatever, like I'm definitely going to join them. So yeah, loving it.

56:30Vlad CosteaI remember there was a point in 2017 or 2018 when Blockstream was hiring all the developers and most of them were working there, and I was actually concerned at one point, I tweeted about it, that Blockstream is becoming a centralizing force, which is getting all the talent, all the developers. And then Chaincode, I'm not sure exactly when it was founded, but it started growing at around the time. And I think now Chaincode has more Bitcoin Core developers than... Actually, no, stupid statement. But a lot of people have also left Blockstream, so it's very hard to measure. But it's good to have this type of balance.

57:11Sergi DelgadoI think there's still a meme around that, you know, like, Blockstream controls Bitcoin, which is... I mean, it's funny because if you actually look at who is working on Bitcoin from Blockstream, there's not that much people, that many people. I do agree with you that it's more healthy these days because it's more spread. It's not only Blockstream, but it's also Brink and Chaincode, and the HRF is also like giving out grants for that, like Spiral is giving out grants for working on Core. So your statement, for me, I completely agree. We shouldn't centralize the development of Core or any open source project that we care about. But yeah, I see it as like way more healthy these days.

58:00Vlad CosteaFinal question, Sergi, where can people follow you and keep up with your projects? And how can someone start contributing to Bitcoin? Because I guess you went through that journey.

58:12Sergi DelgadoFollowing me, I'm normally on Twitter. The handle is sr_gi. It's kind of like a pun on my name that never got... like, it was not as good as I thought, you know. Like, as you were mentioning before, the pronunciation of my name is different depending on where you are. So I thought, oh, you know, for English speakers, it's going to be like pretty close to my name and it's going to be easy for them to like pronounce it, and actually that's not it.

58:35But you know, I went along with it. It's been like that for years. Same as in GitHub, sr, in that case it's like middle colon gi. Twitter is underscore, GitHub is middle. With respect to contributing to Core and learning about Core, there's this thing that we are building at Chaincode, that is the Bitcoin Dev Project. We are trying to make it way easier for devs to onboard on Core. There are many resources to do this these days. I mean, there's books on it, there's like seminars on it.

59:11You can like follow the Chaincode seminars on Bitcoin generally. But it also depends on where you are at. Like, if you have like no previous knowledge about Bitcoin and you're like trying to go straight to Core, like maybe you need to like do some homework first, right? If you're someone who knows about it and the only... I mean, you've wanted to contribute to Core, you're knowledgeable, and the only thing that it may be blocking you, as it was my case, is like approaching the codebase and learning C++, I guess the review club is one of the best things I can vouch for.

59:55Keep an eye on that project. We want to like launch something pretty soon, and I hope I'm not like spoiling anything, so it's easier for people to onboard Bitcoin Core. And yeah, like join IRC, don't be afraid to ask questions, like ping people. Like, I know how hard the journey could be. If anyone needs help, like ping me, I'll do my best.

1:00:22Vlad CosteaThank you very much, Sergi. And I hope I'll interview you in the future again and talk more about what you've built with Chaincode.

1:00:29Sergi DelgadoI hope I have interesting things to talk to you about in a while, yeah.

1:00:29================================================================================ Production notes: Recorded in person at La Crypta, a Bitcoin hackerspace in Buenos Aires, Argentina, in English with a non-native-speaking guest; it has a music intro, sponsor ad voiceovers (Wasabi Wallet, CryptoSteel, IVPN, Satochip) and a Vlad live read for IVPN. Correction: anthropic/claude-opus-5.5 via NanoGPT in 4 windows with a whole-episode speaker/glossary plan, the show notes, the Qwen3-ASR full pass (80 chunks) and 30 Scribe v3 re-checks of doubtful spans; second opinion: /workspace/zcash-documentary/transcripts/S15E2.timed.txt (read-only); [unclear] resolve pass: 2 of 2 flagged paragraphs re-checked. Automatic checks: word count vs raw, timestamps, seam duplication. Fixes: Restored truncated intro (fight club/Nostr/Agustín) and dropped SimLN passage (Polar, bash scripts) from second opinion; removed ♪, "Welcome to the episode..." and stray "Thank you." hallucinations and ad outro loop; split Vlad/Sergi turns and labelled Wasabi ad as Ad voiceover; fixed SimLN, The Eye of Satoshi, Joschisan/Fedimint, Qala Africa, test framework, regtest/simnet, millisats, Core Lightning, Eclair, LND, Lightning Labs, HTLC, clogging, channel breach, watchtower, WabiSabi, mega coinjoins, Tor; Split merged turns into Vlad/Sergi; restored dropped text at 00:23:52-00:24:20 (BitGo/DeFi exchange) and 00:26:46 and 00:28:00 from second opinion/re-check; removed hallucinations ("Thank you.", Bitcoin Takeover Podcast line, Amara.org, "Best of the Best", Bitcoin profit quote, doubled words); fixed watchtower, ISP, Wallet of Satoshi, Lightning, gatekept, ordinals, mempool, pay grade, Nostr, BIP39, Cryptosteel, Ben Arc, Liquid; CryptoSteel ad labelled Ad voiceover; Split merged speakers (Vlad's Cryptosteel thanks, capsule/Nostr banter, ossify question, "proposing changes", layer-2 question, "Anything wrapped", Liquid monologue, "2.5s?", "You mean SegWit?", Drivechains question, BitVM intro); restored dropped text (end of P2P answer, "donations", Lightning answer, Liquid intro, Fedimint/Cashu/Calle, Drivechains/Taproot/compromise passages, IVPN Lightning line and trial line); separated IVPN ad voiceover vs Vlad live read; fixed Cryptosteel Capsule, Nostr, cypherpunk, Taproot, SegWit, Litecoin, BTCPay Server, radical transparency, covenants, Drivechains, mempool; removed hallucinations ("Episode: Donations", "Thank you", "The end of the video", "I'm a big fan of Bitcoin", "We are going to talk about...", "www.BritishCode.com", "Thank you for watching!", "- 1.2"); Liquid NFT project kept as [unclear]; Split speaker turns (Vlad/Sergi) throughout; fixed BitVM, Super Testnet, fault proofs, Ethereum, vaults/OP_VAULT/CTV, covenants, Pieter Wuille, Suhas, Martin Zumsande, Marco Falke, Brink, Blockstream, SimLN, The Eye of Satoshi, Satochip/Satodime/Seedkeeper, sr_gi, devs, ping; restored dropped speech from second opinion (00:47:13 soft forks, 00:51:20-00:51:50 Vlad question and Sergi answer start, 00:57:11 Vlad remark); removed hallucinations ("I'm going to show you...", "Advertising", "See you next time. Bye", "I'm Vlad Costea", "Transcript by", "Welcome to the episode of the show", "I'll be right back", stray "Thank you", closing wrap); labelled Satochip ad voiceover.

← Back to the episode · All transcripts · Ask the Archive

0:000:00