WEBVTT - Automatic transcript; recognition may contain errors. Reviewed for technical wording and speaker labels. Times match the published episode.

00:00:07.250 --> 00:00:10.310
<v Aaron van Wirdum>Live from Utrecht, this is the Van Wirdum Sjorsnado.

00:00:10.610 --> 00:00:10.910
<v Sjors Provoost>Hello.

00:00:11.590 --> 00:00:12.230
<v Aaron van Wirdum>Sjors, welcome.

00:00:12.610 --> 00:00:13.110
<v Sjors Provoost>Thank you.

00:00:13.310 --> 00:00:13.710
<v Aaron van Wirdum>Who's this?

00:00:14.010 --> 00:00:14.910
<v Sjors Provoost>There's a guy in the room.

00:00:15.050 --> 00:00:17.370
<v Ruben Somsen>There's another guy in the room. Sorry to...

00:00:17.370 --> 00:00:18.450
<v Aaron van Wirdum>There's three of us today.

00:00:19.530 --> 00:00:23.750
<v Ruben Somsen>That's right. And I'm also from Utrecht, so that's amazing. All three of us.

00:00:24.090 --> 00:00:24.890
<v Aaron van Wirdum>Ruben Somsen.

00:00:25.170 --> 00:00:25.550
<v Ruben Somsen>That's right.

00:00:25.930 --> 00:00:26.270
<v Aaron van Wirdum>Welcome.

00:00:26.710 --> 00:00:26.990
<v Ruben Somsen>Thanks.

00:00:27.530 --> 00:00:31.570
<v Aaron van Wirdum>Let's start with, yeah, let's briefly explain who you are.

00:00:31.950 --> 00:00:36.670
<v Ruben Somsen>Sure. I'm Ruben. I like Bitcoin a lot. Originally, I've been in South Korea for a

00:00:36.670 --> 00:00:42.170
<v Ruben Somsen>very long time. I ran the Seoul Bitcoin meetup there and I got so into Bitcoin

00:00:42.170 --> 00:00:48.050
<v Ruben Somsen>that now I'm kind of contributing or going and... making proposals such

00:00:48.050 --> 00:00:50.630
<v Ruben Somsen>as state chains, which I assume we're going to be talking about today.

00:00:51.130 --> 00:00:54.950
<v Aaron van Wirdum>Yeah, and in South Korea, you were hosting the Seoul meetup, I think?

00:00:55.250 --> 00:00:58.890
<v Ruben Somsen>Yeah, that's right. So I was doing this Seoul Bitcoin meetup there. Right now,

00:00:59.030 --> 00:01:03.030
<v Ruben Somsen>it's kind of on a hiatus. I mean, I'm not there. There's corona right now, so

00:01:03.030 --> 00:01:07.450
<v Ruben Somsen>that's not great. Maybe some of the guys that are still around there will be

00:01:07.450 --> 00:01:11.770
<v Ruben Somsen>organizing more meetups again once things get back to normal. But for now, I'm

00:01:11.770 --> 00:01:15.150
<v Ruben Somsen>here back in the Netherlands and I'm enjoying your company. So that's also great.

00:01:16.470 --> 00:01:19.290
<v Aaron van Wirdum>Yeah, and you're hanging out in Utrecht and you're staying here for the

00:01:19.290 --> 00:01:20.470
<v Aaron van Wirdum>foreseeable future?

00:01:21.070 --> 00:01:25.510
<v Ruben Somsen>Yeah, I haven't really planned ahead. So for now, I'm just going to be here. And

00:01:25.510 --> 00:01:27.070
<v Ruben Somsen>yeah, we should hang out more often.

00:01:27.290 --> 00:01:29.230
<v Sjors Provoost>Yeah, I mean, the weather is great here. A

00:01:29.230 --> 00:01:34.330
<v Ruben Somsen>little rainy. I got wet on my way here, but yeah, it's something. Yes,

00:01:34.390 --> 00:01:38.180
<v Aaron van Wirdum>and you designed state chains. That's your claim to fame.

00:01:38.520 --> 00:01:42.120
<v Ruben Somsen>Yeah, I guess that's the one that stuck. I mean, there are a couple of other

00:01:42.120 --> 00:01:46.760
<v Ruben Somsen>things that I've done that I haven't really, well, I guess I have yet to present

00:01:46.760 --> 00:01:50.800
<v Ruben Somsen>in a way that people understand and appreciate. But State Chains is the one that

00:01:50.800 --> 00:01:52.360
<v Ruben Somsen>I think most people know me from.

00:01:53.940 --> 00:01:55.160
<v Aaron van Wirdum>You want to get into it?

00:01:56.050 --> 00:01:56.490
<v Ruben Somsen>Sure.

00:01:56.710 --> 00:01:57.970
<v Aaron van Wirdum>Are you ready for state chains?

00:01:58.230 --> 00:02:02.490
<v Sjors Provoost>I think I am. I mean, we could probably remind the user that we did an episode,

00:02:02.710 --> 00:02:06.930
<v Sjors Provoost>episode six, about sharing a UTXO, so sharing a coin on the blockchain between

00:02:06.930 --> 00:02:11.630
<v Sjors Provoost>multiple people. We discussed various ways to do that. And this is actually

00:02:11.630 --> 00:02:12.150
<v Sjors Provoost>another way.

00:02:12.610 --> 00:02:15.370
<v Ruben Somsen>Yeah, that's right. Payment pools, right? I listened to that episode.

00:02:16.270 --> 00:02:18.750
<v Aaron van Wirdum>Well, it is and it isn't. It's pretty different.

00:02:19.240 --> 00:02:20.780
<v Sjors Provoost>Well, that's why I said it's another way.

00:02:22.180 --> 00:02:25.660
<v Aaron van Wirdum>Yeah, but you're not sharing the UTXO in the case of state chains. Anyways.

00:02:25.880 --> 00:02:31.440
<v Ruben Somsen>You're sharing it with the state chain federation, sort of. So I think you could

00:02:31.440 --> 00:02:33.440
<v Ruben Somsen>say that. It just depends on how you look at it.

00:02:34.710 --> 00:02:39.350
<v Sjors Provoost>Okay, maybe I should say another way. Well, it's like sharing your car. You know,

00:02:39.610 --> 00:02:41.430
<v Sjors Provoost>whose car is it? What are you sharing?

00:02:42.270 --> 00:02:43.270
<v Aaron van Wirdum>A little bit. You're right.

00:02:43.350 --> 00:02:46.270
<v Sjors Provoost>There is another party involved. I think that is important to indicate. Yeah.

00:02:47.530 --> 00:02:52.310
<v Aaron van Wirdum>All right, let's get into state chains. I guess it makes sense if you take the

00:02:52.310 --> 00:02:52.870
<v Aaron van Wirdum>lead, Ruben.

00:02:53.190 --> 00:02:53.390
<v Ruben Somsen>Sure.

00:02:53.550 --> 00:02:53.950
<v Aaron van Wirdum>Doesn't it?

00:02:54.330 --> 00:02:55.090
<v Ruben Somsen>Yeah, I guess so.

00:02:55.450 --> 00:02:59.030
<v Aaron van Wirdum>Okay, go for it. Yeah, feel free. Okay, first of all, no, let me ask you a

00:02:59.030 --> 00:03:01.150
<v Aaron van Wirdum>question. First of all, what problem are we solving here?

00:03:01.310 --> 00:03:07.230
<v Ruben Somsen>Yeah, so the problem we're solving is basically trying to take Bitcoins off chain

00:03:07.230 --> 00:03:12.930
<v Ruben Somsen>in such a way that we have a minimum amount of risk to some kind of third party.

00:03:14.280 --> 00:03:17.860
<v Ruben Somsen>What we want is we want to have some Bitcoins and I want to send you those

00:03:17.860 --> 00:03:22.040
<v Ruben Somsen>Bitcoins. But ideally, we don't use the Bitcoin blockchain because that's

00:03:22.040 --> 00:03:25.680
<v Ruben Somsen>expensive, especially in the future when more and more transactions hopefully are

00:03:25.680 --> 00:03:30.000
<v Ruben Somsen>going to occur. So we have to do it in some other ways. And statechains is one of

00:03:30.000 --> 00:03:35.520
<v Ruben Somsen>those ways. And one analogy or one similarity is that of federated sidechains. So

00:03:35.520 --> 00:03:39.300
<v Ruben Somsen>federated sidechains are kind of also a model where you basically hand over your

00:03:39.300 --> 00:03:43.560
<v Ruben Somsen>Bitcoins to some kind of multi-sig address. And then from that point on, you...

00:03:43.450 --> 00:03:48.030
<v Ruben Somsen>move your coins on another ledger, and then at some point you ask for your coins

00:03:48.030 --> 00:03:53.070
<v Ruben Somsen>back and multisig hopefully gives them to you. This is kind of like that, but...

00:03:53.350 --> 00:03:57.750
<v Ruben Somsen>More secure and kind of a different model because you're transferring entire

00:03:57.750 --> 00:04:03.670
<v Ruben Somsen>UTXOs. So it's not like with a sidechain, you could send any kind

00:04:03.670 --> 00:04:07.290
<v Ruben Somsen>of fraction of a Bitcoin and you could take those out. But here, that's not the

00:04:07.290 --> 00:04:11.750
<v Ruben Somsen>case. Here, there's a UTXO on the blockchain and I can either transfer the whole

00:04:11.750 --> 00:04:13.390
<v Ruben Somsen>thing to you or not.

00:04:13.710 --> 00:04:19.490
<v Aaron van Wirdum>Yeah, that's actually why I figured it's not sharing UTXO. You either have it or

00:04:19.490 --> 00:04:22.560
<v Aaron van Wirdum>you don't. It's not like we both have a part of it.

00:04:22.760 --> 00:04:24.560
<v Sjors Provoost>Yeah, you're passing the UTXO around.

00:04:25.120 --> 00:04:30.200
<v Ruben Somsen>Yeah, but it is possible to send it to two people. So you don't necessarily have

00:04:30.200 --> 00:04:34.240
<v Ruben Somsen>to send it from Alice to Bob. You could send it from Alice to Alice and Bob. So

00:04:34.240 --> 00:04:37.900
<v Ruben Somsen>then it becomes a payment pool or a channel or whatever you want.

00:04:38.020 --> 00:04:42.340
<v Aaron van Wirdum>I didn't actually know that. Let's get into that once we've explained state

00:04:42.340 --> 00:04:47.400
<v Aaron van Wirdum>chains themselves. Okay. Yeah, so the way I wrote an article about it, a while

00:04:47.400 --> 00:04:51.300
<v Aaron van Wirdum>ago like over a year ago yeah and sort of the sort of the first step i took was

00:04:51.300 --> 00:04:56.300
<v Aaron van Wirdum>what you can do if you own a utxo it's just instead instead of send the

00:04:56.300 --> 00:04:59.800
<v Aaron van Wirdum>transaction just send someone the private key yeah okay the reason you can't

00:04:59.800 --> 00:05:03.360
<v Aaron van Wirdum>actually do that is because the person can keep the private key keep a copy of it

00:05:03.360 --> 00:05:06.920
<v Aaron van Wirdum>and still send the coin so that's the first problem you sort of need to solve

00:05:06.920 --> 00:05:12.310
<v Aaron van Wirdum>here right yeah so how do we solve this problem how do you how do you Share it.

00:05:12.710 --> 00:05:17.410
<v Ruben Somsen>Yeah. How do you share a key and not get screwed over because the other guy still

00:05:17.410 --> 00:05:18.390
<v Ruben Somsen>has the copy of the key?

00:05:18.570 --> 00:05:21.950
<v Sjors Provoost>Well, there's this guy in Canada that made this device that can do that.

00:05:23.490 --> 00:05:25.170
<v Sjors Provoost>But this may be a bit of a sidetrack.

00:05:25.590 --> 00:05:30.380
<v Ruben Somsen>I have no idea what you're talking about. Are you talking about like an HSM, like

00:05:30.380 --> 00:05:32.200
<v Ruben Somsen>a device that can transfer over private keys?

00:05:32.400 --> 00:05:35.380
<v Sjors Provoost>Yeah, the USB key that has a private key on it and has a self-destruct mechanism.

00:05:35.660 --> 00:05:38.120
<v Aaron van Wirdum>Oh, sure. Opendime. Opendimes. All right, right.

00:05:38.160 --> 00:05:41.760
<v Sjors Provoost>So that is a way to do that, a very different trust model than what you're

00:05:41.760 --> 00:05:45.880
<v Sjors Provoost>describing. But it's kind of similar that you cannot, you can't just send

00:05:45.880 --> 00:05:49.420
<v Sjors Provoost>arbitrary amounts. You can't use an Opendime to send half of the money from the

00:05:49.420 --> 00:05:50.560
<v Sjors Provoost>Opendime. You give the whole thing.

00:05:50.740 --> 00:05:51.560
<v Ruben Somsen>Yeah, that's true.

00:05:51.920 --> 00:05:54.260
<v Sjors Provoost>And in that sense, state chains are a bit similar.

00:05:54.520 --> 00:05:58.680
<v Ruben Somsen>Yeah, you could say it's like a virtual Opendime. where there's some kind of

00:05:58.680 --> 00:06:03.930
<v Ruben Somsen>federation that is kind of like the replacement of the OpenDime functionality to

00:06:03.930 --> 00:06:07.350
<v Ruben Somsen>ensure that private key doesn't actually do anything funny.

00:06:07.790 --> 00:06:12.230
<v Sjors Provoost>Enough with the sidetracks. Yes. I don't think the analogy is as useful as I was

00:06:12.230 --> 00:06:14.450
<v Sjors Provoost>hoping. Let's just get into it.

00:06:15.880 --> 00:06:21.200
<v Ruben Somsen>Yeah, so essentially, instead of having one key that you transfer over from Alice

00:06:21.200 --> 00:06:26.900
<v Ruben Somsen>to Bob, say, there are two keys. And one key is with a federation. Or if you want

00:06:26.900 --> 00:06:30.020
<v Ruben Somsen>to, for simplicity, you could just say a single server, but a federation would be

00:06:30.020 --> 00:06:30.500
<v Ruben Somsen>more secure.

00:06:31.750 --> 00:06:37.410
<v Ruben Somsen>And essentially, you do two things. You hand over your key. Alice hands over her

00:06:37.410 --> 00:06:42.770
<v Ruben Somsen>key to Bob. And then simultaneously, she requests the server or the federation to

00:06:42.770 --> 00:06:47.430
<v Ruben Somsen>sign a off-chain Bitcoin transaction that assigns the Bitcoins, that assigns the

00:06:47.430 --> 00:06:52.510
<v Ruben Somsen>UTXO to Bob. And this means that if the federation, the state chain disappears.

00:06:53.220 --> 00:06:56.480
<v Ruben Somsen>Bob can just send that transaction to the Bitcoin blockchain and get the

00:06:56.480 --> 00:07:02.080
<v Ruben Somsen>Bitcoins. And we have a dispute mechanism, or in this case, it's utilizing eltoo,

00:07:02.340 --> 00:07:06.720
<v Ruben Somsen>that ensures that even though Alice also has a copy of an off-chain transaction,

00:07:07.180 --> 00:07:11.180
<v Ruben Somsen>Bob's copy basically goes first or has as a priority.

00:07:11.560 --> 00:07:17.180
<v Aaron van Wirdum>Okay, one step at a time. Yeah. First of all, we need... a federation or it could

00:07:17.180 --> 00:07:21.660
<v Aaron van Wirdum>just be a trusted server but a federation is a bit more secure yes

00:07:21.660 --> 00:07:21.940
<v Sjors Provoost>yes

00:07:21.940 --> 00:07:26.780
<v Aaron van Wirdum>okay so the first thing we're doing is we're we're securing this utxo in a multi

00:07:26.780 --> 00:07:32.620
<v Aaron van Wirdum>-sig two out of two right that's that's the idea so that way if i get i'm

00:07:32.620 --> 00:07:38.520
<v Aaron van Wirdum>alice I give my private key to Bob. Then Bob cannot yet spend the coins without

00:07:38.520 --> 00:07:43.180
<v Aaron van Wirdum>the server helping out, right? Yes. And the same for me. Like when I first put my

00:07:43.180 --> 00:07:46.960
<v Aaron van Wirdum>money in the UTXO, I can spend the money without the server helping out or the

00:07:46.960 --> 00:07:51.940
<v Aaron van Wirdum>federation. I'm using the two in a confusing way, perhaps. But whether it's a

00:07:51.940 --> 00:07:56.420
<v Aaron van Wirdum>federation or a server, you need someone's help. That's two of two. That part is

00:07:56.420 --> 00:08:02.140
<v Aaron van Wirdum>easy. The hard part is... First so there's I think there's two big problems the

00:08:02.140 --> 00:08:07.860
<v Aaron van Wirdum>first big problem is what do you do if the Federation is unresponsive yeah

00:08:07.860 --> 00:08:13.000
<v Aaron van Wirdum>okay because if the Federation is unresponsive then you can't get your money out

00:08:13.000 --> 00:08:16.500
<v Aaron van Wirdum>yeah I can't get my money out if the Federation is unresponsive so we need a

00:08:16.500 --> 00:08:22.040
<v Aaron van Wirdum>solution for that and the solution for that looks a lot of like lightning yes if

00:08:22.040 --> 00:08:26.750
<v Aaron van Wirdum>you're counterparty isn't responding anymore you can still get your money out and

00:08:26.750 --> 00:08:32.090
<v Aaron van Wirdum>the way you do that is with a pre-signed transaction that sends coins in a

00:08:32.090 --> 00:08:37.150
<v Aaron van Wirdum>specific way to new outputs where it can be spent either with cooperation

00:08:37.150 --> 00:08:42.330
<v Aaron van Wirdum>like either sort of in the original way in cooperation with the server or

00:08:42.330 --> 00:08:48.160
<v Aaron van Wirdum>after a week you just get the funds yeah that's right yeah right okay So that's

00:08:48.160 --> 00:08:51.960
<v Aaron van Wirdum>how I would set it up at first. Yes. But then I'm sending money to Bob. So I'm

00:08:51.960 --> 00:08:55.300
<v Aaron van Wirdum>sending my private key to Bob. I'm just giving him my private key as a way of

00:08:55.300 --> 00:08:59.840
<v Aaron van Wirdum>paying him. Yeah. So now the server has to help Bob. But it also means Bob has to

00:08:59.840 --> 00:09:04.640
<v Aaron van Wirdum>be able to get his money out if the server is unresponsive. Yes. So therefore,

00:09:04.640 --> 00:09:10.100
<v Aaron van Wirdum>Bob also needs this backup transaction. That's right. So before I send the

00:09:10.100 --> 00:09:14.780
<v Aaron van Wirdum>private key to Bob, I actually first cooperate with the federation or the server

00:09:14.780 --> 00:09:19.470
<v Aaron van Wirdum>to set up a... backup transaction for Bob. And only when Bob has a backup

00:09:19.470 --> 00:09:22.930
<v Aaron van Wirdum>transaction will he also accept the key as a form of payment.

00:09:23.150 --> 00:09:28.490
<v Ruben Somsen>That's right. Right? Yeah. So once both of these have occurred, the payment is

00:09:28.490 --> 00:09:31.730
<v Ruben Somsen>basically complete. And before that, the payment would not be accepted by Bob. So

00:09:31.730 --> 00:09:35.130
<v Ruben Somsen>yeah, absolutely right. And thanks for... I think you're very good at explaining

00:09:35.130 --> 00:09:39.010
<v Ruben Somsen>these things and also in your article. So I just want to say thanks for rewording

00:09:39.010 --> 00:09:41.150
<v Ruben Somsen>this because I think this is really useful for our listeners.

00:09:41.530 --> 00:09:43.250
<v Aaron van Wirdum>Thank you. Are you still with us, Sjors?

00:09:43.590 --> 00:09:48.830
<v Sjors Provoost>Yeah, partially. So... so there's a there is a multi-sig involved in this or not or

00:09:48.830 --> 00:09:49.910
<v Ruben Somsen>yes two different conditions

00:09:49.910 --> 00:09:54.470
<v Aaron van Wirdum>okay so there's actually two multi-sigs if we use the federation and that's what

00:09:54.470 --> 00:09:55.490
<v Aaron van Wirdum>we need Schnorr i think

00:09:55.490 --> 00:09:59.730
<v Sjors Provoost>yeah let's let's just call it a server and just have one server with a private

00:09:59.730 --> 00:10:03.530
<v Sjors Provoost>key on it just to keep it simple sure keep in mind that this could be a very

00:10:03.530 --> 00:10:08.670
<v Sjors Provoost>complicated thing but just call it one server yeah so the server creates

00:10:09.230 --> 00:10:12.490
<v Sjors Provoost>An address or something where it creates a private key and then there's a

00:10:12.490 --> 00:10:14.970
<v Sjors Provoost>multisig between the server and Alice.

00:10:15.290 --> 00:10:15.650
<v Ruben Somsen>Yes.

00:10:15.690 --> 00:10:18.330
<v Sjors Provoost>That's where the money's at. So they both have to sign in order to move it.

00:10:18.610 --> 00:10:20.170
<v Ruben Somsen>They both have to sign in order to move it.

00:10:20.530 --> 00:10:21.490
<v Sjors Provoost>Before the money is moved in.

00:10:21.750 --> 00:10:27.290
<v Ruben Somsen>That's right. Yeah. So Alice already has a transaction where she can reclaim the

00:10:27.290 --> 00:10:31.590
<v Ruben Somsen>Bitcoin. Similar to kind of how when you set up a lightning channel, before you

00:10:31.590 --> 00:10:36.250
<v Ruben Somsen>set it up, you sign a transaction where you get your coins back if cooperation fails.

00:10:36.870 --> 00:10:41.630
<v Aaron van Wirdum>Yeah, which you don't broadcast yet, obviously. You broadcast that if and when

00:10:41.630 --> 00:10:43.590
<v Aaron van Wirdum>the servers are unresponsive.

00:10:44.130 --> 00:10:47.550
<v Sjors Provoost>Yeah, and then so the way you move it to Bob is now Bob creates the same

00:10:47.550 --> 00:10:51.450
<v Sjors Provoost>transaction to him.

00:10:52.460 --> 00:10:57.240
<v Ruben Somsen>Yeah, well, Alice has to do that for him because Bob is not in control yet. So

00:10:57.240 --> 00:11:01.640
<v Ruben Somsen>Alice asked the server to create another off-chain transaction, but now sending

00:11:01.640 --> 00:11:07.220
<v Ruben Somsen>the money to Bob. And then Alice hands her private key, or rather the transitory

00:11:07.220 --> 00:11:10.340
<v Ruben Somsen>key, as I call it, because it's not really Alice's key. It's the key that goes

00:11:10.340 --> 00:11:14.900
<v Ruben Somsen>from one user to another user. That one then gets handed over from Alice to Bob.

00:11:15.200 --> 00:11:20.600
<v Aaron van Wirdum>Next question. The way this works, so Bob has his backup transaction. That must

00:11:20.600 --> 00:11:24.300
<v Aaron van Wirdum>be able to override Alice's backup transaction, right? Yes. And I think that's

00:11:24.300 --> 00:11:27.900
<v Aaron van Wirdum>why there needs to be this week of wait time, basically.

00:11:28.140 --> 00:11:33.160
<v Ruben Somsen>Yes. There needs to be some kind of... resolution there and it's again it's very

00:11:33.160 --> 00:11:39.160
<v Ruben Somsen>similar to lightning where you you when you send coins you you create a

00:11:39.160 --> 00:11:42.080
<v Ruben Somsen>new off-chain transaction and then the previous off-chain transaction has to

00:11:42.080 --> 00:11:47.120
<v Ruben Somsen>become invalid somehow And the way it's done here, or at least the ideal way for

00:11:47.120 --> 00:11:52.220
<v Ruben Somsen>state chains, is utilizing eltoo, which is a soft fork that is going to come in

00:11:52.220 --> 00:11:55.720
<v Ruben Somsen>the future. And that's actually mainly intended for Lightning Network. But what

00:11:55.720 --> 00:11:59.820
<v Ruben Somsen>that does is it allows you to not have to invalidate a transaction, but instead

00:11:59.820 --> 00:12:04.260
<v Ruben Somsen>you can kind of override it. Or that would be like kind of my analogy, where even

00:12:04.260 --> 00:12:07.340
<v Ruben Somsen>though Alice has one of these off-chain transactions, even if she sends it to the

00:12:07.340 --> 00:12:11.400
<v Ruben Somsen>Bitcoin blockchain, Bob can then go ahead and send his transaction and kind of

00:12:11.400 --> 00:12:13.260
<v Ruben Somsen>override it and take the money. Yeah.

00:12:13.360 --> 00:12:17.020
<v Sjors Provoost>Because what we're worried about here is Alice gives a key to Bob, but Alice

00:12:17.020 --> 00:12:20.600
<v Sjors Provoost>still has a key so she can steal the money. But yeah, if she does that, just like

00:12:20.600 --> 00:12:24.460
<v Sjors Provoost>in Lightning, there's some sort of way to stop that from happening. Yeah. And the

00:12:24.460 --> 00:12:29.340
<v Sjors Provoost>way that you can already do is with rolling timeouts, right,

00:12:29.420 --> 00:12:35.210
<v Sjors Provoost>where... Alice can send the transaction on February 1st, but Bob

00:12:35.210 --> 00:12:40.130
<v Sjors Provoost>can do it a day earlier. Yeah. So Bob can always stay ahead of Alice. And with

00:12:40.130 --> 00:12:44.010
<v Sjors Provoost>this new proposal, SIGHASH_ANYPREVOUT is another word for it. Sometimes it's

00:12:44.010 --> 00:12:47.610
<v Sjors Provoost>called SIGHASH_NOINPUT. It changes names all the time. Yeah. It doesn't matter.

00:12:47.950 --> 00:12:52.790
<v Sjors Provoost>Alice can broadcast her transaction, but Bob's transaction will fit onto that

00:12:52.790 --> 00:12:57.780
<v Sjors Provoost>transaction. So he can always just take the money from Alice. But not the other

00:12:57.780 --> 00:13:00.720
<v Sjors Provoost>way around. Alice's transaction does not fit on Bob's transaction.

00:13:01.060 --> 00:13:05.570
<v Aaron van Wirdum>Yep. Right. So no one needs to trust anyone for anything, right?

00:13:06.630 --> 00:13:07.030
<v Ruben Somsen>Wrong.

00:13:09.270 --> 00:13:12.290
<v Aaron van Wirdum>So there is a trust trade-off, Ruben. Tell us about the trust trade-off.

00:13:12.390 --> 00:13:17.470
<v Ruben Somsen>Yeah. So the trust trade-off is that if the server, let's call it, right? It

00:13:17.470 --> 00:13:21.750
<v Ruben Somsen>could be a federation. If they literally want to take your money, they have a way

00:13:21.750 --> 00:13:25.130
<v Ruben Somsen>of doing so. So what they could do is they could be the first person. They could

00:13:25.130 --> 00:13:27.690
<v Ruben Somsen>pretend to be Alice, right? So the server is also Alice.

00:13:29.890 --> 00:13:32.290
<v Aaron van Wirdum>They're not pretending Alice in this example. They are Alice.

00:13:32.490 --> 00:13:36.410
<v Ruben Somsen>They are Alice. So we've got the server. We've got Alice. And then Alice sends

00:13:36.410 --> 00:13:37.430
<v Ruben Somsen>her coins to Bob.

00:13:38.800 --> 00:13:44.660
<v Ruben Somsen>and hands over the private key. But now we still have Alice, who has the private

00:13:44.660 --> 00:13:49.340
<v Ruben Somsen>key. And Alice, because she's also the server, also has the server key. So now

00:13:49.340 --> 00:13:54.660
<v Ruben Somsen>she has both keys. And so even though the money went to Bob, Alice and the server

00:13:54.660 --> 00:13:57.500
<v Ruben Somsen>can just cooperate. Or if they're the same person, it's very easy for them to

00:13:57.500 --> 00:14:03.290
<v Ruben Somsen>cooperate and take the money back. That would be the main kind of way in which

00:14:03.290 --> 00:14:04.110
<v Ruben Somsen>this can go wrong.

00:14:04.290 --> 00:14:09.050
<v Aaron van Wirdum>Yeah, so to emphasize this, because I'm not sure if we've made this very clear so

00:14:09.050 --> 00:14:13.750
<v Aaron van Wirdum>far, the idea is that the server will only ever cooperate with the last recipient

00:14:13.750 --> 00:14:16.870
<v Aaron van Wirdum>of the funds. That's what the server is supposed to do. That's what we're

00:14:16.870 --> 00:14:21.070
<v Aaron van Wirdum>trusting the server with. Only the last person who received the funds, that's the

00:14:21.070 --> 00:14:22.910
<v Aaron van Wirdum>only person you sign along with.

00:14:23.090 --> 00:14:24.330
<v Ruben Somsen>Yeah, that's correct. So that's

00:14:24.330 --> 00:14:28.630
<v Aaron van Wirdum>also how the server can cheat. by being one of the previous recipients of the

00:14:28.630 --> 00:14:34.310
<v Aaron van Wirdum>funds or colluding with them. And that way, not keeping to the original

00:14:34.310 --> 00:14:38.710
<v Aaron van Wirdum>idea of only signing in cooperation with the last recipient and thereby stealing

00:14:38.710 --> 00:14:39.130
<v Aaron van Wirdum>the funds.

00:14:39.270 --> 00:14:44.140
<v Ruben Somsen>Yeah, that's right. Because Bob would not have... asked the server to sign

00:14:44.140 --> 00:14:49.300
<v Ruben Somsen>anything yet the server signs the coins and takes them so that would be a

00:14:49.300 --> 00:14:52.380
<v Ruben Somsen>violation of what the what the server what the state chain server is supposed to

00:14:52.380 --> 00:14:58.340
<v Ruben Somsen>do generally speaking so if the server is malicious you're screwed but there are

00:14:58.340 --> 00:15:03.120
<v Ruben Somsen>quite a few kind of nice things that we can do to make it as trust minimized as

00:15:03.120 --> 00:15:08.380
<v Ruben Somsen>possible well to be clear still there is there is this problem it exists So the

00:15:08.380 --> 00:15:11.860
<v Ruben Somsen>first thing is that, well, which we talked about already, right? It's the

00:15:11.860 --> 00:15:16.860
<v Ruben Somsen>Federation. So it's not just a single person. It's a group of people. Hopefully

00:15:16.860 --> 00:15:20.520
<v Ruben Somsen>they're all over the world and they're spread out and you're some kind of

00:15:20.520 --> 00:15:25.640
<v Ruben Somsen>threshold multisig. So seven out of 10 have to agree to take your money if they

00:15:25.640 --> 00:15:30.000
<v Ruben Somsen>want to do so. And the second thing is that there's actually a little trick that

00:15:30.000 --> 00:15:33.840
<v Ruben Somsen>might be a little bit difficult to explain. So I guess I won't go into too

00:15:33.840 --> 00:15:37.600
<v Ruben Somsen>deeply. But essentially, there is a trick that allows you to change the

00:15:37.600 --> 00:15:42.660
<v Ruben Somsen>transitory key with each transfer. If the federation is not malicious, and if

00:15:42.660 --> 00:15:47.860
<v Ruben Somsen>they're acting honestly, they will cooperate with Bob to change the two private

00:15:47.860 --> 00:15:52.520
<v Ruben Somsen>keys, the state chain key and the transitory key. And now if at some later point,

00:15:52.640 --> 00:15:56.980
<v Ruben Somsen>let's say Alice goes and tries to hack the state chain, they cannot actually take

00:15:56.980 --> 00:16:00.940
<v Ruben Somsen>the coins because the state chain has updated its private key and no longer has

00:16:00.940 --> 00:16:03.600
<v Ruben Somsen>the key that... it used in cooperation with alice

00:16:03.600 --> 00:16:07.760
<v Sjors Provoost>so maybe it's useful here to consider how a custodial wallet might work yeah

00:16:07.760 --> 00:16:12.020
<v Sjors Provoost>right in custodial wallet you give a server slash federation whatever it is you

00:16:12.020 --> 00:16:16.720
<v Sjors Provoost>give them your bitcoin and they can do whatever they want with it whether or not

00:16:16.720 --> 00:16:19.380
<v Sjors Provoost>they're honest and they could be forced or they could be hacked at some later

00:16:19.380 --> 00:16:25.260
<v Sjors Provoost>point. But in this model, like you're presenting now, if they're honest, they can

00:16:25.260 --> 00:16:30.480
<v Sjors Provoost>at least make sure that if they get hacked, it doesn't matter. If they get hacked

00:16:30.480 --> 00:16:31.840
<v Sjors Provoost>later on, it doesn't matter.

00:16:32.160 --> 00:16:37.440
<v Ruben Somsen>Yeah, so it's kind of like a voluntary non-custodial setup where if they

00:16:37.440 --> 00:16:43.270
<v Ruben Somsen>voluntarily give up their control... then they cannot even cooperate

00:16:43.270 --> 00:16:48.110
<v Ruben Somsen>with prior users of the state chain and take the money. So they literally kind of

00:16:48.110 --> 00:16:52.130
<v Ruben Somsen>give up their control as long as they follow the protocol as intended. And so

00:16:52.130 --> 00:16:55.930
<v Ruben Somsen>while this doesn't protect you against a malicious state chain, it protects you

00:16:55.930 --> 00:17:00.530
<v Ruben Somsen>against third parties that might attack the state chain, might hack them, or

00:17:00.530 --> 00:17:04.210
<v Ruben Somsen>maybe there's a court order, and then they cannot actually comply because they

00:17:04.210 --> 00:17:05.790
<v Ruben Somsen>don't actually have the keys to take your coins.

00:17:06.770 --> 00:17:07.250
<v Aaron van Wirdum>Interesting.

00:17:07.710 --> 00:17:12.250
<v Sjors Provoost>And another point that we kind of got to earlier, there's also the situation of

00:17:12.250 --> 00:17:15.510
<v Sjors Provoost>what happens when the entity disappears, right? So if the [unclear] wallet

00:17:15.510 --> 00:17:21.310
<v Sjors Provoost>disappears, well, you're just out of luck. The money is stuck in that place, and

00:17:21.310 --> 00:17:25.150
<v Sjors Provoost>it needs to go through the traditional court systems. I think it's similar with a

00:17:25.150 --> 00:17:27.870
<v Sjors Provoost>system like Liquid, where you have a federation that controls the whole

00:17:27.870 --> 00:17:33.070
<v Sjors Provoost>sidechain. If they go offline, the money stays in that federation or subset of

00:17:33.070 --> 00:17:38.320
<v Sjors Provoost>it. Whereas here, at least if without any malicious actors things break down,

00:17:38.960 --> 00:17:43.600
<v Sjors Provoost>you still get your money back. So it's very subtle, the trade-offs, and I would

00:17:43.600 --> 00:17:48.000
<v Sjors Provoost>imagine for a novice user, they would not be able to understand those

00:17:48.000 --> 00:17:52.320
<v Sjors Provoost>differences, and also sometimes you can't even verify the differences, because

00:17:52.320 --> 00:17:55.820
<v Sjors Provoost>you don't know from the outside the difference between a malicious server and a

00:17:55.820 --> 00:17:59.940
<v Sjors Provoost>non-malicious server, because it's not written on the server. That's true. One

00:17:59.940 --> 00:18:02.200
<v Sjors Provoost>that says, well, I'm trying not to be malicious, but yeah.

00:18:02.570 --> 00:18:06.350
<v Ruben Somsen>yeah there would have to be some kind of reputation involved right where you you

00:18:06.350 --> 00:18:11.190
<v Ruben Somsen>know that that federation somehow is is reliable yeah so so that's kind of an

00:18:11.190 --> 00:18:15.410
<v Ruben Somsen>important point to make right so with the federated sidechain model you have kind

00:18:15.410 --> 00:18:20.870
<v Ruben Somsen>of a minority can refuse to give you your coins if it's six or seven out of ten

00:18:20.870 --> 00:18:25.990
<v Ruben Somsen>multi-sig then that means that three or four people if they refuse to sign you're

00:18:25.990 --> 00:18:29.370
<v Ruben Somsen>not getting your coins back so this minority can actually freeze your coins

00:18:29.950 --> 00:18:33.970
<v Ruben Somsen>Whereas with this model, you need the majority to literally take the coins from

00:18:33.970 --> 00:18:38.190
<v Ruben Somsen>you, otherwise you're going to get your coins back. So that is roughly doubling

00:18:38.190 --> 00:18:41.890
<v Ruben Somsen>in security, depending on how you look at it. And on top of that, you can even

00:18:41.890 --> 00:18:46.270
<v Ruben Somsen>make the federation a higher threshold. You can do an 8 out of 10, a 9 out of 10,

00:18:46.350 --> 00:18:50.510
<v Ruben Somsen>because the worst case scenario is that one or two federation members disappear,

00:18:50.510 --> 00:18:54.190
<v Ruben Somsen>and then you're forced on-chain, but you don't lose your money. So it's not a

00:18:54.190 --> 00:18:56.110
<v Ruben Somsen>huge deal, although it is an inconvenience.

00:18:57.000 --> 00:19:01.160
<v Sjors Provoost>Maybe it's worth pointing out because we still have this very cumbersome property

00:19:01.160 --> 00:19:06.520
<v Sjors Provoost>of having to handle the entire UTXO. And as you've mentioned, you can actually

00:19:06.520 --> 00:19:11.920
<v Sjors Provoost>build a channel inside of this thing just kind of just like we discussed in the

00:19:11.920 --> 00:19:12.620
<v Sjors Provoost>previous episode

00:19:12.620 --> 00:19:18.200
<v Ruben Somsen>yes yeah so so the the interesting thing is that basically all the scripting

00:19:18.200 --> 00:19:23.180
<v Ruben Somsen>functionality of bitcoin is preserved and it's kind of done outside of the the

00:19:23.180 --> 00:19:26.920
<v Ruben Somsen>state chain itself so the server doesn't really have to know anything it just

00:19:26.920 --> 00:19:31.360
<v Ruben Somsen>literally it just signs for whoever the owner is and it doesn't have to look at

00:19:31.360 --> 00:19:37.070
<v Ruben Somsen>what it's signing and in fact these can be blind signatures ideally If the thing

00:19:37.070 --> 00:19:41.170
<v Ruben Somsen>that the server is signing is a transaction that sends the money to Alice and

00:19:41.170 --> 00:19:46.430
<v Ruben Somsen>Bob, we have essentially created a lightning channel that we've opened on top of

00:19:46.430 --> 00:19:50.810
<v Ruben Somsen>a state chain. And what's particularly useful and interesting about this is that

00:19:50.810 --> 00:19:55.580
<v Ruben Somsen>you now have an off-chain method of creating lightning channels. It kind of

00:19:55.580 --> 00:19:59.720
<v Ruben Somsen>solves the main issue of the state chain, which is that, well, I have a one

00:19:59.720 --> 00:20:04.360
<v Ruben Somsen>Bitcoin UTXO, but I want to send you 0.5 Bitcoin. How do I do that? So now I can

00:20:04.360 --> 00:20:08.060
<v Ruben Somsen>open a channel and immediately give you 0.5 Bitcoin. And this can happen off

00:20:08.060 --> 00:20:11.700
<v Ruben Somsen>chain. And basically, I'm onboarding you onto the Lightning Network immediately.

00:20:12.180 --> 00:20:16.900
<v Ruben Somsen>And then as long as we cooperate, we can then just go ahead and use it as a

00:20:16.900 --> 00:20:17.680
<v Ruben Somsen>regular Lightning channel.

00:20:18.580 --> 00:20:23.320
<v Aaron van Wirdum>Yeah, or you can balance the channel to the exact right amount. wait am i saying

00:20:23.320 --> 00:20:25.200
<v Aaron van Wirdum>that right am i just repeating what you just said

00:20:25.200 --> 00:20:28.800
<v Ruben Somsen>i'm not sure what you're getting at but but even even if the channel is

00:20:28.800 --> 00:20:33.020
<v Ruben Somsen>imbalanced right like let's say we have a channel and at some point i just send

00:20:33.020 --> 00:20:37.300
<v Ruben Somsen>all my money to Sjors well now we can kind of close the lightning channel and it

00:20:37.300 --> 00:20:41.260
<v Ruben Somsen>just becomes a regular state chain utxo again but now Sjors is the owner instead of me

00:20:41.640 --> 00:20:46.820
<v Aaron van Wirdum>yeah no i i agree i was just gonna repeat what you just said because

00:20:46.820 --> 00:20:48.580
<v Ruben Somsen>it's also useful

00:20:49.700 --> 00:20:54.440
<v Aaron van Wirdum>Yes, no, but no, that wouldn't have been useful. You explain it just fine. Okay,

00:20:54.480 --> 00:20:55.700
<v Aaron van Wirdum>so is anyone working on this?

00:20:56.040 --> 00:20:59.500
<v Ruben Somsen>Yes, so there is, in fact, an implementation that's being worked on now by a

00:20:59.500 --> 00:21:04.040
<v Ruben Somsen>company called CommerceBlock. And they are considering we don't have this eltoo,

00:21:04.180 --> 00:21:09.960
<v Ruben Somsen>SIGHASH ANYPREVOUT soft fork yet. They are restricted in the degree to which they

00:21:09.960 --> 00:21:13.400
<v Ruben Somsen>can make kind of the full picture happen. and one of the things that i think will

00:21:13.400 --> 00:21:17.400
<v Ruben Somsen>not be possible for them is to have this be some kind of lightning channel that

00:21:17.400 --> 00:21:21.120
<v Ruben Somsen>that is probably not going to be possible or at the very least they're going to

00:21:21.120 --> 00:21:26.640
<v Ruben Somsen>have utxos that are going to expire the more you transfer them so this is what

00:21:26.640 --> 00:21:31.360
<v Ruben Somsen>Sjors was explaining earlier if you want to do it without eltoo you basically

00:21:31.360 --> 00:21:37.210
<v Ruben Somsen>have kind of a ticking clock that goes down so The first thing is that you have

00:21:37.210 --> 00:21:41.390
<v Ruben Somsen>to start with a high clock. You have to start with one year from now. And then

00:21:41.390 --> 00:21:45.330
<v Ruben Somsen>with every transfer, you probably, like ideally you want a week between each

00:21:45.330 --> 00:21:49.650
<v Ruben Somsen>transfer. But okay, so maybe because of this limitation, you do it one day. So

00:21:49.650 --> 00:21:54.690
<v Ruben Somsen>you count down one day. Well, that means that you only have 365. transfers until

00:21:54.690 --> 00:21:59.710
<v Ruben Somsen>you're at zero, and now your UTXO needs to be refreshed on-chain. So that's kind

00:21:59.710 --> 00:22:04.050
<v Ruben Somsen>of one of the downsides with the implementation. But that said, I think it's

00:22:04.050 --> 00:22:09.770
<v Ruben Somsen>realistic to try and utilize what you can utilize instead of waiting for a soft

00:22:09.770 --> 00:22:13.910
<v Ruben Somsen>fork, because these things can take a long time. Schnorr has been taking a long

00:22:13.910 --> 00:22:18.260
<v Ruben Somsen>time. Who knows how long SIGHASH ANYPREVOUT is going to take. I hope we're going

00:22:18.260 --> 00:22:22.480
<v Ruben Somsen>to get there soon, but at the same time, that's not, you know, that's not how you

00:22:22.480 --> 00:22:24.480
<v Ruben Somsen>build actual protocols today. You've got to make it.

00:22:24.480 --> 00:22:28.160
<v Sjors Provoost>It also helps the soft fork, right? If you have something that actually needs it.

00:22:28.440 --> 00:22:32.480
<v Sjors Provoost>So, you know, the case for a SIGHASH ANYPREVOUT can be made just by Lightning,

00:22:32.780 --> 00:22:35.640
<v Sjors Provoost>just by looking at Lightning actually exists now. There's all sorts of

00:22:35.640 --> 00:22:41.560
<v Sjors Provoost>complications with it that people have shown, hey, SIGHASH ANYPREVOUT will

00:22:41.560 --> 00:22:46.680
<v Sjors Provoost>make that just... easier yeah it was very it's a very clear case for it already

00:22:46.680 --> 00:22:51.660
<v Sjors Provoost>but if that case didn't exist then maybe something like state chains could exist

00:22:51.660 --> 00:22:55.940
<v Sjors Provoost>and even the end would be cumbersome but people would still be using it because

00:22:55.940 --> 00:22:58.940
<v Sjors Provoost>that's of course the metric you can have a really complicated system and if

00:22:58.940 --> 00:23:02.810
<v Sjors Provoost>nobody uses it then Nobody cares, but if a lot of people are using it, but the

00:23:02.810 --> 00:23:07.470
<v Sjors Provoost>complexity is there, now you've made a case for the soft fork. So it can be

00:23:07.470 --> 00:23:10.770
<v Sjors Provoost>useful to try something with a sub-optimal technology just to see if there's any

00:23:10.770 --> 00:23:14.590
<v Sjors Provoost>demand for it, because maybe there's none. Maybe people don't care about it.

00:23:14.750 --> 00:23:15.830
<v Sjors Provoost>There's too many trade-offs.

00:23:16.070 --> 00:23:21.820
<v Ruben Somsen>That's a good point. Yeah, no, I totally agree. And it is, I guess, yeah, to your

00:23:21.820 --> 00:23:27.460
<v Ruben Somsen>point, it's kind of yet another reason to get SIGHASH ANYPREVOUT. So that's a

00:23:27.460 --> 00:23:28.340
<v Ruben Somsen>plus, I guess. Well,

00:23:28.440 --> 00:23:29.020
<v Sjors Provoost>it could be.

00:23:29.280 --> 00:23:30.480
<v Ruben Somsen>It could be, yeah. Who knows?

00:23:33.150 --> 00:23:37.430
<v Aaron van Wirdum>We haven't mentioned what part of this is actually called the state chain, I think.

00:23:37.990 --> 00:23:38.470
<v Ruben Somsen>Okay, yeah.

00:23:39.870 --> 00:23:40.850
<v Aaron van Wirdum>Where is the chain?

00:23:41.070 --> 00:23:43.930
<v Ruben Somsen>Where is the chain, yes. So there is a chain.

00:23:45.230 --> 00:23:50.820
<v Ruben Somsen>So when Alice sends her money to Bob... What Bob has to do is actually go back

00:23:50.820 --> 00:23:55.200
<v Ruben Somsen>and check all the signatures that the state chain has made with this key to see

00:23:55.200 --> 00:23:59.320
<v Ruben Somsen>if there's any conflicting transaction. So that is the chain. There's going to be

00:23:59.320 --> 00:24:05.080
<v Ruben Somsen>a chain that is just linear for each UTXO, where the entire UTXO goes from Alice

00:24:05.080 --> 00:24:09.560
<v Ruben Somsen>to Bob to Carol to Dave. And with each transfer, there's a signature from the

00:24:09.560 --> 00:24:15.220
<v Ruben Somsen>state chain. And that is the chain. That is the state chain. It's very

00:24:15.220 --> 00:24:20.780
<v Ruben Somsen>simple states, linear states. And just transferring, basically, ownership of

00:24:20.780 --> 00:24:25.580
<v Ruben Somsen>that, of the signing rights, essentially, of the statechain key from one person to another.

00:24:25.880 --> 00:24:30.640
<v Aaron van Wirdum>Yeah. And I think that's also what makes it obvious if the federation or the

00:24:30.640 --> 00:24:32.620
<v Aaron van Wirdum>server tries to cheat at any point.

00:24:32.920 --> 00:24:33.120
<v Ruben Somsen>Yes.

00:24:33.280 --> 00:24:34.240
<v Sjors Provoost>If you publish the chain.

00:24:34.460 --> 00:24:34.660
<v Ruben Somsen>Yes.

00:24:34.740 --> 00:24:38.700
<v Sjors Provoost>That's another part that you mentioned. You could make the chain itself public in

00:24:38.700 --> 00:24:44.000
<v Sjors Provoost>a privacy-friendly way so that... The participants can see whether the server is

00:24:44.000 --> 00:24:44.980
<v Sjors Provoost>doing a double spend.

00:24:45.240 --> 00:24:49.840
<v Ruben Somsen>Yes. Yeah, no, that's exactly right. So this is, I think, a difficult point for

00:24:49.840 --> 00:24:55.660
<v Ruben Somsen>people to comprehend, but an important one, which is that what if I have

00:24:55.660 --> 00:25:01.520
<v Ruben Somsen>two states, essentially? So I have Alice to Bob and I have Alice to Carol. And I

00:25:01.520 --> 00:25:05.440
<v Ruben Somsen>just make sure that Bob only sees Alice to Bob and Carol only sees Alice to

00:25:05.440 --> 00:25:10.090
<v Ruben Somsen>Carol. And now there's one UTXO, but there are two owners. And only if they go on

00:25:10.090 --> 00:25:15.430
<v Ruben Somsen>-chain will they figure out what's going on. And even in this scenario, eventually

00:25:15.430 --> 00:25:19.010
<v Ruben Somsen>they'll find out and eventually the state chain will be dead. But if it's, let's

00:25:19.010 --> 00:25:22.810
<v Ruben Somsen>say, a very successful state chain and people don't go on-chain very often, this

00:25:22.810 --> 00:25:27.470
<v Ruben Somsen>could mean that for a couple of months, the state chain is just cheating and then

00:25:27.470 --> 00:25:32.690
<v Ruben Somsen>eventually people find out. But by then, it has half the coins. Not ideal. So for

00:25:32.690 --> 00:25:35.910
<v Ruben Somsen>that reason, ideally, you have some kind of...

00:25:37.200 --> 00:25:42.980
<v Ruben Somsen>some kind of chain that contains every UTXO that it controls. And ideally you do

00:25:42.980 --> 00:25:48.420
<v Ruben Somsen>so with a so-called sparse Merkle tree, which has basically one slot for

00:25:48.420 --> 00:25:54.340
<v Ruben Somsen>every possible hash you can imagine. And that means that if you have a single

00:25:54.340 --> 00:25:57.980
<v Ruben Somsen>UTXO, there's only a single slot in which it could fit. So you could never

00:25:57.980 --> 00:26:02.660
<v Ruben Somsen>publish both Alice to Bob and Alice and Carol at the same time.

00:26:04.050 --> 00:26:08.290
<v Sjors Provoost>Right, so what does the slot look like? It's the hash of the UTXO?

00:26:08.850 --> 00:26:10.130
<v Ruben Somsen>Yeah, it would be. And

00:26:10.130 --> 00:26:12.410
<v Sjors Provoost>then the new owner? It

00:26:12.410 --> 00:26:17.490
<v Ruben Somsen>would be probably the hash of the public key of the state chain. So every state

00:26:17.490 --> 00:26:19.990
<v Ruben Somsen>chain has a different public key for every chain.

00:26:21.280 --> 00:26:25.280
<v Ruben Somsen>And ideally, you don't really tell it which UTXO it controls. It doesn't really

00:26:25.280 --> 00:26:29.400
<v Ruben Somsen>have to know that information. So it would be the key with which the state chain

00:26:29.400 --> 00:26:30.560
<v Ruben Somsen>signs that would be the slot.

00:26:31.520 --> 00:26:36.800
<v Sjors Provoost>Right. At least some derivative of the UTXO and some derivative of the owner

00:26:36.800 --> 00:26:42.640
<v Sjors Provoost>of the key, essentially. And you can see, or you look up the UTXO and you

00:26:42.640 --> 00:26:46.500
<v Sjors Provoost>see that you're the actual owner according to the thing that's published.

00:26:46.860 --> 00:26:47.160
<v Ruben Somsen>Yes.

00:26:48.800 --> 00:26:50.820
<v Sjors Provoost>So where is it published? Where were you?

00:26:52.260 --> 00:26:56.700
<v Ruben Somsen>One way of doing it would be to have another peer-to-peer network where people

00:26:56.700 --> 00:27:01.110
<v Ruben Somsen>share the chain, essentially. But actually, what's interesting, one thing you can

00:27:01.110 --> 00:27:06.650
<v Ruben Somsen>do is just you can use the Bitcoin blockchain and just publish on there. So you

00:27:06.650 --> 00:27:09.630
<v Ruben Somsen>would have for every 10 minutes, you would publish a new hash or a new set of

00:27:09.630 --> 00:27:14.170
<v Ruben Somsen>hashes if you want a faster, faster chain. And that would mean that, you know,

00:27:14.250 --> 00:27:17.770
<v Ruben Somsen>it's kind of the you're utilizing Bitcoin as a censorship for censorship

00:27:17.770 --> 00:27:23.090
<v Ruben Somsen>resistance where, you know, only one chain is published. So, you know, if in the

00:27:23.090 --> 00:27:26.790
<v Ruben Somsen>Alice to Bob, Alice to Carol scenario, both Bob and Carol, they go to Bitcoin

00:27:26.790 --> 00:27:30.950
<v Ruben Somsen>blockchain, they check the hash. And then they check their specific slot for the

00:27:30.950 --> 00:27:35.070
<v Ruben Somsen>UTXO they own and they would figure out that, oh, Bob owns it or, oh, Carol owns it.

00:27:35.530 --> 00:27:39.250
<v Aaron van Wirdum>But that would then have to be like a Merkle root in the blockchain? Because

00:27:39.250 --> 00:27:43.350
<v Aaron van Wirdum>otherwise, what's the point? The point is to do it off-chain, right?

00:27:43.610 --> 00:27:46.010
<v Sjors Provoost>The only thing you need to put in the blockchain is a Merkle root.

00:27:46.350 --> 00:27:47.710
<v Aaron van Wirdum>Of all the state chains.

00:27:47.850 --> 00:27:51.750
<v Sjors Provoost>Yeah, or like all the state chains plus the Library of Alexandria. The point is

00:27:51.750 --> 00:27:55.490
<v Sjors Provoost>as long as you offline have all the information that you need to reconstruct the

00:27:55.490 --> 00:28:01.440
<v Sjors Provoost>whole Merkle tree. then you should come to the conclusion that the Merkle root is

00:28:01.440 --> 00:28:02.980
<v Sjors Provoost>what is in fact in the Bitcoin blockchain.

00:28:06.060 --> 00:28:10.080
<v Sjors Provoost>My issue with this sort of stuff is you're really proving why Bitcoin exists.

00:28:10.440 --> 00:28:13.880
<v Sjors Provoost>Because all these problems, like, oh, but what if somebody double spends? What if

00:28:13.880 --> 00:28:16.840
<v Sjors Provoost>somebody's lying about what the truth is? Well, now, imagine we have this

00:28:16.840 --> 00:28:21.200
<v Sjors Provoost>blockchain where we can just fix that. But you run into, at some point, some

00:28:21.200 --> 00:28:25.140
<v Sjors Provoost>scaling limitations. So it's nice to have creative ways out of it. But it's also

00:28:25.140 --> 00:28:29.550
<v Sjors Provoost>nice to see that whenever you run into problems with this... a new layer, you can

00:28:29.550 --> 00:28:31.490
<v Sjors Provoost>see that Bitcoin kind of solves that problem.

00:28:31.790 --> 00:28:35.750
<v Aaron van Wirdum>Absolutely, yeah. But I mean, that is sort of the point of second layers, partly.

00:28:36.130 --> 00:28:41.870
<v Aaron van Wirdum>Like, we're making some sort of trade-off somewhere in order to benefit in other ways.

00:28:42.050 --> 00:28:45.470
<v Sjors Provoost>Well, it'll be interesting to see which of these solutions tends to win out. I

00:28:45.470 --> 00:28:51.290
<v Sjors Provoost>mean, I am a little biased towards the Lightning working. But, and at this point,

00:28:51.410 --> 00:28:54.530
<v Sjors Provoost>I don't see so much adoption of Lightning that I'm worried that the main chain is

00:28:54.530 --> 00:28:59.440
<v Sjors Provoost>going to run out of capacity. In other words, We don't necessarily need another

00:28:59.440 --> 00:29:01.680
<v Sjors Provoost>layer below or above lightning.

00:29:02.000 --> 00:29:03.700
<v Ruben Somsen>Yeah, I agree with that.

00:29:04.440 --> 00:29:09.980
<v Sjors Provoost>And also, my experience with human behavior is that people will absolutely ignore

00:29:09.980 --> 00:29:15.160
<v Sjors Provoost>the next scaling problem until they [unclear] face. Yes. So, you know,

00:29:15.740 --> 00:29:20.580
<v Sjors Provoost>Segwit got deployed a lot faster when fees went up. Yeah. And my guess would be

00:29:20.580 --> 00:29:24.500
<v Sjors Provoost>that if and when lightning hits serious capacity issues, because, you know, you

00:29:24.500 --> 00:29:28.660
<v Sjors Provoost>can't close channels anymore if too many people do it at once. Then people will

00:29:28.660 --> 00:29:31.520
<v Sjors Provoost>look at all these proposals like state chains and then the other...

00:29:31.520 --> 00:29:32.260
<v Aaron van Wirdum>Payment pools.

00:29:32.740 --> 00:29:35.920
<v Sjors Provoost>Yeah, payment pools. And then they start really seriously implementing them. But

00:29:35.920 --> 00:29:38.480
<v Sjors Provoost>then they notice that there's all sorts of practical problems they haven't really

00:29:38.480 --> 00:29:40.540
<v Sjors Provoost>thought about in the theoretical observations.

00:29:41.230 --> 00:29:42.930
<v Aaron van Wirdum>Ruben has thought of everything, I think.

00:29:43.230 --> 00:29:48.970
<v Ruben Somsen>I don't think so. I'm trying, but obviously, once you get to the

00:29:48.970 --> 00:29:54.030
<v Ruben Somsen>actual implementation, you run into issues. And there are definitely some

00:29:54.030 --> 00:29:59.710
<v Ruben Somsen>more complex issues that are difficult to even explain now on a podcast like

00:29:59.710 --> 00:30:04.250
<v Ruben Somsen>this. So I definitely think that it's not going to be that easy. And Lightning is

00:30:04.250 --> 00:30:09.270
<v Ruben Somsen>the perfect example, to your point, Sjors. The Lightning Network, in theory,

00:30:09.510 --> 00:30:13.780
<v Ruben Somsen>it's... relatively simple to understand i mean not super simple but now you know

00:30:13.780 --> 00:30:17.180
<v Ruben Somsen>if you look at how it's working in practice with the routing and everything it's

00:30:17.180 --> 00:30:21.220
<v Ruben Somsen>like super complex and most of the problems are only discovered when you really

00:30:21.220 --> 00:30:22.140
<v Ruben Somsen>are doing it

00:30:22.140 --> 00:30:26.500
<v Sjors Provoost>yeah yeah so i'm imagining these cycles where you start running at max capacity

00:30:26.500 --> 00:30:32.040
<v Sjors Provoost>you then start trying this this new layer solutions but by the time you you have

00:30:32.040 --> 00:30:36.340
<v Sjors Provoost>some experience with it the capacity is already sort of subsided again yeah and

00:30:36.340 --> 00:30:40.300
<v Sjors Provoost>then you have a few years to work on it and then You know, it repeats.

00:30:40.660 --> 00:30:44.800
<v Ruben Somsen>And, yeah, you know, like, I think... You know, I look at this from the

00:30:44.800 --> 00:30:50.020
<v Ruben Somsen>perspective of where does Bitcoin have to go? And for me, it's kind of obvious

00:30:50.020 --> 00:30:54.420
<v Ruben Somsen>that there is some kind of role for federations. And I think Lightning is kind of

00:30:54.420 --> 00:30:58.820
<v Ruben Somsen>the superior option in terms of trustlessness, where you don't have to, there's

00:30:58.820 --> 00:31:03.340
<v Ruben Somsen>no federation with Lightning, right? So that is better in that sense. But the

00:31:03.340 --> 00:31:07.320
<v Ruben Somsen>issue you get with Lightning is that it's limited in throughput, right? You have

00:31:07.320 --> 00:31:13.180
<v Ruben Somsen>routing, you have channels. And you have to send money through channels

00:31:13.180 --> 00:31:16.840
<v Ruben Somsen>that are available that have enough liquidity. Whereas with state chains, you

00:31:16.840 --> 00:31:21.200
<v Ruben Somsen>don't really have that problem. You can have a 100 Bitcoin UTXO and you can

00:31:21.200 --> 00:31:25.240
<v Ruben Somsen>transfer it from one person to another person. No issues there. Obviously,

00:31:25.240 --> 00:31:31.060
<v Ruben Somsen>there's a tradeoff there. But I think once. There will be a point where

00:31:31.060 --> 00:31:34.180
<v Ruben Somsen>we hit the limitations of the Bitcoin blockchain, we hit the limitations of

00:31:34.180 --> 00:31:39.220
<v Ruben Somsen>Lightning, and I think that's where federations fit in, and then we see federated

00:31:39.220 --> 00:31:42.160
<v Ruben Somsen>sidechains becoming more popular, and hopefully statechains as well.

00:31:42.760 --> 00:31:47.520
<v Aaron van Wirdum>They work good in combination with each other as well. Yeah. Do you have an

00:31:47.520 --> 00:31:51.180
<v Aaron van Wirdum>opinion on, have you looked into payment pools, for example, because they have

00:31:51.180 --> 00:31:52.180
<v Aaron van Wirdum>sort of the same benefit?

00:31:52.500 --> 00:31:52.680
<v Ruben Somsen>Yeah.

00:31:52.940 --> 00:31:55.440
<v Aaron van Wirdum>At least when it comes to hosting Lightning channels.

00:31:55.580 --> 00:31:55.720
<v Ruben Somsen>Yeah.

00:31:56.040 --> 00:32:00.010
<v Aaron van Wirdum>How do they relate to each other? Why are state chains that much better?

00:32:00.350 --> 00:32:05.290
<v Ruben Somsen>Yeah, so it's kind of a different problem, right? Where the payment pool can

00:32:05.290 --> 00:32:09.960
<v Ruben Somsen>actually work on top of the state chain. So... With a payment pool, at least like

00:32:09.960 --> 00:32:13.760
<v Ruben Somsen>I think the scenario you guys described was where you kind of go on-chain

00:32:13.760 --> 00:32:18.820
<v Ruben Somsen>periodically. So you have a UTXO. It's controlled by, let's say, 10 people.

00:32:19.420 --> 00:32:23.200
<v Ruben Somsen>And when one of them wants to pay, you go on-chain with all 10 people

00:32:23.200 --> 00:32:27.760
<v Ruben Somsen>cooperating. And you send a little bit of money out. And that money came from

00:32:27.760 --> 00:32:31.820
<v Ruben Somsen>kind of the inside of the pool from that one person. But from the outside, you

00:32:31.820 --> 00:32:35.160
<v Ruben Somsen>just see a single UTXO paying a little bit and sending it to another UTXO.

00:32:36.440 --> 00:32:40.160
<v Ruben Somsen>moments of going on chain can be completely off chain now that that would be the

00:32:40.160 --> 00:32:40.580
<v Ruben Somsen>state chain

00:32:40.580 --> 00:32:42.900
<v Aaron van Wirdum>but that can happen with payment pools as well

00:32:42.900 --> 00:32:47.880
<v Ruben Somsen>right but then uh once you do that so you could then you would have basically a

00:32:47.880 --> 00:32:51.520
<v Ruben Somsen>lightning channel factory right where and so then the first thing is you can only

00:32:51.520 --> 00:32:55.600
<v Ruben Somsen>pay people that are inside of the pool Or you have to have a lightning channel

00:32:55.600 --> 00:33:00.400
<v Ruben Somsen>with enough liquidity and route it through the lightning network. So then you go

00:33:00.400 --> 00:33:06.020
<v Ruben Somsen>back into the lightning limitations. So even there, you have a limit that you're

00:33:06.020 --> 00:33:10.260
<v Ruben Somsen>hitting that is not really there with state chains. Although, obviously, you have

00:33:10.260 --> 00:33:14.600
<v Ruben Somsen>a trade-off of trusting a federation. So you don't get that for free. But you

00:33:14.600 --> 00:33:18.260
<v Ruben Somsen>really have total freedom with where to send your money on a state chain.

00:33:18.520 --> 00:33:22.280
<v Sjors Provoost>Yeah, that sounds like a main big difference, right? So we talked about these

00:33:22.280 --> 00:33:28.240
<v Sjors Provoost>payment pools before. So you cannot simply move money out of it without doing

00:33:28.240 --> 00:33:31.260
<v Sjors Provoost>something on-chain or with Lightning.

00:33:31.820 --> 00:33:35.620
<v Aaron van Wirdum>No, but you can send it to people who are not in the payment pool. They just got

00:33:35.620 --> 00:33:39.060
<v Aaron van Wirdum>to join then. So that's sort of similar benefits.

00:33:39.200 --> 00:33:43.720
<v Ruben Somsen>That's an on-chain action. You can't join off-chain. There's no way of joining a

00:33:43.720 --> 00:33:45.360
<v Ruben Somsen>payment pool off-chain. That's not possible.

00:33:46.270 --> 00:33:48.210
<v Aaron van Wirdum>I think there is. Yeah, you can pay someone.

00:33:49.060 --> 00:33:51.820
<v Sjors Provoost>Maybe we have to re-listen to our own episode.

00:33:52.060 --> 00:33:54.320
<v Aaron van Wirdum>No, I'm pretty sure that's possible. You can just let someone join.

00:33:54.560 --> 00:33:58.380
<v Ruben Somsen>I don't think so, because you have a multisig, and they're not part of the

00:33:58.380 --> 00:33:59.420
<v Ruben Somsen>multisig. They don't have the key.

00:33:59.680 --> 00:34:00.840
<v Aaron van Wirdum>No, but they are in the new version.

00:34:01.400 --> 00:34:04.260
<v Ruben Somsen>Yeah, but then you have to go on-chain to put them in the new version.

00:34:04.970 --> 00:34:05.790
<v Aaron van Wirdum>I don't think so.

00:34:05.830 --> 00:34:07.390
<v Ruben Somsen>There's nothing on-chain that gives them ownership.

00:34:08.990 --> 00:34:14.910
<v Ruben Somsen>If nothing happens on-chain, they won't be in the UTXO. Who controls the

00:34:14.910 --> 00:34:16.430
<v Ruben Somsen>UTXO? Well, it's not that person, right?

00:34:16.550 --> 00:34:17.490
<v Aaron van Wirdum>No, but they are...

00:34:19.420 --> 00:34:24.900
<v Aaron van Wirdum>Okay, so Sjors and me, we're in this payment pool, right? Yeah. So we got a

00:34:24.900 --> 00:34:30.340
<v Aaron van Wirdum>shared UTXO. Okay, then we now want to pay you. We both have, I don't know, I

00:34:30.340 --> 00:34:33.960
<v Aaron van Wirdum>have two Bitcoins, Sjors is one. Now I want to pay you one, so we both have three

00:34:33.960 --> 00:34:39.000
<v Aaron van Wirdum>in the new payment pool. Yeah. So we create a new multi-sig, where you are also

00:34:39.000 --> 00:34:43.060
<v Aaron van Wirdum>part of it now. And we distribute it in such a way that we all have one Bitcoin.

00:34:43.300 --> 00:34:47.540
<v Aaron van Wirdum>And we do this through eltoo. So we can do it off-chain, and now you're part of

00:34:47.540 --> 00:34:49.020
<v Aaron van Wirdum>the pool, and we did it all off-chain.

00:34:49.340 --> 00:34:50.980
<v Ruben Somsen>Okay, so let's say I'm part of the pool now.

00:34:51.020 --> 00:34:54.580
<v Aaron van Wirdum>This is not about statechains at all anymore, by the way, but that's fine.

00:34:54.700 --> 00:34:59.480
<v Ruben Somsen>No, no, it's still related. I can bring it back to statechains. Okay, so now the

00:34:59.480 --> 00:35:05.200
<v Ruben Somsen>question is, okay, so you brought me in off-chain, but now who

00:35:05.200 --> 00:35:08.520
<v Ruben Somsen>owns the UTXO on the blockchain? What is the script there?

00:35:08.860 --> 00:35:13.060
<v Sjors Provoost>Well, that's basically this off-chain transaction that you have. You can send it

00:35:13.060 --> 00:35:15.140
<v Sjors Provoost>to the blockchain. And then you have a coin.

00:35:16.650 --> 00:35:17.810
<v Ruben Somsen>Yeah, but you can...

00:35:17.810 --> 00:35:18.470
<v Sjors Provoost>It's a funding transaction.

00:35:18.930 --> 00:35:22.110
<v Ruben Somsen>Yeah, but you can update... Who can update that funding transaction?

00:35:23.240 --> 00:35:26.740
<v Sjors Provoost>Well, the funding transaction is already on the blockchain, so nobody can update it.

00:35:26.920 --> 00:35:32.300
<v Ruben Somsen>So the same way you added me... The same way you added me to the pool,

00:35:32.580 --> 00:35:37.360
<v Ruben Somsen>you can also un-add me, because you guys control that key. I don't control it.

00:35:37.360 --> 00:35:41.580
<v Aaron van Wirdum>Yeah, we still control the Schnorr, the original Taproot.

00:35:42.300 --> 00:35:42.540
<v Ruben Somsen>Yeah.

00:35:43.540 --> 00:35:44.020
<v Sjors Provoost>Yeah.

00:35:45.670 --> 00:35:48.710
<v Ruben Somsen>So that's where the pool party ends, I'm afraid.

00:35:48.990 --> 00:35:49.950
<v Aaron van Wirdum>I think you might be right.

00:35:50.890 --> 00:35:56.870
<v Sjors Provoost>If we are right, collectively, then you can sum up some

00:35:56.870 --> 00:36:01.050
<v Sjors Provoost>of the differences, saying, okay, with state chains you can add arbitrary people

00:36:01.050 --> 00:36:05.890
<v Sjors Provoost>without doing anything on-chain, but you need to trust server-ish,

00:36:07.090 --> 00:36:11.710
<v Sjors Provoost>and with both of them you can do lightning channels inside of it, so that's kind of cool.

00:36:13.320 --> 00:36:17.800
<v Sjors Provoost>Yeah, what else? So there's one thing. You can compare it with, you know, you can

00:36:17.800 --> 00:36:22.400
<v Sjors Provoost>go all the way from a custodial wallet where you have some trust. You have

00:36:22.400 --> 00:36:26.280
<v Sjors Provoost>complete trust, but account balances can be moved completely arbitrarily and

00:36:26.280 --> 00:36:30.340
<v Sjors Provoost>people can receive Bitcoin by getting an email without any on-chain action if

00:36:30.340 --> 00:36:35.720
<v Sjors Provoost>they trust that model. Or they can take it out until it goes Ponzi. And then,

00:36:35.840 --> 00:36:41.650
<v Sjors Provoost>you know, you go to a federated sidechain where... you trust the federation to

00:36:41.650 --> 00:36:44.650
<v Sjors Provoost>actually give you your money back. But within that system, you can move

00:36:44.650 --> 00:36:49.370
<v Sjors Provoost>arbitrarily and you can send it to people who are new. You can send liquid, for

00:36:49.370 --> 00:36:52.530
<v Sjors Provoost>example, to any person on the planet as long as they create a wallet for that.

00:36:52.610 --> 00:36:57.490
<v Sjors Provoost>They can then withdraw it with some restrictions, but they can do it. And with

00:36:57.490 --> 00:37:02.960
<v Sjors Provoost>state chains, you can also send it to arbitrary people. And then... Right. With

00:37:02.960 --> 00:37:06.840
<v Sjors Provoost>the coin pools, you cannot send it to arbitrary people. That's right. So that's

00:37:06.840 --> 00:37:10.020
<v Sjors Provoost>kind of where it goes down. And with Lightning, you most certainly can't send to

00:37:10.020 --> 00:37:13.320
<v Sjors Provoost>arbitrary people because you also need to have inbound capacity to receive. So

00:37:13.320 --> 00:37:17.040
<v Sjors Provoost>that's another barrier, but it's completely trustless. Yeah. Well, yeah.

00:37:17.920 --> 00:37:19.220
<v Ruben Somsen>Yeah, that's absolutely right.

00:37:19.800 --> 00:37:23.060
<v Sjors Provoost>You need to be vigilant with Lightning, right? So that's a big trade-off. You

00:37:23.060 --> 00:37:27.140
<v Sjors Provoost>can't just go to bed and ignore what's happening on the chain in Lightning. So on

00:37:27.140 --> 00:37:29.220
<v Sjors Provoost>-chain, you get it, it's yours, and you're done.

00:37:29.660 --> 00:37:33.580
<v Ruben Somsen>Well, so I would have to add that with statechains, that there's a similarity

00:37:33.580 --> 00:37:38.340
<v Ruben Somsen>there, right, where you do have to watch for Alice. Like if Bob receives the

00:37:38.340 --> 00:37:42.540
<v Ruben Somsen>statechain off-chain, you think so, Alice can still send her transaction to the

00:37:42.540 --> 00:37:45.820
<v Ruben Somsen>blockchain, and then Bob has to override it. So Bob does have to check the

00:37:45.820 --> 00:37:47.610
<v Ruben Somsen>blockchain once a week. or so.

00:37:47.680 --> 00:37:49.460
<v Sjors Provoost>So that's similar. This is what I was trying to get to the point of how

00:37:49.460 --> 00:37:53.440
<v Sjors Provoost>complicated is your actual wallet and node that are going to be to do this. So we

00:37:53.440 --> 00:37:57.080
<v Sjors Provoost>know lightning software is not simple. It has to watch a whole bunch of things.

00:37:57.700 --> 00:38:01.740
<v Sjors Provoost>And we discussed this with the coin pools as well. You probably need lightning

00:38:01.740 --> 00:38:07.600
<v Sjors Provoost>-ish kind of complexity to move money around and see which of your pool, your co

00:38:07.600 --> 00:38:11.760
<v Sjors Provoost>-poolers are actually there and make sure that all stays synced. So if you have to

00:38:11.760 --> 00:38:14.820
<v Sjors Provoost>build the complexity anyway, I would imagine people will just use lightning

00:38:14.820 --> 00:38:19.700
<v Sjors Provoost>because that complexity is already built. And I think with state chains, you have

00:38:19.700 --> 00:38:23.800
<v Sjors Provoost>maybe similar complexity, maybe less because you can stop paying attention when

00:38:23.800 --> 00:38:24.320
<v Sjors Provoost>you're done.

00:38:24.670 --> 00:38:28.350
<v Ruben Somsen>yeah there's a there's the interesting thing is there's a lot of overlap with how

00:38:28.350 --> 00:38:31.730
<v Ruben Somsen>lightning works so i think a lot of the stuff that's being built for lightning

00:38:31.730 --> 00:38:37.010
<v Ruben Somsen>will be operational for state chains for instance watch towers right so there are

00:38:37.010 --> 00:38:41.490
<v Ruben Somsen>all these proposals to have other people look at the blockchain on your behalf

00:38:41.490 --> 00:38:45.730
<v Ruben Somsen>and send a certain transaction when something occurs and that exact same model

00:38:45.730 --> 00:38:47.530
<v Ruben Somsen>would apply here for instance well

00:38:47.530 --> 00:38:51.630
<v Sjors Provoost>that applies to what i said before too right so yeah you can reuse a lot of the

00:38:51.630 --> 00:38:54.640
<v Sjors Provoost>complex software that's already out there yeah especially if there are good

00:38:54.640 --> 00:38:59.740
<v Sjors Provoost>generic libraries. But it's not a completely existing software package here. No,

00:38:59.780 --> 00:39:00.700
<v Sjors Provoost>no. Somebody has to make it.

00:39:00.800 --> 00:39:02.180
<v Ruben Somsen>There's a lot of work that needs to be done. So it's always

00:39:02.180 --> 00:39:04.040
<v Sjors Provoost>easy to use a software package that's already there.

00:39:04.220 --> 00:39:09.750
<v Ruben Somsen>Yeah. So there is one point that I want to go back to, which is the payment pool

00:39:09.750 --> 00:39:15.630
<v Ruben Somsen>example where Aaron was saying, okay, let's add Ruben into the pool. So one

00:39:15.630 --> 00:39:20.770
<v Ruben Somsen>way you can do that is through statechain. So if inside of the payment pool, the

00:39:20.770 --> 00:39:25.800
<v Ruben Somsen>aaron's utxo is actually controlled by the state chain then through the state

00:39:25.800 --> 00:39:30.740
<v Ruben Somsen>chain inside of the pool you could give me that one bitcoin and you would not

00:39:30.740 --> 00:39:36.260
<v Ruben Somsen>need Sjors to cooperate with you in order to do so so this is a subtle point but

00:39:36.260 --> 00:39:39.480
<v Ruben Somsen>kind of an important one and it's very specific to kind of what we're getting at

00:39:39.480 --> 00:39:45.090
<v Ruben Somsen>with the whole payment pool limitation of a you can't add new people b you have

00:39:45.090 --> 00:39:50.030
<v Ruben Somsen>to cooperate with everybody to do so so if if instead of the payment pool your

00:39:50.030 --> 00:39:54.730
<v Ruben Somsen>key is actually controlled by a state chain you are free to move that coin

00:39:54.730 --> 00:39:58.310
<v Ruben Somsen>however you like without the other payment pool participants having to get

00:39:58.310 --> 00:40:03.660
<v Ruben Somsen>involved so that's a kind of a Important point, but I think a difficult one to

00:40:03.660 --> 00:40:05.720
<v Ruben Somsen>grasp. So hopefully it's clear.

00:40:05.880 --> 00:40:06.800
<v Sjors Provoost>It's a lot of layers.

00:40:07.040 --> 00:40:08.480
<v Ruben Somsen>Yes, it's a lot of layers.

00:40:08.660 --> 00:40:12.360
<v Sjors Provoost>Especially because you can nest this stuff forever. You have state chains inside

00:40:12.360 --> 00:40:15.200
<v Sjors Provoost>of coin pools, inside of state chains, inside of lightning channels.

00:40:15.380 --> 00:40:15.760
<v Ruben Somsen>That's right.

00:40:16.620 --> 00:40:19.100
<v Sjors Provoost>Aaron, do you think we have more questions to ask this time?

00:40:19.760 --> 00:40:21.720
<v Aaron van Wirdum>That's enough nests for me, Sjors.

00:40:22.020 --> 00:40:25.480
<v Sjors Provoost>Okay, in that case I'll say thank you for listening to the Van Wirdum Sjorsnado

00:40:25.740 --> 00:40:28.540
<v Sjors Provoost>Special Somsen Edition. Yeah, there you go.

