Whiteboard Series with NEAR | Ep: 28 Jaynti Kanani from Matic
Nothing is loaded from YouTube until you press play, and then without tracking cookies.
About this video
Jaynti Kanani ( / _jdkanani ) and CEO Alex Skidanov ( / alexskidanov ) talk about Matic in the 28th episode of the Whiteboard Session. Matic is a layer two solution to help scale Ethereum using PoS side chains.
------ About Whiteboard Series --------
The Whiteboard Series with NEAR is a set of video interviews with Founders who are building scalable solutions for Blockchain. We deep dive into their story, what they're developing and how it is helping the ecosystem.
Follow the latest from NEAR Protocol on,
Discord: near.ai/discord Medium: near.ai/medium Twitter: near.ai/twitter GitHub: near.ai/github
#WhiteboardSeries #Blockchain #FutureIsNEAR
Transcript
4,929 wordsCaptions as YouTube publishes them, usually machine-generated, so product and people names can be misheard.
- 0:03
hi everyone this is Alice from here with me today RJD and harvest from magic and we will talk a little bit about the rear two plasmas side chains all things probably like introducing some guys and my name is Jessica I also go by a JD CEO at market research so my name is after that Emma and I work as a blockchain engineer at matok so things like plasma and everything else oh so he is like introduces the overall
- 0:38
design of the system so first of all like we are user mostly people see that tokens in a contract so it's basically because it conduct routine everything all around the city and when you when the users basically deposit the contrast on the routine contract it will appear like only on this action sergeant is our side chain is basically if you EVM compatible and here20 any a 17-7
- 1:32
Pentagon contracts are basically plasma sick so I will explain you so this is like other chain which is EVM not beautiful and whenever you are the focus here the validators basically create your post it here so basically let's say if you was in tenth I yeah here here so they take turns producing
- 3:31
books oh yes so basically this is like simple we just use the gate because you know it just take downs and the person the probability of choosing it chosen by to become greater you could use take wedding is a medic over here X cosine we just call it like a state militia oh yes
- 5:53
stockings and I say something happens here the code etcetera you can start let's see we need you yeah I mean this is next simple EVM seconds SEC simple because we know the comedian body yeah sometimes every put the edge of the older box they would only take one and on this chain the the four children is just whichever one is longest so here we have like kind of we you know which flow will get by
- 6:50
Mitch which for wizard not so so the first producer created the Walker here yeah basically hh-hello like different singular yes so if let's say after three balls if this everyone will so if you can please to whichever one has higher difficulty yes miss like you Lee so basically yes so being this case skip
- 8:08
the bore and so that's going to be over yes so you know so basically it's basically yesterday first created and then sometime and so so this is the seconds
- 10:01
I guess our question is let's go to the details of how from the game changer they to the sanction so let's say I'm looking ten by playing it smart conflict they now let's say that validators neighbor actually was my procedure so here I is yes yes okay and so what
- 11:52
happens let's say it was at 10:30 right let's say they actually give it here here it is on the other wise I mean so basically once you you can't execute this gender because what ready-made what you can expend is let's say I find is because this one was before and so we when a snapshot they were cool right so this for Carew has it has some rules of the council in some right and so how they can I can have a Myrtle
- 13:32
all the way into the signature of the
- 15:09
so you know the sender so your sender is
- 16:57
actor and all the days with your like the checkpoint after you submit and I when you also sent them they do right here and then we'll pretty much the same both of them right now so I'm fine
- 18:12
in the reverse situation were you sending so your something wasn't right so this is C D D this is the feeling blower right the same chain where you and your religious actor you send me that you put something today as of this on the plasma chain so there in the books pass and then the first ones actually made is you sent em to me imagine this in this long you Sam and that I use to me and I talk with the
- 18:55
train yeah okay yeah so what I can explain okay okay still recording and generally feel free to interrupt the flow I guess he told being in it later so they were gonna remove everything cool you wanna jump in yeah so again it is the spot oh sure yeah you just point out your your projects include anything we can get okay so we start looking to feel more right on your block JD who's a little slacker it was its 100th day
- 19:59
all right so this is this is the first walk with a welcome today appears on the plasma chain so are these the other images so this moment it doesn't really matter so I'm back to here so this is the last checkpoint everything was going well here yeah alright so this is the first time where people start you know yeah yeah doing weird stuff and so the first thing JD does is he sends in crates of transaction which sends to others 10:00
- 20:30
a.m. and the probably understand all right like whoever pays this blogger like the blog is is fully valid and look at this book I see this book exists and maybe come for more books yes but what check that is not where the closest the checkpoint was going to be you know in the future yeah right so I assume as a mother Kate might organs or mine there's a long chain here and then I give JD he's lucky he's paying for yes right then after that there's a new book right where it says
- 21:06
the same time that I go to I must have a day so he was right so now they go and then they do the same change here and at the same time sting visible so there's no book skipped all the scenes of the correct and then it's me doing this right and so I just sustained a huge loss you have 100 day yeah yeah so we go with this assumption that not just in the function we have designed it in such a way that we assume that there
- 21:42
should be any folks in and if they were folks when we already disputed what they were so what you do is you prove on the routine so we have quantified death a little bit the means of its producing this Bluff they sign this block so what happens is if at the same height two gloves had signatures from same diggers yeah so you can go to the Ruchi and prove that and then in that way they will be slashed right but but will the slashed money be used to compensate for those money yeah something like that
- 22:14
so mix of that are we are still looking for that when the that's national holidays yeah will somehow use that to actually resurrect yeah I see and emotionally if you ask me you know wait for after deposit for next shipment because you actually transfer like one or two in the economical security between the checkpoints put put deposit uses we might wait a polite next checkpoint and then you can start everyone's putting here to consider I said so so you can actually exceed with
- 22:44
your exams in flight even when something goes wrong yeah another question here is if you just selling coffee you get wait for a block you know and if you're selling well I'm bargaining by Kazmir aperture project malaria so let's say two scenarios write the book this book is gonna be the same but the time is gonna be different cinema scenario there's a book here where again malicious JG sends to me and
- 23:23
then he was asked if minister and there's a second chain in which those people to exist what are they mean it was on this day and so in this book he sends my in tune yourself are the same one day right and I mentioned two different scenarios right one scenario is that almost up to the chip point this is going to chain that exists you know nobody can see this chain Yeah right and so for all I know I have 100 yes right because the Cibola channel exist you know my needles out of
- 24:04
them right this chain yes that's nice and the second spin was nothing wrong plan so whichever one's one of the things clearly preferred approach I don't know this one yes right so this is a balloon right right yeah so nobody gets much so until it seems so these two blocks at the same rate no this is and it's fine when it's same like so this is this is fine so this is kind five six
- 24:42
it's a time oh I see so so if you so let's say we're trading in a loop right so you thought with the mean so let's say you work at one then everybody skips yeah I see okay okay but that's due let's skip the book okay but I think if so let's say let's say fear escape whoops on this chain and it's just me so let's say someone is like what let's say it's a little credit so he probably
- 25:24
produces this book you get don't produce anything right and then right before the check for in the table you wake up and you're not taking this book right so this is JD so this scenario nobody gets rushed because normally double sign right but what your chain will have a higher priority and they'll move the day and so you can stance with your chain and then that will spend right so basically this is like this is
- 25:58
six law or this is the so the kites will be like let's say this is quite wild blue they believe then this is four five six I know this is the same sixteen right absolutely in the Telex case after this blog he skips yourself gives a big Chris his book stiff shoes gives her mid case he's going because you guys were just you know while the court is your great to go straight right but this chain exists it exists like multiple people can actually
- 26:43
read a blog however they want but as a user I will see okay this is the this is the yeah but the timeline is the following right some I see this I see this book this is like the first five seconds of the book and then the e-book starts for the ten minutes of the e-book this does not exist right so this is how the e-book looks to me right before the chip as a user right and then and then at that moment almost like the checkpoint is about to happen you and I
- 27:23
URI give this chain like it just not all those books they're debugging yeah so basically in that case mostly what happens is like if user detects that multiple properties are creating multiple differently same high-tech might exit and no transpose anybody in the system they actually it might happen in some cases let us say let us say we tell this this guy is like prevalent and college thank so in that case they said if they
- 27:54
make a transition here in that case their certificate this changes and go over the checkpoint oh no you can actually how like in five transactions pointing out the previous one finds time to trying is that so sort this has been so usually one in this blog this is only focus recovering yeah so basically if while sending like two transactions at the same point of time this against anyone's I'm actually meeting here that I spent
- 28:25
in any case even if you can or not but you cannot be scratched because you know yes yes yes so basically in that case most of the people will just start exiting before you will know people are spending in the balking so it's like 74 this 100 bad right so why this is something you did was signing away my trinkets so so basically one let's say when I make a 210 Dixon's either this chain this chain will be so now let's
- 29:08
say if you are meaning the time let's say I send you significant to you and now you have like see a signature ah the other guy may not want to know except the openness cooperation with you so cockpit also knows okay - hey he already won transactions and JD has like signature of the digital producer so I might not accept this right but they mentioned that imagine that the next ball so the figure is not you mention
- 29:42
person you are saying if our feet and I both held up it doesn't know if I was his signature of robbery certainly you so so let's say that the next book the book a tight team he's supposed to produce my you right so you're not doing 100 for each yeah right now agreed here which sends to die do but this one we don't show it to anyone this book exists on your machine but nowhere else and then and then because that will probably
- 30:15
sees it italic who is validating here he's gives you he gets his own blog where he sees transaction fee also signed and poverty it shows everyone the same 100 like me right so here it says to others 100 lei so after that just without the continues moving the chain and then hope you do not do not give any moves to me as a bonus user of the system I can see it here the transaction recently 100 I right and I don't see any other transactions I don't see any other books and it's been 10 minutes by now almost 10 minutes so I'm
- 30:52
like ok it's perfectly reliable and then right before the checkpoint you reading this blog bushes are higher priority difficulty and immediately Isis from this book okay in fact right yeah but my little challenging because my teacher is lover challenge because so basically how it works is that if you signers same statics and toes cinnamons they can actually challenge the exit and the later one will the
- 31:25
order will mean right so 75 making connections in this find side seam in sign there to transactions it is to second people what of them fish - yes of the make you disagree right but but it will be like why would why would a failure chain that hasn't just me if your block difficulties fine no because it depends on what was there was not check check want you haven't yet there is no there's no checkpoint that's
- 32:00
also saluting the exits then you so there's a concept of left I can see patterns actually in flight on it so if there's no checkpoint it's going in that context but you should name in Farsi community have two transactions which happen here yeah so you can only referenced the deposit itself right yes yeah so I reckons they take was it and you reference the deposit how does this new choose who was supposed to get yeah so
- 32:24
exits will be cute whoever starts it first right and so in this case if you start the places first it was yeah I was not suspecting anything bad I wanted to keep my diet Department chain right except and your militias likely immediately exit so I lose my safety the center and and the comedian cooperate I can lose my money employ only me play Lord yeah so you know this and they were
- 33:00
fools and they were on the check yes okay see ya between the checkpoint if you are making most of it on Jackson's the checkpoints give the world a dissolute I can in principle lose my money yeah so now let's talk about Daisy yeah so so my understanding is that when what is natural this is natural to you effectively improved it in certain accounts certain amount of money yes so now how do I like what David so what is
- 33:40
the what is the protocol for instance okay well do a cent well Baker goes of challenges exist so there are methods okay so my name is venues are Mexican start exit with the positive two things which was that you guys are members not my date on the side chain yeah so that is what I know exit exit so another one is exit with start exact with word Romans so what happens here is this is the case feared automatic chain is Oliver and let's say
- 34:16
you want to withdraw your time you send up or deduction embody a function in our yeah securities so you say I want to the 50-day happens when I'm touching is included you give a proof of that transaction page this option and how that both is so on magazine these are the blocks and I'm mobile group consists of like no headers of these to this one and then is blockheaded let me like it it has a transaction hash and
- 34:57
that you moved and then early sea route and a couple more things like time stamina so then when you want to say that my goal death actually was included use a white thirty seed and give a little group of the fact that at the sea is a part of this and then you prove that is utilize in a block unit that was taken so this is the voltage and then the third one is moving the side exits so that is when people are people have started to mass exit the case would be
- 35:41
when there are 66 percent creation that is the only case that you use now so we let's call this static so this one you provided proof of one this one you provide proof proof of reference transaction and optionally and in fact it's it as well infinite hands action as well yeah so let's come in quite choose actions you have to simply security and so let's so let's say we'll just have a checkpoint and the only exit something that was checked wanted right so when
- 36:17
they when they provided proof of a bird transaction I only provide the proof of inclusion I don't provide the proof of the reference of the biggest resection yeah your answers only for the worst right okay so let's start with some examples so let's say right and so yeah okay so this inclusion and yes
- 37:33
and the other avenging it creates an exit yes right so how'd the way challenge so they think its users looking for the first thing that it's a condition either the first point where the team yeah so in our case this was the time when the Jane because he said it was able to load it so what happens is let's say you are at a point where this is a malicious transaction or an invalid state now this so the idea is you would as soon as you see this you
- 38:12
will stop hitting with transactions before it so then you wanna go something like this where you say that another problem here is the priority great when you exhibit itachi you give a sense of where that turn actually was in the sexy and then that is the high priority according to how there is a sale process so the lower the priority of before it was face was like a main priority could be here would be here could be here and because it's younger ID would be lower so only acknowledge your
- 38:44
transaction so I say sending me above my yeah like you know right when you start the transaction you this check for you and I have asked to the block so yeah you know yeah yes yes so let's
- 39:57
say yes yes so then you say that so then these two are your inputs yeah whatever like to your or the spiders
- 41:00
balance being changed because you really chose to be spent visualize you take those located where JD's that it was and yours was six uh-huh so let's say our you to six Donuts all right and then they send them to someone else yes and I'm a travel agent six bookings when the children should be something that references my expansions action places yeah damage with those six right
- 41:55
yeah can I possibly has it so let's say I have six can they exit I guess if you're doing the would be selected it is only four paths exits yeah so exit with everything that you make when you use this thing if you think like everybody's career being on the section and homicides it's right to exit the transaction I need to sound something which intends to our ideas which is on the order of life let's say it's like
- 42:41
forty captures sixteen sixteen ashes sixteen has this issue 16 hashes photo so basically currently we have sixteen sixteen so it allows that actually allows those right now in the future increase I'm going to simply is me yeah but we don't like we currently have less than sixteen I guess yeah okay so so so that means that everyone can have an up to sixty thousand transactions people can have that up to six thousand box okay stop
- 43:15
sending I guess you Purdue books every three seconds right and once it's all been going well for like a year for a year nobody was being malicious and you have like your cumulative a lot of balances on the on the chain and then I come and they say I say I'm burning 100 buckets yeah I know everybody start sizing so how like is just a mechanism which will be increasing the challenge period over the time so that everybody
- 43:44
connects it so we are actually thinking oh we don't know like concepts for now what do you think if let's say the balance increases and at some point of time let's say 50% of the deposit like deposit exiting make things very short time I move these strange PDA terms of everything like extra time to exceed this like Miss even if a basically this is the world pot we are thinking on it
- 44:16
the best soldier it's little bit complicated because the plasma basically uses like only ones of budget point there are some trade-offs we make security between the checkpoints but most of the time it will work if you have a small amount of money and you will be school connections but if you are like many huge Daleks just watching yeah basically we are optimizing for the best case scenario which is nothing goes wrong and we are and we are they are
- 44:55
taking those trade-offs which let's say require you to use more gas in case of the worse exits so better you export cases when things are okay mm-hmm a little bit Bolsheviks when things are not okay but which is okay because that might happen this one so that's why the normal one exits you just give us a receipt yes but will the starting gate which is like this is heavy but that's okay because this is the worst case so we are making those trade-offs so when I
- 45:25
sent the transaction to someone right so let's say I received my arrested 100 died long ago yes right like year no and for one year there was no malicious behavior on the chain one year later I won't that's 180 is the expectation that you validated the entire chain range of this world or how to improve the other - they have 100 I like if I give you a transaction yeah right how do you know so so consider two different cases right one case is I actually do have 100 type
- 45:59
injuries one year ago is nice and this one's actually gives me the book I am you see and you have another user you know about a taking the second example I do not have 109 I send it to you it gets included in the blog because one day there's a malicious you have no idea without breaking the chain so expectation of accumulative the whole chain yeah the assumption users hmm it's a big fan of that because as we move forward
- 46:29
we'll we need to think about that but also there are ways to circumvent it let's say they are properly incentivized watch starts will be validating the gene movie probably thank users we are also thinking about medicated exits you could dress somewhere to exit on your day off mmm-hmm it could be like a subscription thing fixing home so some ideas and all that but yeah that is the limitation
- 46:52
yeah yes sir I guess like for small Obama I will just trust that nobody gonna be just optimist Lee optimistically Jade okay after like 1/8 one year my mentor is nothing wrong and if you are exceeding king might be like in constant yeah my particular example the chain was in shape startling last 7 days John Dickson's if you want let's say if something was wrong last 7 days you just know otherwise you just use
- 47:37
that simple right before say what is in then the parts that need to be and so let me also extend to all the challenges so this transaction cannot be challenged this game is buggy no just move your priorities yeah yeah so the transaction for different people 71 days I'm saying gee that's uncommon you're sending money six six day at some point you some divine seven die and then I can include the proof of all of those
- 48:42
and say I have 13 so you simply say that I would wins if it's every night for this particular Church yeah I'm just saying I wasn't talking like that you just give that last one that in this would be this not that it's not oh okay so go ahead but how so OSE because the lower you're eating now that doesn't work pretty good because imagine where JG cents mean so let's say drinking as one who died he sends you fifty day here
- 49:23
today in this world sends me because I can't waste it and then he exits he provides the last of the large news energy provides distance are shown in cases for 100 day so he cannot wait this one you will have to provide something order because he spent fifty what are you you guys all forgive us this what you say all this is 130 and I say 150 time so I can only exist but in this case how if I want eyes at 13 different accents
- 50:09
no no so how do book is after this transaction no your manners would be six but there's no like - something is that the bloke doesn't have a state route right so if they do chemic math can invalidate the balance of a particular participant so what we do is in every time circle we have a particular event we give a little off transfer and what it does is it limits your previous balance before the transaction and the new rebels standards recipient and then save the - and
- 50:48
there's a beer - what's like old palaces New Balances yes I see so this think of it like a utensil so here high balance and then when this transaction is made yeah so it says whatever you were six so I provide the last transaction 13 and because everybody validated the like everybody who cared sufficiently about large transfers rather than total blocks yes they evaluated that this is also correct okay yeah yeah that's it so anyone do star exiting you like the
- 51:30
reference collection or ligand its own let's say you bought this and then you say and I see and so and so the the way we can challenge this transaction so so let's say Mexican I'm saying I have 13 so we make an assumption that all the books are characters right the locks are invalid and someone that people should not have acknowledged they are money to begin with right but let's say I said it all
- 52:02
but I'm trying to exit the only way the only way the only challenge will be to find another transaction from from me that spends any of us that you know yes yeah yeah a came after this which came after this yes yeah yeah that makes sense to meet you and spending it on the site you know so then you come in and prove this thing which has a higher priority then thank you guys for coming any any loss announcements you want to make an automatic no I mean we are
- 52:43
actually launching a state kind of solution like people this take on attachment and play with the I become a very enough with the whole architecture